This repository has been archived by the owner on Aug 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathGruntfile.js
45 lines (45 loc) · 1.63 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
files: {
'css/smart-grid.css': 'sass/smart-grid.scss',
'css/smart-grid-flexbox.css': 'sass/smart-grid-flexbox.scss'
}
},
options: {
style: 'compressed',
banner: '/*! <%= pkg.name %> <%= pkg.version %> | <%= pkg.license %> | <%= pkg.homepage %> */'
}
},
watch: {
css: {
files: 'sass/*.scss',
tasks: ['sass']
}
},
bump: {
options: {
files: ['package.json', 'bower.json'],
commit: true,
commitMessage: 'Release %VERSION%',
commitFiles: ['package.json', 'bower.json', 'sass/*', 'css/*'],
createTag: true,
tagName: '%VERSION%',
tagMessage: 'Release %VERSION%',
push: true,
pushTo: 'origin'
}
}
});
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-bump');
grunt.registerTask('default', ['watch']);
grunt.registerTask('build', ['sass']);
grunt.registerTask('rev:patch', ['bump-only:patch', 'sass', 'bump-commit']);
grunt.registerTask('rev:minor', ['bump-only:minor', 'sass', 'bump-commit']);
grunt.registerTask('rev:major', ['bump-only:major', 'sass', 'bump-commit']);
grunt.registerTask('rev', ['rev:patch']);
};