forked from IanLunn/Sequence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
71 lines (60 loc) · 2.09 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
62
63
64
65
66
67
68
69
70
71
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
//TODO - make this dynamic
sass: {
dist: {
files: {
'themes/apple-style/css/sequencejs-theme.apple-style.css': 'themes/apple-style/scss/*.scss',
'themes/basic-crossfade/css/sequencejs-theme.basic-crossfade.css': 'themes/basic-crossfade/scss/*.scss',
'themes/basic-slide/css/sequencejs-theme.basic-slide.css': 'themes/basic-slide/scss/*.scss',
'themes/documentation-demo/css/sequencejs-theme.documentation-demo.css': 'themes/documentation-demo/scss/*.scss',
'themes/modern-slide-in/css/sequencejs-theme.modern-slide-in.css': 'themes/modern-slide-in/scss/*.scss',
'themes/sliding-horizontal-parallax/css/sequencejs-theme.sliding-horizontal-parallax.css': 'themes/sliding-horizontal-parallax/scss/*.scss',
'themes/theme-template/css/sequencejs-theme.theme-template.css': 'themes/theme-template/scss/*.scss'
}
}
},
uglify: {
options: {
preserveComments: 'some'
},
my_target: {
files: {
'scripts/jquery.sequence-min.js':
['scripts/jquery.sequence.js']
}
}
},
watch: {
options: {
livereload: true,
},
scripts: {
files: ['scripts/jquery.sequence.js'],
tasks: ['uglify'],
options: {
spawn: false
}
},
css: {
files: ['themes/**/*.scss'],
tasks: ['sass'],
options: {
spawn: false
}
}
},
connect: {
server: {
options: {
port: 8000,
base: './'
}
}
}
});
require('load-grunt-tasks')(grunt);
grunt.registerTask('default', ['connect', 'watch']); //watch for local development
grunt.registerTask('run', ['sass', 'uglify']);
};