Errores al generar rutas solucionados
This commit is contained in:
parent
d9bfd1b579
commit
9f7be0dbbe
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
compras: ["crud"],
|
||||
crud: []
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
import {bootstrap} from './bootstrap';
|
||||
import * as spliting from './spliting';
|
||||
import * as routes from './routes';
|
||||
import * as routes from './configroutes';
|
||||
|
||||
bootstrap();
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
[{
|
||||
url: '/index',
|
||||
state: 'index',
|
||||
template: '<customer-index></customer-index>',
|
||||
module: 'crud',
|
||||
description: '',
|
||||
image: '',
|
||||
}
|
||||
}]
|
||||
|
|
|
@ -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'));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue