Skip to content

Commit c3a8428

Browse files
committed
split into sections for better automation
1 parent 7481bcf commit c3a8428

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+19098
-1446
lines changed

Gruntfile.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
module.exports = function (grunt) {
2+
3+
// Load the plugin that provides the "uglify" task.
4+
grunt.loadNpmTasks('grunt-contrib-concat');
5+
grunt.loadNpmTasks('grunt-contrib-copy');
6+
7+
// Project configuration.
8+
grunt.initConfig({
9+
pkg: grunt.file.readJSON('package.json'),
10+
src: {
11+
js: ['sections/head/code.js',
12+
'sections/basics/code.js',
13+
'sections/format/code.js',
14+
'sections/sort/code.js',
15+
'sections/filter/code.js',
16+
'sections/selection/code.js',
17+
'sections/edit/code.js',
18+
'sections/style/code.js',
19+
'sections/cellTemplate/code.js',
20+
'sections/config/code.js'],
21+
html: ['sections/head/markup.html',
22+
'sections/basics/markup.html',
23+
'sections/format/markup.html',
24+
'sections/sort/markup.html',
25+
'sections/filter/markup.html',
26+
'sections/selection/markup.html',
27+
'sections/edit/markup.html',
28+
'sections/style/markup.html',
29+
'sections/cellTemplate/markup.html',
30+
'sections/config/markup.html',
31+
'sections/foot/markup.html']
32+
},
33+
concat: {
34+
options: {
35+
},
36+
js: {
37+
src: ['<%= src.js %>'],
38+
dest: 'assets/js/app.js'
39+
},
40+
html: {
41+
src: ['<%= src.html %>'],
42+
dest: 'index.html'
43+
}
44+
}
45+
});
46+
// Default task(s).
47+
grunt.registerTask('default', ['concat', 'copy']);
48+
};

0 commit comments

Comments
 (0)