Update code style.

pull/236/head
Glen Cheney 6 years ago
parent 3be38c640d
commit 1965840de9

@ -1,5 +1,5 @@
const rollup = require('rollup').rollup; const { rollup } = require('rollup');
const configs = require('../config').configs; const { configs } = require('../config');
module.exports = function scripts() { module.exports = function scripts() {
const bundles = configs.map(config => rollup(config).then((bundle) => { const bundles = configs.map(config => rollup(config).then((bundle) => {

@ -6,17 +6,17 @@ module.exports = function test() {
return gulp.src('test/runner.html', { return gulp.src('test/runner.html', {
read: false, read: false,
}) })
.pipe(mochaPhantomJS({ .pipe(mochaPhantomJS({
phantomjs: { phantomjs: {
useColors: true, useColors: true,
}, },
})) }))
// https://github.com/gulpjs/gulp/issues/259#issuecomment-61976830 // https://github.com/gulpjs/gulp/issues/259#issuecomment-61976830
.on('error', function onerror(err) { .on('error', function onerror(err) {
if (config.watch) { if (config.watch) {
console.error(err.message); console.error(err.message);
this.emit('end'); this.emit('end');
} }
}); });
}; };

Loading…
Cancel
Save