diff --git a/.babelrc b/.babelrc index 034c316..1c72f12 100644 --- a/.babelrc +++ b/.babelrc @@ -1,9 +1,11 @@ { + "comments": false, "compact": false, - "presets": [ - ["@babel/env", {"targets": {"node": "8.11.3"}}] - ], + "ignore": ["src/browser.js"], "plugins": [ "@babel/plugin-transform-runtime" + ], + "presets": [ + ["@babel/env", {"targets": {"node": "8.11.3"}}] ] } diff --git a/package.json b/package.json index 4d1fc03..76b14b7 100644 --- a/package.json +++ b/package.json @@ -10,12 +10,11 @@ "src" ], "scripts": { - "build": "npm run clean && npm run build-babel && npm run build-webpack", - "build-babel": "babel --ignore 'src/browser.js' --out-dir dist src", - "build-webpack": "npm run webpack", + "babel": "babel --out-dir dist src", + "build": "npm run clean && npm run babel && npm run webpack", "clean": "rimraf dist embark.min.js embarkjs-*.tgz package", + "http-server": "http-server", "prepare": "npm run build", - "server": "http-server", "test": "echo \"Error: no test specified\" && exit 1", "webpack": "webpack" },