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', () => {
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']);
});

View File

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