Add --stage 1 to babel cmdline

So we can use trailing function commas. The trailing comma proposal is actually at stage 3 now and there's a babel 6 plugin for it, which  we should use when we switch back to babel 6.
This commit is contained in:
David Baker 2016-07-08 15:29:59 +01:00
parent e6ff1f8836
commit 6d403e792b

View file

@ -14,8 +14,8 @@
}, },
"scripts": { "scripts": {
"reskindex": "reskindex -h header", "reskindex": "reskindex -h header",
"build": "babel src -d lib --source-maps", "build": "babel src -d lib --source-maps --stage 1",
"start": "babel src -w -d lib --source-maps", "start": "babel src -w -d lib --source-maps --stage 1",
"lint": "eslint src/", "lint": "eslint src/",
"lintall": "eslint src/ test/", "lintall": "eslint src/ test/",
"clean": "rimraf lib", "clean": "rimraf lib",