forked from skywalkapps/nav-priority
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
32 lines (23 loc) · 815 Bytes
/
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
/* jshint node: true */
var path = require('path');
module.exports = function(grunt) {
"use strict";
// require it at the top and pass in the grunt instance
require('time-grunt')(grunt);
// Load the plugins
require('load-grunt-tasks')(grunt);
// Load grunt configuration
require('load-grunt-config')(grunt);
// BUILD TASKS
// -------------------------
// Default build task
grunt.registerTask('default', ['clean', 'copy', 'dist-css', 'dist-js']);
// JS tasks
grunt.registerTask('dist-js', ['neuter', 'uglify', 'compress']);
grunt.registerTask('dev-js', ['neuter', 'jshint']);
// CSS tasks
grunt.registerTask('dist-css', ['less', 'copy']);
grunt.registerTask('dev-css', ['less', 'csslint']);
// Server task
grunt.registerTask('server', ['connect:server', 'watch']);
};