-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathGruntfile.coffee
53 lines (45 loc) · 1.47 KB
/
Gruntfile.coffee
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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
meta: {
banner: "/****************************************************************************************\n" +
" * Node.DC Website - Version <%= pkg.version %>\n" +
" *\n" +
" * Copyright <%= grunt.template.today(\"yyyy\") %> Node.DC <@NodeDC>\n" +
" ****************************************************************************************/"
}
jshint:
files: ["public/ng/*.js", "server.js", "protractor.conf.js"]
coffeelint:
options:
configFile: "coffeelint.json"
files: ["Gruntfile.coffee"]
less:
options:
paths: ['public/css']
cleancss: true
src:
expand: true
cwd: "public/css"
src: "*.less"
ext: ".min.css"
dest: "public/css/"
cssmin:
combine:
options:
banner: "<%= meta.banner %>"
minify:
expand: true,
cwd: 'public/css/',
src: ['*.css', '!*.min.css'],
dest: 'public/css/',
ext: '.min.css'
protractor:
angular:
configFile: "protractor.conf.js"
grunt.loadNpmTasks "grunt-contrib-jshint"
grunt.loadNpmTasks "grunt-protractor-runner"
grunt.loadNpmTasks "grunt-contrib-less"
grunt.loadNpmTasks "grunt-contrib-cssmin"
grunt.loadNpmTasks "grunt-coffeelint"
grunt.registerTask "default", ["jshint", "less"]