UNPKG

483 BJavaScriptView Raw
1// @ts-nocheck
2const gulp = require('gulp')
3const browserSync = require('browser-sync')
4const gzip = require('gulp-gzip')
5
6// Gzip files:
7gulp.task('gzip', function() {
8 gulp.src('./dist/composi.js')
9 .pipe(gzip({ extension: 'gzip' }))
10 .pipe(gulp.dest('./dist'))
11})
12
13// Setup tests:
14gulp.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})