mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-10 19:57:13 +03:00
add a clean to the docs:css:watch to trigger jekyll to refresh the dist when developing locally
This commit is contained in:
parent
73c9b5cff2
commit
110c8cae35
|
@ -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']}
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue
Block a user