This commit is contained in:
SleepWalker 2017-06-07 23:08:21 +03:00
parent 1929786b03
commit 3d3f50049e
4 changed files with 26 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{
"presets": ["react", "es2015", "es2017", "stage-0"],
"presets": ["react", "flow", "es2015", "es2017", "stage-0"],
"plugins": [
["transform-runtime", {"polyfill": false}],
"transform-function-bind",

14
.flowconfig Normal file
View File

@ -0,0 +1,14 @@
[ignore]
[include]
[libs]
[options]
module.system.node.resolve_dirname=node_modules
module.system.node.resolve_dirname=src
module.file_ext=.js
module.file_ext=.json
module.file_ext=.jsx
module.file_ext=.css
module.file_ext=.scss

8
npm-shrinkwrap.json generated
View File

@ -1626,7 +1626,7 @@
},
"babel-preset-flow": {
"version": "6.23.0",
"from": "babel-preset-flow@>=6.23.0 <7.0.0",
"from": "https://registry.npmjs.org/babel-preset-flow/-/babel-preset-flow-6.23.0.tgz",
"resolved": "https://registry.npmjs.org/babel-preset-flow/-/babel-preset-flow-6.23.0.tgz",
"dev": true
},
@ -3431,6 +3431,12 @@
"resolved": "https://registry.npmjs.org/flatten/-/flatten-1.0.2.tgz",
"dev": true
},
"flow-bin": {
"version": "0.47.0",
"from": "flow-bin@latest",
"resolved": "https://registry.npmjs.org/flow-bin/-/flow-bin-0.47.0.tgz",
"dev": true
},
"fontgen-loader": {
"version": "0.2.1",
"from": "fontgen-loader@>=0.2.1 <0.3.0",

View File

@ -14,6 +14,7 @@
"lockDeps": "npm shrinkwrap --dev",
"test": "npm run build:dll && karma start ./karma.conf.js",
"lint": "eslint ./src",
"flow": "flow",
"i18n:collect": "babel-node ./scripts/i18n-collect.js",
"i18n:publish": "babel-node --presets es2015,stage-0 ./scripts/i18n-onesky.js publish",
"i18n:pull": "babel-node --presets es2015,stage-0 ./scripts/i18n-onesky.js pull",
@ -56,8 +57,9 @@
"babel-plugin-transform-runtime": "^6.3.13",
"babel-preset-airbnb": "^2.0.0",
"babel-preset-es2015": "^6.3.13",
"babel-preset-es2017": "^6.16.0",
"babel-preset-react": "^6.3.13",
"babel-preset-es2017": "^6.16.0",
"babel-preset-flow": "^6.23.0",
"babel-preset-react-hmre": "^1.0.1",
"babel-preset-stage-0": "^6.3.13",
"babel-runtime": "^6.0.0",
@ -70,6 +72,7 @@
"exports-loader": "^0.6.3",
"extract-text-webpack-plugin": "^1.0.0",
"file-loader": "^0.11.0",
"flow-bin": "^0.47.0",
"fontgen-loader": "^0.2.1",
"html-loader": "^0.4.3",
"html-webpack-plugin": "^2.0.0",