forked from drublic/Sass-Mixins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
53 lines (46 loc) · 1012 Bytes
/
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
/*globals module */
module.exports = function (grunt) {
var banner = '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %> */' + '\n';
// Project configuration.
grunt.initConfig({
pkg: require('./package'),
concat: {
options: {
banner: banner
},
build: {
src: ['partials/*.scss'],
dest: 'mixins.scss',
}
},
sass: {
css: {
options: {
unixNewlines: true,
style: 'expanded',
banner: banner
},
files: {
'test/css/main.css': 'test/scss/main.scss'
}
}
},
sassdoc: {
default: {
src: 'mixins.scss',
options: {
dest: 'doc',
basePath: 'https://github.com/drublic/Sass-Mixins/blob/master',
},
},
},
});
// Load some stuff
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-sassdoc');
// Default task
grunt.registerTask('default', ['concat', 'sass']);
grunt.registerTask('doc', ['concat', 'sassdoc']);
};