-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
61 lines (56 loc) · 1.34 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: ';\n'
},
AppKit: {
src: [
'src/js/AppKit/Class.js',
'src/js/AppKit/EventDispatcher.js',
'src/js/AppKit/NodeClass.js',
'src/js/AppKit/ScrollPane.js',
'src/js/AppKit/WebApp.js',
'src/js/AppKit/PageView.js',
'src/js/AppKit/Page.js',
'src/js/AppKit/Menu.js',
// 'src/libs/sass.sync.js',
// 'src/js/AppKit/StyleSass.js',
'src/js/AppKit.js',
],
dest: 'dist/AppKit.src.js',
},
ak: {
options: {
banner: '"use strict";\nconsole.html=s=>{};\n'
},
src: [
'src/ak/NodeClass.js',
'src/ak/ScrollPane.js',
'src/ak/Window.js',
// 'src/ak/WebApp.js',
'src/ak/PageView.js',
'src/ak/Page.js',
'src/ak/Menu.js',
// 'src/libs/sass.sync.js',
// 'src/ak/StyleSass.js',
],
dest: 'dist/AppKit-namespace.src.js',
}
},
uglify: {
AppKit: {
files: {
'dist/AppKit.js': ['dist/AppKit.src.js']
}
}
}
});
// Load the plugins that provides the "uglify" task and "concat" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
// Default task(s).
grunt.registerTask('default', ['concat:', 'concat:ak']);
};