Files
sao/www/bower_components/bootstrap-rtl-ondemand/Gruntfile.js
2026-03-14 09:49:00 +00:00

60 lines
1.7 KiB
JavaScript

module.exports = function(grunt) {
"use strict";
// Project configuration
grunt.initConfig({
// Read package.json Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*******************************************************************************\n' +
' * <%= pkg.name %> (version <%= pkg.version %>)\n' +
' * Author: <%= pkg.author %>\n' +
' * Created on: <%= grunt.template.today("mmmm dd,yyyy") %>\n' +
' * Project: <%= pkg.name %>\n' +
' * Copyright: Unlicensed Public Domain\n' +
' *******************************************************************************/\n',
less: {
rtl: {
options: {
strictMath: true,
cleancss: false,
sourceMap: true,
outputSourceFiles: true,
sourceMapURL: '<%= pkg.name %>.css.map',
sourceMapFilename: 'dist/css/<%= pkg.name %>.css.map'
},
files: {
'dist/css/<%= pkg.name %>.css': 'less/bootstrap-rtl.less'
}
},
minify: {
options: {
cleancss: true
},
files: {
'dist/css/<%= pkg.name %>.min.css': 'dist/css/<%= pkg.name %>.css',
}
}
},
usebanner: {
options: {
position: 'top',
banner: '<%= banner %>',
linebreak: true
},
files: {
src: ['dist/css/<%= pkg.name %>.css',
'dist/css/<%= pkg.name %>.min.css']
}
}
});
// Load uglify plugin
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-banner');
// Default Task
grunt.registerTask('default', ['less', 'usebanner']);
};