gulp-connecting-room
v0.3.0
Published
To write constants that are shared by JavaScript and SCSS in gulpfile.js.
Downloads
1
Readme
gulp-connecting-room
It allows you to write constants that are shared by JavaScript and SCSS in gulpfile.js.
Usage
const connect = require('gulp-connection-room');
const COMMON_VARS = {
BORDER_WIDTH : 2,
TEXT_COLOR : '#111',
};
gulp.task(
'build',
gulp.series(
function(){
return gulp.src(['src/js/*.js'])
.pipe(connect(COMMON_VARS, opt_fileStem, opt_showLog))
.pipe(concat('main.js'))
.pipe(jsCompiler)
.pipe(gulp.dest('output'));
},
function(){
return gulp.src(['src/scss/*.scss'])
.pipe(connect(COMMON_VARS, opt_fileStem, opt_showLog))
.pipe(concat('main.css'))
.pipe(scss)
.pipe(gulp.dest('output'));
}
)
);
License
gulp-connecting-room is licensed under Apache License 2.0
(C) 2023 itozyun(outcloud.blogspot.com)