use react templates loader
This commit is contained in:
@@ -7,7 +7,6 @@ import FsHelper from './server/lib/fs_helper';
|
||||
import ComponentMapWriter from './server/lib/tasks/component_map_writer';
|
||||
import DB from './server/config/database';
|
||||
import {PowerDataSeed, HouseSeed} from './server/lib/tasks/seed_data';
|
||||
import rtCompile from './server/lib/tasks/react_template_compile';
|
||||
|
||||
gulp.task('generate_power_csv', function(done){
|
||||
DB.sync().then(()=>{
|
||||
@@ -27,16 +26,6 @@ gulp.task('save_house_csv', function(done){
|
||||
});
|
||||
});
|
||||
|
||||
gulp.task('compile_react_templates', function() {
|
||||
gulp.src('./client/dashboard/**/*.rt')
|
||||
.pipe(rtCompile({
|
||||
modules: 'es6',
|
||||
targetVersion: '0.14.0',
|
||||
suffix: '.rt'
|
||||
}))
|
||||
.pipe(gulp.dest('./client/dashboard'));
|
||||
});
|
||||
|
||||
// right now, build only available for design.
|
||||
gulp.task('build', function(done) {
|
||||
var config, env,
|
||||
|
||||
Reference in New Issue
Block a user