forked from actionhero/actionhero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
executable file
·43 lines (38 loc) · 902 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
33
34
35
36
37
38
39
40
41
42
43
var grunt = require('grunt')
, fs = require('fs')
, path = require('path')
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish')
},
test: {
src: ['*.js','**/*.js']
}
},
clean: {
publish: {
src: 'public/javascript/actionheroWebSocket.min.js'
}
},
projectUpdate: {
update: {}
},
uglify: {
options: {
lint: true
},
publish: {
src: 'public/javascript/actionheroClient.js',
dest: 'public/javascript/actionheroClient.min.js'
}
}
})
grunt.loadTasks(__dirname + '/grunt')
grunt.loadNpmTasks('grunt-contrib-clean')
grunt.loadNpmTasks('grunt-contrib-jshint')
grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.loadNpmTasks('grunt-project-update')
grunt.registerTask('publish',['clean:publish','uglify:publish'])
grunt.registerTask('update',['projectUpdate'])