mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +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', () => {
|
gulp.task('run_rollup', () => {
|
||||||
return gulp.src([
|
return gulp.src([
|
||||||
'src/core.js',
|
'js/core.js',
|
||||||
'src/compatibility.js',
|
'js/compatibility.js',
|
||||||
'panels/automation/editor.js',
|
'js/editor/editor.js',
|
||||||
'demo_data/demo_data.js',
|
'demo_data/demo_data.js',
|
||||||
])
|
])
|
||||||
.pipe(rollupEach(rollupConfig))
|
.pipe(rollupEach(rollupConfig))
|
||||||
@ -25,8 +25,7 @@ gulp.task('ru_all', ['run_rollup'], () => {
|
|||||||
|
|
||||||
gulp.task('watch_ru_all', ['ru_all'], () => {
|
gulp.task('watch_ru_all', ['ru_all'], () => {
|
||||||
gulp.watch([
|
gulp.watch([
|
||||||
'src/**/*.js',
|
'js/**/*.js',
|
||||||
'panels/**/*.js',
|
|
||||||
'demo_data/**/*.js'
|
'demo_data/**/*.js'
|
||||||
], ['ru_all']);
|
], ['ru_all']);
|
||||||
});
|
});
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { h, render } from 'preact';
|
import { h, render } from 'preact';
|
||||||
import Automation from '../../preact-src/automation';
|
import Automation from './automation';
|
||||||
|
|
||||||
window.AutomationEditor = function (mountEl, props, mergeEl) {
|
window.AutomationEditor = function (mountEl, props, mergeEl) {
|
||||||
return render(h(Automation, props), mountEl, mergeEl);
|
return render(h(Automation, props), mountEl, mergeEl);
|
Loading…
x
Reference in New Issue
Block a user