added retire.js to build process

-allows security vulnerability check in used npm-dependencies and own scripts
-execute with ```grunt retire```
edit
Bjoern Kimminich 2016-01-08 10:46:28 +01:00
parent de4efa5d19
commit 7621e1085d
2 changed files with 11 additions and 2 deletions

View File

@ -134,7 +134,14 @@ module.exports = function(grunt) {
markdown: { markdown: {
files: [ './*.md' ] files: [ './*.md' ]
} }
} },
retire: {
js: ['js/reveal.js', 'lib/js/*.js', 'plugin/**/*.js'],
node: ['.'],
options: {
}
}
}); });
@ -148,6 +155,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks( 'grunt-contrib-connect' ); grunt.loadNpmTasks( 'grunt-contrib-connect' );
grunt.loadNpmTasks( 'grunt-autoprefixer' ); grunt.loadNpmTasks( 'grunt-autoprefixer' );
grunt.loadNpmTasks( 'grunt-zip' ); grunt.loadNpmTasks( 'grunt-zip' );
grunt.loadNpmTasks('grunt-retire');
// Default task // Default task
grunt.registerTask( 'default', [ 'css', 'js' ] ); grunt.registerTask( 'default', [ 'css', 'js' ] );

View File

@ -36,10 +36,11 @@
"grunt-sass": "~1.1.0-beta", "grunt-sass": "~1.1.0-beta",
"grunt-contrib-connect": "~0.11.2", "grunt-contrib-connect": "~0.11.2",
"grunt-autoprefixer": "~3.0.3", "grunt-autoprefixer": "~3.0.3",
"grunt-retire": "~0.3.10",
"grunt-zip": "~0.17.1", "grunt-zip": "~0.17.1",
"grunt": "~0.4.5", "grunt": "~0.4.5",
"node-sass": "~3.3.3" "node-sass": "~3.3.3"
}, },
"license": "MIT" "license": "MIT"
} }