Improve build scripts of Web frontend
This commit is contained in:
parent
e4ec5313db
commit
a70287870b
|
@ -50,15 +50,18 @@ module.exports = function(grunt) {
|
|||
'<%= src %>/angular-foundation/mm-foundation-tpls<%= min %>.js',
|
||||
'<%= src %>/foundation/js/foundation<%= min %>.js',
|
||||
'<%= src %>/ionic/release/js/ionic<%= min %>.js',
|
||||
'<%= src %>/underscore/underscore-min.js'
|
||||
'<%= src %>/underscore/underscore-min.*'
|
||||
];
|
||||
for (var i = 0; i < js.length; i++) {
|
||||
var src = grunt.template.process(js[i], {data: options});
|
||||
for (var j = 0; j < js.length; j++) {
|
||||
var files = grunt.file.expand(grunt.template.process(js[j], {data: options}))
|
||||
for (var i = 0; i < files.length; i++) {
|
||||
var src = files[i];
|
||||
var paths = src.split('/');
|
||||
var dest = options.js_dest + paths[paths.length-1];
|
||||
grunt.file.copy(src, dest);
|
||||
grunt.log.ok("copy " + src + " => " + dest);
|
||||
}
|
||||
}
|
||||
var fonts = grunt.file.expand(
|
||||
grunt.template.process('<%= src %>/ionic/release/fonts/ionicons.*',
|
||||
{data: options})
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"bower": ">=1.3.8",
|
||||
"node-sass": ">=0.7.0",
|
||||
"grunt": ">=0.4.1",
|
||||
"grunt-cli": ">=0.1.11",
|
||||
"grunt-contrib-watch": ">=0.5.3",
|
||||
"grunt-sass": ">=0.8.0"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue