Commit 4ea01d05 authored by vikas-parashar's avatar vikas-parashar
Browse files

grunt file added

parent 6a571796
......@@ -28,7 +28,5 @@ output.xml
.installed.cfg
*.egg
rules.orig.xml
rules.dev.xml
index.orig.html
index.dev.html
\ No newline at end of file
bower_components
node_modules
\ No newline at end of file
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// we could just concatenate everything, really
// but we like to have it the complex way.
// also, in this way we do not have to worry
// about putting files in the correct order
// (the dependency tree is walked by r.js)
less: {
dist: {
options: {
paths: [],
strictMath: false,
sourceMap: true,
outputSourceFiles: true,
sourceMapURL: '++theme++barceloneta/less/barceloneta-compiled.css.map',
sourceMapFilename: 'plonetheme/spot/theme/less/spot-compiled.css.map',
modifyVars: {
"isPlone": "false"
}
},
files: {
'plonetheme/spot/theme/css/main.css': 'plonetheme/spot/theme/less/main.less'
}
}
},
watch: {
less: {
files: ['plonetheme/spot/theme/less/**/*.less'],
tasks: ['less']
}
},
browserSync: {
html: {
bsFiles: {
src : ['plonetheme/spot/theme/less/**/*.less']
},
options: {
watchTask: true,
debugInfo: true,
server: {
baseDir: "."
}
}
},
plone: {
bsFiles: {
src : ['plonetheme/spot/theme/less/**/*.less']
},
options: {
watchTask: true,
debugInfo: true,
proxy: "localhost:8080"
}
}
}
});
// grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-browser-sync');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.registerTask('default', ['watch']);
grunt.registerTask('bsync', ["browserSync:html", "watch"]);
grunt.registerTask('plone-bsync', ["browserSync:plone", "watch"]);
};
{
"name": "plonetheme.spot",
"version": "1.0.0",
"private": true,
"devDependencies": {
"grunt": "~0.4.4",
"grunt-browser-sync": "^0.8.2",
"grunt-contrib-imagemin": "^1.0.1",
"grunt-contrib-less": "latest",
"grunt-contrib-watch": "latest"
}
}
This diff is collapsed.
......@@ -5,6 +5,7 @@
body.section-front-page{
.plone-breadcrumb{
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment