mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-21 20:07:27 +00:00
31 lines
724 B
JavaScript
31 lines
724 B
JavaScript
const gulp = require('gulp');
|
|
const rollupEach = require('gulp-rollup-each');
|
|
const rollupConfig = require('../../rollup.config');
|
|
|
|
gulp.task('run_rollup', () => {
|
|
return gulp.src([
|
|
'js/core.js',
|
|
'js/compatibility.js',
|
|
'js/automation-editor/automation-editor.js',
|
|
'js/script-editor/script-editor.js',
|
|
'demo_data/demo_data.js',
|
|
])
|
|
.pipe(rollupEach(rollupConfig, 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']);
|
|
});
|