From 8f4ec7c96cb0a5e2158f6543f25d4975cd995490 Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Thu, 10 Mar 2016 10:12:16 -0600 Subject: [PATCH] working on prep-release task --- gulp-docs.js | 16 +++++++--------- gulpfile.babel.js | 11 ++++------- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/gulp-docs.js b/gulp-docs.js index aa007c21..7294679c 100644 --- a/gulp-docs.js +++ b/gulp-docs.js @@ -36,11 +36,11 @@ export default function (gulp, options) { let javascripts = [ new RollupIife(gulp, preset, prefix, options.rollupConfig, { - options: { - dest: 'docs.iife.js', - moduleName: 'docs' - } - }), + options: { + dest: 'docs.iife.js', + moduleName: 'docs' + } + }), new Uglify(gulp, preset, prefix, { task: {name: 'vendor:uglify'}, source: {options: {cwd: 'docs/assets/js/vendor'}}, @@ -59,10 +59,8 @@ export default function (gulp, options) { new TaskSeries(gulp, 'default', [ new Clean(gulp, preset, prefix), linters, - [ - sass, - javascripts - ], + sass, + javascripts, new MinifyCss(gulp, preset, prefix) ], prefix) new TaskSeries(gulp, 'lint', linters, prefix) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index b317de11..b3d8f0b4 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -30,7 +30,6 @@ let namedExports = {} //namedExports[`${node_modules}/anchor-js/anchor.js`] = ['AnchorJS'] let rollupConfig = { - //debug: true, options: { external: [ 'anchor-js', @@ -53,7 +52,7 @@ let rollupConfig = { } } -let rollups = [ +let javascripts = [ new RollupEs(gulp, preset, rollupConfig, {options: {dest: 'bootstrap-material-design.es.js'}}), new RollupUmd(gulp, preset, rollupConfig, { options: { @@ -77,14 +76,12 @@ let linters = [scsslint, eslint] new TaskSeries(gulp, 'default', [ new Clean(gulp, preset), linters, - [ - sass, - rollups - ], + sass, + javascripts, new MinifyCss(gulp, preset) ]) new TaskSeries(gulp, 'lint', linters) -new TaskSeries(gulp, 'js', [eslint, rollups]) +new TaskSeries(gulp, 'js', [eslint, javascripts]) new TaskSeries(gulp, 'css', [scsslint, sass])