Commit eb9e9931 authored by Ayush Shankar's avatar Ayush Shankar Committed by Claudio Wunder
Browse files

Create Gulp Task to watch changes in the CSS library source and rebuild it on-demand

parent fef8402b
......@@ -16,5 +16,15 @@ gulp.task('build', () =>
.pipe(clean())
.pipe(rename({suffix:'.min'}))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest("dist")),
.pipe(gulp.dest('dist')),
);
gulp.task('copy', () =>
gulp.src('dist/index.css').
pipe(rename('custom.scss')).
pipe(gulp.dest('documentation/_sass/custom/')),
);
gulp.task('watch', () =>
gulp.watch(['src/**/*.css', 'src/**/*.pcss'], gulp.series('build', ['copy']))
);
\ No newline at end of file
......@@ -3,7 +3,8 @@
"version": "0.0.1",
"description": "GNOME's Foundation CSS Framework for crafting Websites",
"scripts": {
"build": "gulp build"
"build": "gulp build",
"watch": "gulp watch"
},
"author": "GNOME Engagement Team <engagement@gnome.org>",
"license": "MIT",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment