mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
module.exports = function(grunt) {
|
|
grunt.initConfig({
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
|
|
chillperson: {
|
|
folders: {
|
|
pub: './public',
|
|
css: '<%= chillperson.folders.pub %>/css/',
|
|
sass: '<%= chillperson.folders.pub %>/sass/',
|
|
}
|
|
},
|
|
sass: {
|
|
dist: {
|
|
options: {
|
|
debugInfo: true,
|
|
},
|
|
files: [{
|
|
expand: true,
|
|
cwd: '<%= chillperson.folders.sass.src %>',
|
|
src: ['*.scss'],
|
|
dest: '<%= chillperson.folders.css %>',
|
|
ext: '.css'
|
|
}]
|
|
}
|
|
},
|
|
watch: {
|
|
css: {
|
|
files: [ '<%= chillperson.folders.sass %>/*.scss', '<%= chillperson.folders.sass %>/**/*.scss' ],
|
|
tasks: ['generatecss'],
|
|
/*
|
|
options: {
|
|
spawn: false,
|
|
interrupt: true,
|
|
}
|
|
*/
|
|
}
|
|
},
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-sass');
|
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
|
|
grunt.registerTask('generatecss', 'sass');
|
|
|
|
grunt.registerTask('default', ['generatecss']);
|
|
}; |