1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

cross-spawn #705

This commit is contained in:
codecalm
2020-11-08 13:31:45 +01:00
parent 08449c3372
commit 8be915e1e9
2 changed files with 4 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ const gulp = require('gulp'),
vinylBuffer = require('vinyl-buffer'),
browserSync = require('browser-sync'),
glob = require('glob'),
spawn = require('cross-spawn'),
fs = require('fs'),
path = require('path'),
YAML = require('yaml'),
@@ -224,7 +225,7 @@ gulp.task('js', () => {
*/
gulp.task('watch-jekyll', (cb) => {
browserSync.notify('Building Jekyll');
return cp.spawn('bundle', ['exec', 'jekyll', 'build', '--watch', '--destination', demoDir, '--trace'], { stdio: 'inherit' })
return spawn('bundle', ['exec', 'jekyll', 'build', '--watch', '--destination', demoDir, '--trace'], { stdio: 'inherit' })
.on('close', cb);
});
@@ -235,7 +236,7 @@ gulp.task('build-jekyll', (cb) => {
var env = Object.create(process.env);
env.JEKYLL_ENV = 'production';
return cp.spawn('bundle', ['exec', 'jekyll', 'build', '--destination', demoDir, '--trace'], { env: env, stdio: 'inherit' })
return spawn('bundle', ['exec', 'jekyll', 'build', '--destination', demoDir, '--trace'], { env: env, stdio: 'inherit' })
.on('close', cb);
});

View File

@@ -53,6 +53,7 @@
"@rollup/stream": "^1.1.0",
"autoprefixer": "^10.0.1",
"browser-sync": "^2.26.13",
"cross-spawn": "^7.0.3",
"gulp": "^4.0.2",
"gulp-clean": "^0.4.0",
"gulp-clean-css": "^4.3.0",