|
@ -57,6 +57,9 @@ module.exports = function(grunt) { |
|
|
// creates custom license in header
|
|
|
// creates custom license in header
|
|
|
'cssmin:addBanner', |
|
|
'cssmin:addBanner', |
|
|
|
|
|
|
|
|
|
|
|
// generate code docs
|
|
|
|
|
|
'docco:generate', |
|
|
|
|
|
|
|
|
// creates release zip
|
|
|
// creates release zip
|
|
|
'compress:everything', |
|
|
'compress:everything', |
|
|
|
|
|
|
|
@ -110,6 +113,24 @@ module.exports = function(grunt) { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
docco: { |
|
|
|
|
|
generate: { |
|
|
|
|
|
options: { |
|
|
|
|
|
css : '../spec/assets/docco.css', |
|
|
|
|
|
output : '../spec/docs/' |
|
|
|
|
|
}, |
|
|
|
|
|
files: [ |
|
|
|
|
|
{ |
|
|
|
|
|
expand : true, |
|
|
|
|
|
cwd : '../spec/', |
|
|
|
|
|
src : [ |
|
|
|
|
|
'**.commented.js' |
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
less: { |
|
|
less: { |
|
|
options: { |
|
|
options: { |
|
|
compress : false, |
|
|
compress : false, |
|
@ -226,21 +247,6 @@ module.exports = function(grunt) { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// generate documented source code
|
|
|
|
|
|
docco: { |
|
|
|
|
|
generate: { |
|
|
|
|
|
expand : true, |
|
|
|
|
|
cwd : '../spec', |
|
|
|
|
|
src : [ |
|
|
|
|
|
'**/*.commented.js' |
|
|
|
|
|
], |
|
|
|
|
|
options: { |
|
|
|
|
|
css: '', |
|
|
|
|
|
output: 'src/files/generated/' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
compress: { |
|
|
compress: { |
|
|
options: { |
|
|
options: { |
|
@ -371,7 +377,7 @@ module.exports = function(grunt) { |
|
|
grunt.loadNpmTasks('grunt-contrib-less'); |
|
|
grunt.loadNpmTasks('grunt-contrib-less'); |
|
|
grunt.loadNpmTasks('grunt-contrib-uglify'); |
|
|
grunt.loadNpmTasks('grunt-contrib-uglify'); |
|
|
grunt.loadNpmTasks('grunt-contrib-watch'); |
|
|
grunt.loadNpmTasks('grunt-contrib-watch'); |
|
|
grunt.loadNpmTasks('grunt-docco'); |
|
|
|
|
|
|
|
|
grunt.loadNpmTasks('grunt-docco-multi'); |
|
|
grunt.loadNpmTasks('grunt-contrib-concat'); |
|
|
grunt.loadNpmTasks('grunt-contrib-concat'); |
|
|
|
|
|
|
|
|
grunt.initConfig(config); |
|
|
grunt.initConfig(config); |
|
|