-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
45 lines (43 loc) · 1.31 KB
/
gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*global module, grunt*/
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
copy: {
libjs: {
expand: true,
cwd: 'bower_components/',
src: ['angular/angular.js', 'angular-route/angular-route.js'],
dest: 'www/lib/'
},
topcoat: {
expand: true,
cwd: 'bower_components/topcoat/',
src: ['css/topcoat-mobile-dark.min.css', 'font/*.otf'],
dest: 'www/lib/'
},
html: {
expand: true,
flatten: true,
src: [ "src/*.html", "src/app/**/*.html"],
dest: "www/"
},
css: {
expand: true,
cwd: 'src/',
src: 'css/*.css',
dest: 'www/'
}
},
concat: {
js: {
src: ["src/app/app.js", "src/app/**/*.js"],
dest: 'www/main.js'
}
}
});
//Plugins grunt
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-concat');
//Tarefas que podem executas
grunt.registerTask('default', ['copy:libjs', 'copy:topcoat', 'copy:html', 'copy:css', 'concat:js']);
};