-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
59 lines (49 loc) · 1.63 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
/* jslint node: true */
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
stylus: {
compile: {
options: {
banner: '/*\n' +
'Theme Name: WP Modern Boilerplate\n' +
'Theme URI: https://github.com/leandrocunha/wp-modern-boilerplate\n' +
'Author: Leandro Cunha aka. Frango\n' +
'Author URI: http://frango.herokuapp.com\n' +
'Description: The modern boilerplate to build WordPress themes more powerfull\n' +
'Version: 2.0\n' +
'License: GNU General Public License v2 or later\n' +
'License URI: http://www.gnu.org/licenses/gpl-2.0.html\n' +
'Tags: gray, blue, white, flat, bootstrap, grunt, bower\n' +
'Text Domain: wpmodernboilerplate\n' +
'\n' +
'This theme, like WordPress, is licensed under the GPL.\n' +
'Use it to make something cool, have fun, and share what you\'ve learned with others.\n' +
'*/\n',
paths: [
'./node_modules/jeet/stylus'
],
import: [
'jeet'
]
},
files: {
'style.css': 'assets/dev/stylus/app.styl'
}
}
},
watch: {
scripts: {
files: ['assets/dev/stylus/app.styl'],
tasks: ['stylus']
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-stylus');
grunt.loadNpmTasks('grunt-contrib-watch');
// Default task(s).
grunt.registerTask('default', ['stylus', 'watch']);
};