X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=blobdiff_plain;f=Gruntfile.js;h=a292d0b377552179650de926530b5d880dc915a7;hb=37974f2be385a0d191c80753d578f5bbd4f24dde;hp=4481e392a17ad8ccb4d4f4ce9cf50a9ac2e99dc7;hpb=ff287325b63920bb07720256d055dac4359b2fc5;p=lhc%2Fweb%2Fwiklou.git diff --git a/Gruntfile.js b/Gruntfile.js index 4481e392a1..a292d0b377 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,5 +1,6 @@ /*jshint node:true */ module.exports = function ( grunt ) { + grunt.loadNpmTasks( 'grunt-contrib-copy' ); grunt.loadNpmTasks( 'grunt-contrib-jshint' ); grunt.loadNpmTasks( 'grunt-contrib-watch' ); grunt.loadNpmTasks( 'grunt-banana-checker' ); @@ -21,7 +22,7 @@ module.exports = function ( grunt ) { }, all: [ '*.js', - '{includes,languages,resources,skins,tests}/**/*.js' + '{includes,languages,resources,tests}/**/*.js' ] }, jscs: { @@ -83,6 +84,16 @@ module.exports = function ( grunt ) { more: { browsers: [ 'Chrome', 'Firefox' ] } + }, + copy: { + jsduck: { + src: 'resources/**/*', + dest: 'docs/js/modules', + expand: true, + rename: function ( dest, src ) { + return require( 'path' ).join( dest, src.replace( 'resources/', '' ) ); + } + } } } );