npm install gulp-sass
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | var gulp = require( 'gulp' ); gulp.task( 'default' , function (){ console.log( "hello, gulp!" ); }); gulp.task( 'styles' , function (){ gulp.src( 'sass/**/*.scss' ) .pipe(sass().on( 'error' , sass.logError)) .pipe(gulp.dest( './css' )); }); gulp.task( 'default' , function (){ gulp.watch( 'sass/**/*.scss' ,[ 'styles' ]); }); |
Linting is the process of running a program that will analyse code for potential errors.
ESLint
[vagrant@localhost rss24]$ sudo npm install -g eslint
span:inline
div:block
parameter
?name=value
fragment
#fragment