mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 15:56:35 +00:00
Organize JS better (#343)
This commit is contained in:
parent
35c4e1d5ae
commit
2453d6f397
@ -6,9 +6,9 @@ import rollupConfig from './rollup.config';
|
||||
|
||||
gulp.task('run_rollup', () => {
|
||||
return gulp.src([
|
||||
'src/core.js',
|
||||
'src/compatibility.js',
|
||||
'panels/automation/editor.js',
|
||||
'js/core.js',
|
||||
'js/compatibility.js',
|
||||
'js/editor/editor.js',
|
||||
'demo_data/demo_data.js',
|
||||
])
|
||||
.pipe(rollupEach(rollupConfig))
|
||||
@ -25,8 +25,7 @@ gulp.task('ru_all', ['run_rollup'], () => {
|
||||
|
||||
gulp.task('watch_ru_all', ['ru_all'], () => {
|
||||
gulp.watch([
|
||||
'src/**/*.js',
|
||||
'panels/**/*.js',
|
||||
'js/**/*.js',
|
||||
'demo_data/**/*.js'
|
||||
], ['ru_all']);
|
||||
});
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { h, render } from 'preact';
|
||||
import Automation from '../../preact-src/automation';
|
||||
import Automation from './automation';
|
||||
|
||||
window.AutomationEditor = function (mountEl, props, mergeEl) {
|
||||
return render(h(Automation, props), mountEl, mergeEl);
|
Loading…
x
Reference in New Issue
Block a user