Remove mini from default build, restyle

This commit is contained in:
Ilya Ig. Petrov 2017-06-17 20:09:02 +05:00
parent a9b658515a
commit f31ff6d728

View File

@ -17,12 +17,12 @@ const templatePlugin = (context) => through.obj(function(file, encoding, cb) {
file.path = file.path.replace(new RegExp(`${tjson}$`), '.json'); file.path = file.path.replace(new RegExp(`${tjson}$`), '.json');
if (file.isStream()) { if (file.isStream()) {
return cb(new PluginError(PluginName, 'Streams not supported!')); return cb(new PluginError(PluginName, 'Streams are not supported!'));
} else if (file.isBuffer()) { } else if (file.isBuffer()) {
const {keys, values} = Object.keys(context).reduce( (acc, key) => { const {keys, values} = Object.keys(context).reduce( (acc, key) => {
const value = context[key]; const value = context[key];
acc.keys.push(key); acc.keys.push(key);
acc.values.push(value); acc.values.push(value);
return acc; return acc;
@ -103,4 +103,5 @@ gulp.task('_cp-full', ['_cp-common'], function(cb) {
}); });
gulp.task('build', ['_cp-mini', '_cp-full']); gulp.task('build:prod', ['_cp-mini', '_cp-full']);
gulp.task('build', ['_cp-full']);