mirror of
https://github.com/home-assistant/frontend.git
synced 2025-06-18 08:06:35 +00:00

* Add build using polymer-build * Use bundle strategies to tweak stripExcludes * Only vulcanize hass.io panel * Rename hassio panel generate script * Remove hydrolysis * Get it all somewhat working * Fixes * Allow ES2015 + fix minify JS * Clarify we need to fix service worker minify * Move service worker template out of tasks folder * Fix broken CSS * Wrap it up * Fix maps
30 lines
632 B
JavaScript
30 lines
632 B
JavaScript
import gulp from 'gulp';
|
|
import rollupEach from 'gulp-rollup-each';
|
|
import rollupConfig from '../../rollup.config';
|
|
|
|
gulp.task('run_rollup', () => {
|
|
return gulp.src([
|
|
'js/core.js',
|
|
'js/compatibility.js',
|
|
'js/editor/editor.js',
|
|
'demo_data/demo_data.js',
|
|
])
|
|
.pipe(rollupEach(rollupConfig))
|
|
.pipe(gulp.dest('build-temp'));
|
|
});
|
|
|
|
gulp.task('ru_all', ['run_rollup'], () => {
|
|
gulp.src([
|
|
'build-temp/core.js',
|
|
'build-temp/compatibility.js',
|
|
])
|
|
.pipe(gulp.dest('build/'));
|
|
});
|
|
|
|
gulp.task('watch_ru_all', ['ru_all'], () => {
|
|
gulp.watch([
|
|
'js/**/*.js',
|
|
'demo_data/**/*.js'
|
|
], ['ru_all']);
|
|
});
|