forked from beevelop/ng-feathers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
33 lines (32 loc) · 837 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
module.exports = function (grunt) {
grunt.initConfig({
uglify: {
main: {
options: {
preserveComments: function (node, comment) {
return comment.value.indexOf('ngFeathers') > -1
}
},
files: {
'dist/ng-feathers.min.js': ['src/ng-feathers.js'],
'dist/ng-feathers.standalone.min.js': [
'bower_components/socket.io-client/socket.io.js',
'bower_components/feathers-client/dist/feathers.js',
'src/ng-feathers.js'
]
}
}
},
standard: {
options: {
format: true
},
app: {
src: ['ng-feathers.js']
}
}
})
grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.loadNpmTasks('grunt-standard')
grunt.registerTask('default', ['standard', 'uglify'])
}