-
Notifications
You must be signed in to change notification settings - Fork 6
/
Gruntfile.js
56 lines (52 loc) · 1.53 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
/**
* Grunt Buildfile for Jailbreak Wordpress
*
* To be used with GruntJS <http://gruntjs.com/>
*/
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
concat: {
options: {
banner: "/**\n" +
"* <%= pkg.name %>\n" +
" * <%= pkg.description %>\n" +
" *\n" +
" * @author Ted Benson \n" +
" * @copyright Ted Benson <%= grunt.template.today('yyyy') %>\n" +
" * @license <%= pkg.licenses[0].type %> <<%= pkg.licenses[0].url %>>\n" +
" * @link <%= pkg.homepage %>\n" +
" * @module <%= pkg.name %>\n" +
" * @version <%= pkg.version %>\n" +
" */\n"
},
dscrape: {
src : [
"src/fragments/prefix._js",
"src/utilities.js",
"src/commands/scrape.js",
"src/commands/stitch.js",
"src/commands/setup.js",
"src/commands/add-theme.js",
"src/commands/fetch.js",
"src/cts-cli.js",
"src/fragments/postfix._js",
],
dest : "release/cts-cli.js"
}
},
jshint: {
files: ['grunt.js', 'src/**/*.js']
},
qunit: {
files: [
"test/index.html"
]
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('default', ['jshint', 'concat']);
};