mirror of https://github.com/ColorlibHQ/AdminLTE
Fixed typos
parent
777a93ddc4
commit
bc4a25452e
38
Gruntfile.js
38
Gruntfile.js
|
@ -1,19 +1,14 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
module.exports = function (grunt) {
|
module.exports = function (grunt) {
|
||||||
// load all grunt tasks
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-less');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
|
||||||
grunt.loadNpmTasks('grunt-includes');
|
|
||||||
|
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
watch: {
|
watch: {
|
||||||
// if any .less file changes in directory "build/less/" run the "less"-task.
|
// If any .less file changes in directory "build/less/" run the "less"-task.
|
||||||
files: ["build/less/*.less", "build/less/skins/*.less", "dist/js/app.js"],
|
files: ["build/less/*.less", "build/less/skins/*.less", "dist/js/app.js"],
|
||||||
tasks: ["less", "uglify"]
|
tasks: ["less", "uglify"]
|
||||||
},
|
},
|
||||||
// "less"-task configuration
|
// "less"-task configuration
|
||||||
//this task will compile all less files upon saving to create both AdminLTE.css and AdminLTE.min.css
|
// This task will compile all less files upon saving to create both AdminLTE.css and AdminLTE.min.css
|
||||||
less: {
|
less: {
|
||||||
// Development not compressed
|
// Development not compressed
|
||||||
development: {
|
development: {
|
||||||
|
@ -40,7 +35,7 @@ module.exports = function (grunt) {
|
||||||
"dist/css/skins/_all-skins.css": "build/less/skins/_all-skins.less"
|
"dist/css/skins/_all-skins.css": "build/less/skins/_all-skins.less"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//production compresses version
|
// Production compresses version
|
||||||
production: {
|
production: {
|
||||||
options: {
|
options: {
|
||||||
// Whether to compress or not
|
// Whether to compress or not
|
||||||
|
@ -88,11 +83,34 @@ module.exports = function (grunt) {
|
||||||
options: {
|
options: {
|
||||||
silent: true,
|
silent: true,
|
||||||
includePath: 'documentation/build/include'
|
includePath: 'documentation/build/include'
|
||||||
//banner: '<!-- I am a banner <% includes.files.dest %> -->'
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
cssjanus: {
|
||||||
|
build: {
|
||||||
|
files: {
|
||||||
|
'dist/css/AdminLTE-rtl.css': 'dist/css/AdminLTE.css',
|
||||||
|
'dist/css/AdminLTE-rtl.min.css': 'dist/css/AdminLTE.min.css',
|
||||||
|
'bootstrap/css/bootstrap-rtl.css': 'bootstrap/css/bootstrap.css',
|
||||||
|
'bootstrap/css/bootstrap-rtl.min.css': 'bootstrap/css/bootstrap.min.css'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// the default task (running "grunt" in console) is "watch"
|
|
||||||
|
// Load all grunt tasks
|
||||||
|
|
||||||
|
// LESS Compiler
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-less');
|
||||||
|
// Watch File Changes
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||||
|
// Compress JS Files
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||||
|
// Include Files Within HTML
|
||||||
|
grunt.loadNpmTasks('grunt-includes');
|
||||||
|
// Convert CSS to RTL
|
||||||
|
grunt.loadNpmTasks('grunt-cssjanus');
|
||||||
|
|
||||||
|
// The default task (running "grunt" in console) is "watch"
|
||||||
grunt.registerTask('default', ['watch']);
|
grunt.registerTask('default', ['watch']);
|
||||||
};
|
};
|
Loading…
Reference in New Issue