Organize JS better (#343)

This commit is contained in:
Paulus Schoutsen 2017-07-16 23:31:19 -07:00 committed by GitHub
parent 35c4e1d5ae
commit 2453d6f397
16 changed files with 5 additions and 6 deletions

View File

@ -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']);
}); });

View File

@ -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);