Improve Babel configuration.
This commit is contained in:
parent
3183ca02b3
commit
5e18b6b878
14
packages/xo-server-auth-ldap/.babelrc
Normal file
14
packages/xo-server-auth-ldap/.babelrc
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"comments": false,
|
||||
"compact": true,
|
||||
"optional": [
|
||||
// Experimental features.
|
||||
// "minification.constantFolding",
|
||||
// "minification.deadCodeElimination",
|
||||
|
||||
"es7.asyncFunctions",
|
||||
"es7.decorators",
|
||||
"es7.functionBind",
|
||||
"runtime"
|
||||
]
|
||||
}
|
@ -40,8 +40,8 @@
|
||||
"trace": "^1.2.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "mkdir -p dist && babel --optional=runtime --compact=true --source-maps --out-dir=dist/ src/",
|
||||
"dev": "mkdir -p dist && babel --watch --optional=runtime --compact=true --source-maps --out-dir=dist/ src/",
|
||||
"build": "babel --source-maps --out-dir=dist/ src/",
|
||||
"dev": "babel --watch --source-maps --out-dir=dist/ src/",
|
||||
"prepublish": "npm run build",
|
||||
"test": "mocha --opts .mocha.opts \"dist/**/*.spec.js\"",
|
||||
"test-dev": "mocha --opts .mocha.opts --watch --reporter=min \"dist/**/*.spec.js\""
|
||||
|
Loading…
Reference in New Issue
Block a user