mirror of
https://github.com/home-assistant/frontend.git
synced 2026-05-08 17:28:46 +01:00
2c69e001ee
* Install gulp as dev dependency
* Placeholder gulpfile
* Replace rollup invocations with gulp
* Consolidate duplicated code
* Big cleanup of gulpfile
* Without cache test
* Revert "Without cache test"
This reverts commit 0e3881d8d7.
33 lines
676 B
JavaScript
33 lines
676 B
JavaScript
'use strict';
|
|
|
|
import gulp from 'gulp';
|
|
import rollupEach from 'gulp-rollup-each';
|
|
import rollupConfig from './rollup.config';
|
|
|
|
gulp.task('run_rollup', () => {
|
|
return gulp.src([
|
|
'src/core.js',
|
|
'src/compatibility.js',
|
|
'panels/automation/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([
|
|
'src/**/*.js',
|
|
'panels/**/*.js',
|
|
'demo_data/**/*.js'
|
|
], ['ru_all']);
|
|
});
|