tao-test/app/taoDeliveryRdf/views/build/grunt/sass.js

35 lines
1.1 KiB
JavaScript
Raw Normal View History

2022-08-29 20:14:13 +02:00
module.exports = function(grunt) {
var sass = grunt.config('sass') || {};
var watch = grunt.config('watch') || {};
var notify = grunt.config('notify') || {};
var root = grunt.option('root') + '/taoDeliveryRdf/views/';
sass.taodeliveryrdf = { };
sass.taodeliveryrdf.files = { };
sass.taodeliveryrdf.files[root + 'css/selector.css'] = root + 'scss/selector.scss';
sass.taodeliveryrdf.files[root + 'css/delivery-rdf.css'] = root + 'scss/delivery-rdf.scss';
watch.taodeliveryrdfsass = {
files : [root + 'scss/**/*.scss'],
tasks : ['sass:taodeliveryrdf', 'notify:taodeliveryrdfsass'],
options : {
debounceDelay : 1000
}
};
notify.taodeliveryrdfsass = {
options: {
title: 'Grunt SASS',
message: 'SASS files compiled to CSS'
}
};
grunt.config('sass', sass);
grunt.config('watch', watch);
grunt.config('notify', notify);
//register an alias for main build
grunt.registerTask('taodeliveryrdfsass', ['sass:taodeliveryrdf']);
};