-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathgruntfile.js
36 lines (34 loc) · 1.46 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
foo: {
// the files to concatenate
src: ['src/Promises.js', 'src/CloudApp.js', 'src/ACL.js', 'src/CloudNotifications.js', 'src/CloudObject.js', 'src/CloudQuery.js', 'src/CloudSearch.js'
, 'src/CloudUser.js', 'src/CloudRole.js', 'src/CloudFile.js', 'src/Private_methods.js'],
// the location of the resulting JS file
dest: 'dist/1.0.0.js'
},
bar:{
// the files to concatenate
src: ['dist/1.0.0.js','test/util/util.js','test/server_test.js','test/init/init.js','test/CloudObject/*.js','test/CloudExpire/*.js'
,'test/CloudExpire/*.js','test/CloudFile/*.js','test/CloudNotification/*.js','test/CloudQuery/*.js','test/CloudSearch/*.js'
,'test/CloudUser/*.js','test/ACL/*.js'],
dest: 'test/join.js'
}
},
uglify: {
options:{
},
my_target:{
files:{
'dist/1.0.0.min.js':['dist/1.0.0.js']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default',['concat:foo','concat:bar']);
grunt.registerTask('ugly',['uglify']);
}