-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathGruntfile.js
56 lines (53 loc) · 2.03 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
module.exports = function (grunt) {
grunt.initConfig({
fixturesPath: "fixtures",
htmlbuild: {
dist: {
src: './*.html',
dest: './samples/',
options: {
beautify: true,
//allowUnknownTags: true,
//parseTag: 'htmlbuild',
// keepTags: true,
relative: true,
processFiles: true,
scripts: {
bundle: [
'<%= fixturesPath %>/scripts/*.js',
'!**/main.js',
],
bundle_remote: [
"//cdn.jsdelivr.net/jquery/2.1.0/jquery.min.js",
"//cdn.jsdelivr.net/bootstrap/3.1.1/js/bootstrap.min.js"
],
inlineapp: '<%= fixturesPath %>/scripts/app.js',
main: '<%= fixturesPath %>/scripts/main.js'
},
styles: {
bundle: {
cwd: '<%= fixturesPath %>',
files: [
'css/libs.css',
'css/dev.css',
'css/another.less'
]
},
test: '<%= fixturesPath %>/css/inline.css',
pageSpecific: '<%= fixturesPath %>/css/$(filename).inline.css'
},
sections: {
views: '<%= fixturesPath %>/views/**/*.html',
templates: '<%= fixturesPath %>/templates/**/*.html',
},
data: {
version: "0.1.0",
title: "test",
},
}
}
}
});
grunt.loadTasks('tasks');
grunt.registerTask('default', ['htmlbuild']);
};