gulp-connecting-room

0.3.0 • Public • Published

gulp-connecting-room

Image source:TBS NEWS23

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)

Readme

Keywords

Package Sidebar

Install

npm i gulp-connecting-room

Weekly Downloads

1

Version

0.3.0

License

Apache-2.0

Unpacked Size

4.07 kB

Total Files

3

Last publish

Collaborators

  • itozyun