add a clean to the docs:css:watch to trigger jekyll to refresh the dist when developing locally

This commit is contained in:
Kevin Ross 2016-03-28 16:00:32 -05:00
parent 73c9b5cff2
commit 110c8cae35
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import {Preset, Clean, Copy, Jekyll, CssNano, Sass, RollupEs, RollupUmd, RollupIife, ScssLint, EsLint, Aggregate, Uglify, parallel, series} from 'gulp-pipeline'
import {Preset, Clean, CleanStylesheets, CleanJavascripts, Copy, Jekyll, CssNano, Sass, RollupEs, RollupUmd, RollupIife, ScssLint, EsLint, Aggregate, Uglify, parallel, series} from 'gulp-pipeline'
// since we are using a docs cwd, we need to grap the source path to watch both docs js and core js
import findup from 'findup-sync'
@ -50,6 +50,7 @@ export default function (gulp, corePreset, options) {
const js = new Aggregate(gulp, 'js',
series(gulp,
parallel(gulp,
new CleanJavascripts(gulp, preset, prefix, {task: false}), // just here to trigger jekyll refresh
new EsLint(gulp, preset, prefix),
new EsLint(gulp, corePreset, {task: false}) // lint the core as well - easier for development
),
@ -76,6 +77,7 @@ export default function (gulp, corePreset, options) {
const css = new Aggregate(gulp, 'css',
series(gulp,
parallel(gulp,
new CleanStylesheets(gulp, preset, prefix, {task: false}), // just here to trigger jekyll refresh
new ScssLint(gulp, preset, prefix, {
source: {glob: ['**/*.scss', '!docs.scss']},
watch: {glob: ['**/*.scss', '!docs.scss']}

View File

@ -44,7 +44,7 @@
"babel-preset-es2015": "^6.6.0",
"extend": "^3.0.0",
"gulp": "github:gulpjs/gulp#4.0",
"gulp-pipeline": "^4.0.20",
"gulp-pipeline": "^4.0.21",
"moment": "^2.12.0"
},
"engines": {