-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
30 lines (26 loc) · 855 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const browserify = require('browserify');
const tsify = require('tsify');
const tinyify = require('tinyify');
const source = require('vinyl-source-stream');
const { src, dest } = require('gulp');
var sass = require('gulp-sass');
function defaultTask(cb) {
browserify({
basedir: '.',
entries: ['src/webbsd.ts'],
//debug: true,
standalone: 'webbsd', // Must match the module name in BottomSheetDialog._uiTemplate string, inside onclick handler.
cache: {},
packageCache: {}
})
.plugin(tsify, { noImplicitAny: true, target: 'es6' })
.plugin(tinyify)
.bundle()
.pipe(source('webbsd.js'))
.pipe(dest('dist'));
src('src/webbsd.scss')
.pipe(sass({ outputStyle: 'compressed' }))
.pipe(dest('dist'));
cb();
}
exports.default = defaultTask;