|
|
@ -11,6 +11,9 @@ module.exports = function(grunt) { |
|
|
|
// compiles less to docs
|
|
|
|
'less:buildDocsCSS', |
|
|
|
|
|
|
|
// auto prefix doc files
|
|
|
|
'autoprefixer:prefixDocs', |
|
|
|
|
|
|
|
// copies assets and js over to docs
|
|
|
|
'copy:srcToDocs', |
|
|
|
|
|
|
@ -52,7 +55,7 @@ module.exports = function(grunt) { |
|
|
|
// creates minified css of each file
|
|
|
|
'cssmin:minifyCSS', |
|
|
|
|
|
|
|
// creates custom license in header
|
|
|
|
// adds custom license in header
|
|
|
|
'cssmin:addBanner', |
|
|
|
|
|
|
|
// create concatenated css release
|
|
|
@ -73,6 +76,8 @@ module.exports = function(grunt) { |
|
|
|
// creates custom license in header
|
|
|
|
'cssmin:addBanner', |
|
|
|
|
|
|
|
// auto prefix build files
|
|
|
|
'autoprefixer:prefixBuild', |
|
|
|
|
|
|
|
// cleans previous generated release
|
|
|
|
'clean:release', |
|
|
@ -90,7 +95,13 @@ module.exports = function(grunt) { |
|
|
|
'copy:examplesToDocs', |
|
|
|
|
|
|
|
// copies files over to docs
|
|
|
|
'copy:buildToDocs' |
|
|
|
'copy:buildToDocs', |
|
|
|
|
|
|
|
// generate code docs
|
|
|
|
'docco:generate', |
|
|
|
|
|
|
|
// copies spec files over to docs
|
|
|
|
'copy:specToDocs' |
|
|
|
], |
|
|
|
|
|
|
|
setWatchTests = function(action, filePath) { |
|
|
@ -118,6 +129,7 @@ module.exports = function(grunt) { |
|
|
|
if(filePath.search('.less') !== -1) { |
|
|
|
grunt.config('less.buildDocsCSS.src', filePath); |
|
|
|
grunt.config('less.buildDocsCSS.dest', buildPath); |
|
|
|
grunt.config('autoprefixer.prefixDocs.src', buildPath); |
|
|
|
} |
|
|
|
else { |
|
|
|
grunt.config('less.buildDocsCSS.src', 'non/existant/path'); |
|
|
@ -187,6 +199,17 @@ module.exports = function(grunt) { |
|
|
|
/******************************* |
|
|
|
Build |
|
|
|
*******************************/ |
|
|
|
autoprefixer: { |
|
|
|
options: { |
|
|
|
browsers: ['last 2 version', 'ie 9'] |
|
|
|
}, |
|
|
|
prefixBuild: { |
|
|
|
src : 'build/**/*.css' |
|
|
|
}, |
|
|
|
prefixDocs: { |
|
|
|
src : 'docs/build/**/*.css' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
clean: { |
|
|
|
options: { |
|
|
@ -558,6 +581,8 @@ module.exports = function(grunt) { |
|
|
|
grunt.loadNpmTasks('grunt-contrib-less'); |
|
|
|
grunt.loadNpmTasks('grunt-contrib-uglify'); |
|
|
|
grunt.loadNpmTasks('grunt-contrib-watch'); |
|
|
|
|
|
|
|
grunt.loadNpmTasks('grunt-autoprefixer'); |
|
|
|
grunt.loadNpmTasks('grunt-docco-multi'); |
|
|
|
grunt.loadNpmTasks('grunt-cssjanus'); |
|
|
|
grunt.loadNpmTasks('grunt-clear'); |
|
|
|