Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.89 KB | None | 0 0
  1. {
  2. "name": "react-boilerplate",
  3. "version": "3.4.0",
  4. "description": "A highly scalable, offline-first foundation with the best DX and a focus on performance and best practices",
  5. "repository": {
  6. "type": "git",
  7. "url": "git://github.com/react-boilerplate/react-boilerplate.git"
  8. },
  9. "engines": {
  10. "npm": ">=3",
  11. "node": ">=5"
  12. },
  13. "author": "Max Stoiber",
  14. "license": "MIT",
  15. "scripts": {
  16. "analyze:clean": "rimraf stats.json",
  17. "preanalyze": "npm run analyze:clean",
  18. "analyze": "node ./internals/scripts/analyze.js",
  19. "extract-intl": "babel-node --presets latest,stage-0 -- ./internals/scripts/extract-intl.js",
  20. "npmcheckversion": "node ./internals/scripts/npmcheckversion.js",
  21. "preinstall": "npm run npmcheckversion",
  22. "postinstall": "npm run build:dll",
  23. "prebuild": "npm run build:clean",
  24. "build": "cross-env NODE_ENV=production webpack --config internals/webpack/webpack.prod.babel.js --color -p --progress",
  25. "build:clean": "npm run test:clean && rimraf ./build",
  26. "build:dll": "node ./internals/scripts/dependencies.js",
  27. "start": "cross-env NODE_ENV=development node server",
  28. "start:tunnel": "cross-env NODE_ENV=development ENABLE_TUNNEL=true node server",
  29. "start:production": "npm run test && npm run build && npm run start:prod",
  30. "start:prod": "cross-env NODE_ENV=production node server",
  31. "presetup": "npm i chalk shelljs",
  32. "setup": "node ./internals/scripts/setup.js",
  33. "postsetup": "npm run build:dll",
  34. "clean": "shjs ./internals/scripts/clean.js",
  35. "clean:all": "npm run analyze:clean && npm run test:clean && npm run build:clean",
  36. "generate": "plop --plopfile internals/generators/index.js",
  37. "lint": "npm run lint:js",
  38. "lint:eslint": "eslint --ignore-pattern internals/scripts",
  39. "lint:js": "npm run lint:eslint -- . ",
  40. "lint:staged": "lint-staged",
  41. "pretest": "npm run test:clean && npm run lint",
  42. "test:clean": "rimraf ./coverage",
  43. "test": "cross-env NODE_ENV=test jest --coverage",
  44. "test:watch": "cross-env NODE_ENV=test jest --watchAll",
  45. "coveralls": "cat ./coverage/lcov.info | coveralls"
  46. },
  47. "lint-staged": {
  48. "*.js": "lint:eslint"
  49. },
  50. "pre-commit": "lint:staged",
  51. "babel": {
  52. "presets": [
  53. [
  54. "latest",
  55. {
  56. "es2015": {
  57. "modules": false
  58. }
  59. }
  60. ],
  61. "react",
  62. "stage-0"
  63. ],
  64. "env": {
  65. "production": {
  66. "only": [
  67. "app"
  68. ],
  69. "plugins": [
  70. "transform-react-remove-prop-types",
  71. "transform-react-constant-elements",
  72. "transform-react-inline-elements"
  73. ]
  74. },
  75. "test": {
  76. "plugins": [
  77. "transform-es2015-modules-commonjs",
  78. "dynamic-import-node"
  79. ]
  80. }
  81. }
  82. },
  83. "eslintConfig": {
  84. "parser": "babel-eslint",
  85. "extends": "airbnb",
  86. "env": {
  87. "browser": true,
  88. "node": true,
  89. "jest": true,
  90. "es6": true
  91. },
  92. "plugins": [
  93. "redux-saga",
  94. "react",
  95. "jsx-a11y"
  96. ],
  97. "parserOptions": {
  98. "ecmaVersion": 6,
  99. "sourceType": "module",
  100. "ecmaFeatures": {
  101. "jsx": true
  102. }
  103. },
  104. "rules": {
  105. "arrow-parens": [
  106. "error",
  107. "always"
  108. ],
  109. "arrow-body-style": [
  110. 2,
  111. "as-needed"
  112. ],
  113. "comma-dangle": [
  114. 2,
  115. "always-multiline"
  116. ],
  117. "import/imports-first": 0,
  118. "import/newline-after-import": 0,
  119. "import/no-dynamic-require": 0,
  120. "import/no-extraneous-dependencies": 0,
  121. "import/no-named-as-default": 0,
  122. "import/no-unresolved": 2,
  123. "import/prefer-default-export": 0,
  124. "indent": [
  125. 2,
  126. 2,
  127. {
  128. "SwitchCase": 1
  129. }
  130. ],
  131. "jsx-a11y/aria-props": 2,
  132. "jsx-a11y/heading-has-content": 0,
  133. "jsx-a11y/href-no-hash": 2,
  134. "jsx-a11y/label-has-for": 2,
  135. "jsx-a11y/mouse-events-have-key-events": 2,
  136. "jsx-a11y/role-has-required-aria-props": 2,
  137. "jsx-a11y/role-supports-aria-props": 2,
  138. "max-len": 0,
  139. "newline-per-chained-call": 0,
  140. "no-confusing-arrow": 0,
  141. "no-console": 1,
  142. "no-use-before-define": 0,
  143. "prefer-template": 2,
  144. "class-methods-use-this": 0,
  145. "react/forbid-prop-types": 0,
  146. "react/jsx-first-prop-new-line": [
  147. 2,
  148. "multiline"
  149. ],
  150. "react/jsx-filename-extension": 0,
  151. "react/jsx-no-target-blank": 0,
  152. "react/require-extension": 0,
  153. "react/self-closing-comp": 0,
  154. "redux-saga/no-yield-in-race": 2,
  155. "redux-saga/yield-effects": 2,
  156. "require-yield": 0,
  157. "import/no-webpack-loader-syntax": 0
  158. },
  159. "settings": {
  160. "import/resolver": {
  161. "webpack": {
  162. "config": "./internals/webpack/webpack.prod.babel.js"
  163. }
  164. }
  165. }
  166. },
  167. "dllPlugin": {
  168. "path": "node_modules/react-boilerplate-dlls",
  169. "exclude": [
  170. "chalk",
  171. "compression",
  172. "cross-env",
  173. "express",
  174. "ip",
  175. "minimist",
  176. "sanitize.css"
  177. ],
  178. "include": [
  179. "core-js",
  180. "lodash",
  181. "eventsource-polyfill"
  182. ]
  183. },
  184. "jest": {
  185. "collectCoverageFrom": [
  186. "app/**/*.{js,jsx}",
  187. "!app/**/*.test.{js,jsx}",
  188. "!app/*/RbGenerated*/*.{js,jsx}",
  189. "!app/app.js",
  190. "!app/routes.js"
  191. ],
  192. "coverageThreshold": {
  193. "global": {
  194. "statements": 98,
  195. "branches": 91,
  196. "functions": 98,
  197. "lines": 98
  198. }
  199. },
  200. "moduleDirectories": [
  201. "node_modules",
  202. "app"
  203. ],
  204. "moduleNameMapper": {
  205. ".*\\.(css|less|styl|scss|sass)$": "<rootDir>/internals/mocks/cssModule.js",
  206. ".*\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/internals/mocks/image.js"
  207. },
  208. "setupTestFrameworkScriptFile": "<rootDir>/internals/testing/test-bundler.js",
  209. "testRegex": "tests/.*\\.test\\.js$"
  210. },
  211. "dependencies": {
  212. "babel-polyfill": "6.20.0",
  213. "chalk": "1.1.3",
  214. "compression": "1.6.2",
  215. "cross-env": "3.1.3",
  216. "express": "4.14.0",
  217. "fontfaceobserver": "2.0.7",
  218. "immutable": "3.8.1",
  219. "intl": "1.2.5",
  220. "invariant": "2.2.2",
  221. "ip": "1.1.4",
  222. "jss": "^6.4.0",
  223. "jss-theme-reactor": "^0.10.0",
  224. "lodash": "4.17.2",
  225. "material-ui": "^1.0.0-alpha.7",
  226. "minimist": "1.2.0",
  227. "react": "15.4.2",
  228. "react-breadcrumbs": "^1.5.2",
  229. "react-dom": "15.4.2",
  230. "react-helmet": "3.2.2",
  231. "react-intl": "2.1.5",
  232. "react-redux": "4.4.6",
  233. "react-router": "3.0.0",
  234. "react-router-redux": "4.0.6",
  235. "react-router-scroll": "0.4.1",
  236. "react-swipeable-views": "^0.11.1",
  237. "react-tap-event-plugin": "^2.0.1",
  238. "redux": "3.6.0",
  239. "redux-immutable": "3.0.8",
  240. "redux-saga": "0.14.0",
  241. "reselect": "2.5.4",
  242. "sanitize.css": "4.1.0",
  243. "styled-components": "1.1.2",
  244. "warning": "3.0.0",
  245. "whatwg-fetch": "2.0.1"
  246. },
  247. "devDependencies": {
  248. "babel-cli": "6.18.0",
  249. "babel-core": "6.21.0",
  250. "babel-eslint": "7.1.1",
  251. "babel-loader": "6.2.10",
  252. "babel-plugin-dynamic-import-node": "1.0.0",
  253. "babel-plugin-react-intl": "2.2.0",
  254. "babel-plugin-react-transform": "2.0.2",
  255. "babel-plugin-transform-es2015-modules-commonjs": "6.18.0",
  256. "babel-plugin-transform-react-constant-elements": "6.9.1",
  257. "babel-plugin-transform-react-inline-elements": "6.8.0",
  258. "babel-plugin-transform-react-remove-prop-types": "0.2.11",
  259. "babel-preset-latest": "6.16.0",
  260. "babel-preset-react": "6.16.0",
  261. "babel-preset-react-hmre": "1.1.1",
  262. "babel-preset-stage-0": "6.16.0",
  263. "cheerio": "0.22.0",
  264. "circular-dependency-plugin": "2.0.0",
  265. "coveralls": "2.11.15",
  266. "css-loader": "0.26.1",
  267. "enzyme": "2.6.0",
  268. "eslint": "3.11.1",
  269. "eslint-config-airbnb": "13.0.0",
  270. "eslint-config-airbnb-base": "10.0.1",
  271. "eslint-import-resolver-webpack": "0.8.1",
  272. "eslint-plugin-import": "2.2.0",
  273. "eslint-plugin-jsx-a11y": "2.2.3",
  274. "eslint-plugin-react": "6.7.1",
  275. "eslint-plugin-redux-saga": "0.1.5",
  276. "eventsource-polyfill": "0.9.6",
  277. "exports-loader": "0.6.3",
  278. "file-loader": "0.9.0",
  279. "html-loader": "0.4.4",
  280. "html-webpack-plugin": "2.28.0",
  281. "image-webpack-loader": "2.0.0",
  282. "imports-loader": "0.6.5",
  283. "jest-cli": "18.0.0",
  284. "lint-staged": "3.2.1",
  285. "ngrok": "2.2.4",
  286. "node-plop": "0.5.4",
  287. "null-loader": "0.1.1",
  288. "offline-plugin": "4.5.2",
  289. "plop": "1.7.3",
  290. "pre-commit": "1.1.3",
  291. "react-addons-test-utils": "15.4.1",
  292. "rimraf": "2.5.4",
  293. "shelljs": "0.7.5",
  294. "sinon": "2.0.0-pre",
  295. "style-loader": "0.13.1",
  296. "url-loader": "0.5.7",
  297. "webpack": "2.2.0-rc.3",
  298. "webpack-dev-middleware": "1.9.0",
  299. "webpack-hot-middleware": "2.15.0"
  300. }
  301. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement