1 | // @ts-nocheck
|
2 | const gulp = require('gulp')
|
3 | const browserSync = require('browser-sync')
|
4 | const gzip = require('gulp-gzip')
|
5 |
|
6 | // Gzip files:
|
7 | gulp.task('gzip', function() {
|
8 | gulp.src('./dist/composi.js')
|
9 | .pipe(gzip({ extension: 'gzip' }))
|
10 | .pipe(gulp.dest('./dist'))
|
11 | })
|
12 |
|
13 | // Setup tests:
|
14 | gulp.task('test', function() {
|
15 | // Launch browser:
|
16 | browserSync({
|
17 | port: 4040,
|
18 | server: {
|
19 | open: false,
|
20 | baseDir: "./",
|
21 | index: "./test/index.html"
|
22 | }
|
23 | }).reload
|
24 | })
|