forked from ShavitCohen/bootstrap3-rtl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
55 lines (49 loc) · 1.55 KB
/
Copy pathGruntfile.js
File metadata and controls
55 lines (49 loc) · 1.55 KB
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
module.exports = function(grunt) {
"use strict";
// Project configuration
grunt.initConfig({
// Read package.json Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*******************************************************************************\n' +
' * <%= pkg.name %> (Version <%= pkg.version %>)\n' +
' * Author: <%= pkg.author %>\n' +
' * Created on: <%= grunt.template.today("mmmm dd,yyyy") %>\n' +
' * Project: <%= pkg.name %>\n' +
' * Copyright: See the file "LICENSE" for the full license governing this code.\n' +
' *******************************************************************************/\n',
less: {
rtl: {
options: {
strictMath: true,
cleancss: false
},
files: {
'dist/css/<%= pkg.name %>.css': 'less/bootstrap-rtl.less'
}
},
minify: {
options: {
cleancss: true
},
files: {
'dist/css/<%= pkg.name %>.min.css': 'dist/css/<%= pkg.name %>.css',
}
}
},
usebanner: {
options: {
position: 'top',
banner: '<%= banner %>',
linebreak: true
},
files: {
src: ['dist/css/<%= pkg.name %>.css', 'dist/css/<%= pkg.name %>.min.css']
}
}
});
// Load uglify plugin
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-banner');
// Default Task
grunt.registerTask('default', ['less', 'usebanner']);
};