-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
85 lines (85 loc) · 2.35 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
module.exports = (function () {
'use strict';
return function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.loadNpmTasks('grunt-gh-pages');
var config = {
src: 'app'
};
// Nope. Doesnt switch to a temporary folder to work! grunt.loadNpmTasks('grunt-build-gh-pages');
grunt.initConfig({
config: config,
'gh-pages': {
options: {
base: 'www'
},
src: ['**']
},
jshint: {
options: {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish')
},
gruntfile: 'Gruntfile.js',
src: ['<%= config.src %>/js/*.js', '!<%= config.src %>/js/templates.js']
},
copy: {
libs: {
files:[
{
cwd: 'bower_components/',
nonull: true,
flatten: true,
expand: true,
filter: 'isFile',
src: ['/requirejs/require.js',
'/underscore/underscore-min.js',
'/source-map/dist/source-map.min.js',
'/dynatable/jquery.dynatable.js'
],
dest: 'www/js/vendor/'
},
{
cwd: 'bower_components/',
nonull: true,
flatten: true,
expand: true,
filter: 'isFile',
src: ['/dynatable/jquery.dynatable.css'
],
dest: 'www/css'
}
]
},
foundation: {
files:[
{
cwd: 'bower_components/',
expand: true,
nonull: true,
flatten: true,
filter: 'isFile',
src: ['/foundation-sites/dist/foundation.min.js',
'/foundation-sites/dist/plugins/foundation.abide.js',
'/jquery/dist/jquery.min.js',
'/jquery-validation/dist/jquery.validate.min.js',
'/what-input/what-input.min.js'
],
dest: 'www/js/vendor/'
},
{
cwd: 'bower_components/',
expand: true,
nonull: true,
flatten: true,
filter: 'isFile',
src: '/foundation-sites/dist/foundation.min.css',
dest: 'www/css/'
}
]
}
}
});
grunt.registerTask("publish", ['copy', 'gh-pages']);
};
})();