forked from paulwardrip/xmlschema.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
45 lines (37 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
37
38
39
40
41
42
43
44
45
module.exports = function(grunt) {
// Project configuration
grunt.initConfig({
watch: {
files: [ "source/*.js" ],
tasks: [ "concat", "uglify" ]
},
concat: {
build: {
files: [{
'dist/xmlschema-all.js': [ 'source/xmlparser.js', 'source/xmljson.js',
'source/simpletype-validator.js', 'source/xsdoptions.js', 'source/xmlschema.js' ],
'dist/xsdoptions.js': [ 'source/xmlparser.js', 'source/simpletype-validator.js',
'source/xsdoptions.js' ],
'dist/xmlschema.js': [ 'source/xmlparser.js', 'source/simpletype-validator.js',
'source/xmlschema.js' ],
'dist/xmljson.js': [ 'source/xmljson.js' ]
}]
}
},
uglify: {
build: {
files: [{
'dist/xmlschema-all.min.js': [ 'dist/xmlschema-all.js' ],
'dist/xsdoptions.min.js': [ 'dist/xsdoptions.js' ],
'dist/xmlschema.min.js': [ 'dist/xmlschema.js' ],
'dist/xmljson.min.js': [ 'dist/xmljson.js' ]
}]
}
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
// Default task.
grunt.registerTask('default', ['concat','uglify']);
};