Fixed typos

pull/360/head
Abdullah Almsaeed 2015-04-15 19:07:57 -04:00
parent 777a93ddc4
commit bc4a25452e
1 changed files with 37 additions and 19 deletions

View File

@ -1,24 +1,19 @@
'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: {
options: { options: {
//Whether to compress or not // Whether to compress or not
compress: false compress: false
}, },
files: { files: {
@ -40,16 +35,16 @@ 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
compress: true compress: true
}, },
files: { files: {
// compilation.css : source.less // compilation.css : source.less
"dist/css/AdminLTE.min.css": "build/less/AdminLTE.less", "dist/css/AdminLTE.min.css": "build/less/AdminLTE.less",
//Skins minified // Skins minified
"dist/css/skins/skin-blue.min.css": "build/less/skins/skin-blue.less", "dist/css/skins/skin-blue.min.css": "build/less/skins/skin-blue.less",
"dist/css/skins/skin-black.min.css": "build/less/skins/skin-black.less", "dist/css/skins/skin-black.min.css": "build/less/skins/skin-black.less",
"dist/css/skins/skin-yellow.min.css": "build/less/skins/skin-yellow.less", "dist/css/skins/skin-yellow.min.css": "build/less/skins/skin-yellow.less",
@ -66,7 +61,7 @@ module.exports = function (grunt) {
} }
} }
}, },
//Uglify task info. Compress the js files. // Uglify task info. Compress the js files.
uglify: { uglify: {
options: { options: {
mangle: true, mangle: true,
@ -78,7 +73,7 @@ module.exports = function (grunt) {
} }
} }
}, },
//Build the documentation files // Build the documentation files
includes: { includes: {
build: { build: {
src: ['*.html'], // Source files src: ['*.html'], // Source files
@ -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']);
}; };