Permalink
Browse files

Grunt support, separate bootstrap css, sourcemap

  • Loading branch information...
tareq1988 committed Aug 30, 2015
1 parent cbdb0fc commit 38e85888b2c6f8c97067a47fb8230d9c60da6c37
Showing with 492 additions and 6,398 deletions.
  1. +38 −0 Gruntfile.js
  2. +0 −6,387 assets/css/app.css
  3. +5 −0 assets/css/bootstrap.min.css
  4. +14 −5 assets/less/app.less
  5. +2 −1 lib/scripts.php
  6. +3 −1 package.json
  7. +429 −4 style.css
  8. +1 −0 style.css.map
View
@@ -2,6 +2,42 @@
module.exports = function(grunt) {
grunt.initConfig({
// setting folder templates
dirs: {
css: 'assets/css',
less: 'assets/less',
fonts: 'assets/fonts',
images: 'assets/images',
js: 'assets/js'
},
// Compile all .less files.
less: {
// one to one
core: {
options: {
sourceMap: true,
sourceMapFilename: 'style.css.map',
sourceMapURL: 'style.css.map',
sourceMapRootpath: '../../'
},
files: {
'style.css': '<%= dirs.less %>/app.less'
}
},
},
watch: {
less: {
files: ['<%= dirs.less %>/*.less'],
tasks: ['less:core'],
options: {
livereload: true
}
}
},
// Generate POT files.
makepot: {
target: {
@@ -20,4 +56,6 @@ module.exports = function(grunt) {
// Load NPM tasks to be used here
grunt.loadNpmTasks( 'grunt-wp-i18n' );
grunt.loadNpmTasks( 'grunt-contrib-less' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
};
Oops, something went wrong.

0 comments on commit 38e8588

Please sign in to comment.