working on prep-release task

This commit is contained in:
Kevin Ross 2016-03-10 10:12:16 -06:00
parent e3a9605a95
commit 8f4ec7c96c
2 changed files with 11 additions and 16 deletions

View File

@ -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)

View File

@ -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])