0.3.0 • Published 10 months ago

gulp-connecting-room v0.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

gulp-connecting-room

npm.io

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)

0.3.0

10 months ago

0.2.0

10 months ago

0.1.0

10 months ago