Add missing .babelrc and .flowconfig (#3298)

This commit is contained in:
Ben Kalman
2017-03-28 13:23:58 -07:00
committed by GitHub
parent 3315c31fe3
commit 3b82ab4ef1
3 changed files with 24 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
{
"presets": ["noms"]
}
+20
View File
@@ -0,0 +1,20 @@
[ignore]
.*/node_modules/babel.*
.*/node_modules/babylon/.*
.*/node_modules/d3/.*
.*/node_modules/fbjs/.*
.*/node_modules/react/.*
.*/node_modules/y18n/.*
.*/node_modules/json5/.*
[include]
[libs]
[options]
unsafe.enable_getters_and_setters=true
munge_underscores=true
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue: .+
[version]
^0.39.0
+1 -1
View File
@@ -3,7 +3,7 @@
"private": true,
"license": "Apache-2.0",
"scripts": {
"preinstall": "cp ../../../js/noms/.babelrc ../.eslintrc.js ../../../js/noms/.flowconfig .",
"preinstall": "cp ../.babelrc ../.eslintrc.js ../.flowconfig .",
"prepublish": "yarn run build",
"start": "python node_modules/@attic/webpack-config/run.py --src src/main.js --out out.js development",
"build": "python node_modules/@attic/webpack-config/run.py --src src/main.js --out out.js production",