Errores al generar rutas solucionados

This commit is contained in:
Juan Ferrer Toribio 2016-10-18 10:36:16 +02:00
parent d9bfd1b579
commit 9f7be0dbbe
5 changed files with 9 additions and 5 deletions

View File

@ -0,0 +1,4 @@
{
compras: ["crud"],
crud: []
}

View File

@ -1,5 +1,5 @@
import {bootstrap} from './bootstrap';
import * as spliting from './spliting';
import * as routes from './routes';
import * as routes from './configroutes';
bootstrap();

View File

@ -1,8 +1,8 @@
{
[{
url: '/index',
state: 'index',
template: '<customer-index></customer-index>',
module: 'crud',
description: '',
image: '',
}
}]

View File

@ -5,7 +5,7 @@ var insert = require ('gulp-insert');
var babel = require ('gulp-babel');
var wrap = require("gulp-wrap");
var template = '"<%=file.path%>": <%=contents%>';
var template = '\n"<%=file.path%>": <%=contents%>';
gulp.task ('default', function ()
{
@ -13,7 +13,7 @@ gulp.task ('default', function ()
.pipe (wrap (template))
.pipe (concat ('salix.routes.js', {newLine: ','}))
.pipe (insert.prepend ('var routes = {'))
.pipe (insert.append ('};'))
.pipe (insert.append ('\n};'))
.pipe (babel ({presets: ['es2015']}))
.pipe (gulp.dest ('./build/private'));
});