forked from mockee/arkui
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Gruntfile.js
52 lines (50 loc) · 1.14 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
module.exports = function(grunt) {
grunt.initConfig({
stylus: {
compile: {
files: {
'docs/css/docs.css': 'docs/styl/docs.styl'
}
}
}
, jade: {
compile: {
files: {
'docs/index.html': 'docs/jade/pages/base.jade'
, 'docs/components.html': 'docs/jade/pages/components.jade'
, 'docs/layouts.html': 'docs/jade/pages/layouts.jade'
}
}
}
, watch: {
options: {
livereload: true
}
, jade: {
files: 'docs/jade/**/*.jade'
, tasks: 'jade'
}
, stylus: {
files: 'docs/styl/**/*.styl'
, tasks: 'stylus'
}
}
, connect: {
pub: {
options: {
hostname: 'localhost'
, port: 9000
, base: './'
, keepalive: true
}
}
}
})
grunt.loadNpmTasks('grunt-contrib-jade')
grunt.loadNpmTasks('grunt-contrib-stylus')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.loadNpmTasks('grunt-contrib-connect')
grunt.loadNpmTasks('grunt-contrib-copy')
grunt.registerTask('default', ['stylus', 'jade'])
}