Improve build scripts of Web frontend

pull/91/head
Francis Lachapelle 2014-08-13 15:56:29 -04:00
parent e4ec5313db
commit a70287870b
2 changed files with 11 additions and 7 deletions

View File

@ -50,14 +50,17 @@ 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});
var paths = src.split('/');
var dest = options.js_dest + paths[paths.length-1];
grunt.file.copy(src, dest);
grunt.log.ok("copy " + src + " => " + dest);
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.*',

View File

@ -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"
}