fix build
Showing
... | @@ -18,8 +18,9 @@ | ... | @@ -18,8 +18,9 @@ |
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"babel-eslint": "^7.1.1", | "babel-eslint": "^7.1.1", | ||
"babel-preset-es2015": "^6.24.0", | |||
"babel-plugin-transform-object-assign": "^6.22.0", | "babel-plugin-transform-object-assign": "^6.22.0", | ||
"babel-plugin-yo-yoify": "^0.4.0", | |||
"babel-preset-es2015": "^6.24.0", | |||
"babelify": "^7.3.0", | "babelify": "^7.3.0", | ||
"browserify": "^13.0.1", | "browserify": "^13.0.1", | ||
"ethereum-common": "0.0.18", | "ethereum-common": "0.0.18", | ||
... | @@ -40,7 +41,7 @@ | ... | @@ -40,7 +41,7 @@ |
"yo-yoify": "^3.1.0" | "yo-yoify": "^3.1.0" | ||
}, | }, | ||
"scripts": { | "scripts": { | ||
"build": "mkdirp build; browserify src/index.js > build/app.js", | "build": "mkdirp build; browserify src/index.js > build/app.js -d", | ||
"lint": "standard | notify-error", | "lint": "standard | notify-error", | ||
"nightwatch_local": "nightwatch --config nightwatch.js --env local", | "nightwatch_local": "nightwatch --config nightwatch.js --env local", | ||
"nightwatch_remote_chrome": "nightwatch --config nightwatch.js --env chrome", | "nightwatch_remote_chrome": "nightwatch --config nightwatch.js --env chrome", | ||
... | @@ -81,23 +82,60 @@ | ... | @@ -81,23 +82,60 @@ |
], | ], | ||
"parser": "babel-eslint" | "parser": "babel-eslint" | ||
}, | }, | ||
"babel": { | |||
"plugins": [ | |||
"transform-es2015-template-literals", | |||
"transform-es2015-literals", | |||
"transform-es2015-function-name", | |||
"transform-es2015-arrow-functions", | |||
"transform-es2015-block-scoped-functions", | |||
"transform-es2015-classes", | |||
"transform-es2015-object-super", | |||
"transform-es2015-shorthand-properties", | |||
"transform-es2015-duplicate-keys", | |||
"transform-es2015-computed-properties", | |||
"transform-es2015-for-of", | |||
"transform-es2015-sticky-regex", | |||
"transform-es2015-unicode-regex", | |||
"check-es2015-constants", | |||
"transform-es2015-spread", | |||
"transform-es2015-parameters", | |||
"transform-es2015-destructuring", | |||
"transform-es2015-block-scoping" | |||
] | |||
}, | |||
"browserify": { | "browserify": { | ||
"transform": [ | "transform": [ | ||
["babelify", { | [ | ||
"plugins": [ | "babelify", | ||
["fast-async", { | { | ||
"runtimePatten": null, | "sourceMapsAbsolute": false, | ||
"compiler": { | "sourceMaps": true, | ||
"promises": true, | "plugins": [ | ||
"es7": true, | [ | ||
"noRuntime": true, | "fast-async", | ||
"wrapAwait": true | { | ||
} | "runtimePattern": null, | ||
}], "transform-object-assign" | "compiler": { | ||
] | "es7": true, | ||
}], | "noRuntime": true, | ||
["yo-yoify"], | "promises": true, | ||
["babelify", { "presets": ["es2015"] }] | "wrapAwait": true | ||
} | |||
} | |||
], | |||
[ | |||
"yo-yoify" | |||
], | |||
[ | |||
"transform-object-assign" | |||
] | |||
], | |||
"presets": [ | |||
"es2015" | |||
] | |||
} | |||
] | |||
] | ] | ||
} | } | ||
} | } |
Please
register
or
sign in
to comment