@@ -40,7 +40,8 @@ module.exports = (grunt, dir, dependencies, type, lib) => {
40
40
grunt . loadNpmTasks ( 'grunt-coveralls' ) ;
41
41
42
42
//------ Add Doc Tasks
43
- grunt . registerTask ( 'doc' , [ 'copy:docs' , 'typedoc' , 'sourceCode' , 'copy:docs2NPM' ] ) ;
43
+ grunt . registerTask ( 'noTask' , [ ] ) ;
44
+ grunt . registerTask ( 'doc' , [ 'copy:docs' , 'typedoc' , 'sourceCode' , `${ ( type === 'app' ) ? 'copy:docs2NPM' : 'noTask' } ` ] ) ;
44
45
45
46
//------ Add Staging Tasks
46
47
grunt . registerTask ( 'stage' , [ `${ ( type === 'app' ) ? 'copy:app2NPM' : 'copy:lib2NPM' } ` ] ) ;
@@ -135,13 +136,13 @@ module.exports = (grunt, dir, dependencies, type, lib) => {
135
136
] } ,
136
137
lib2NPM : { files : [
137
138
{ expand :true , cwd : 'bin' , // copy everything from bin
138
- src :[ '**/*' ] , dest :`node_modules/${ libPath } /` } ,
139
+ src :[ '**/*.*' , '!cache/**.*.* '] , dest :`node_modules/${ libPath } /` } ,
139
140
{ expand :true , cwd : './' , // copy css and map
140
141
src :[ '*.css*' ] , dest :`node_modules/${ libPath } /` } ,
141
142
] } ,
142
143
app2NPM : { files : [
143
144
{ expand :true , cwd : 'bin' , // copy everything from bin
144
- src :[ '**/*' ] , dest :`node_modules/${ libPath } /` } ,
145
+ src :[ '**/*.* ' ] , dest :`node_modules/${ libPath } /` } ,
145
146
{ expand :true , cwd : 'bin' , // copy everything from bin
146
147
src :[ `**/${ lib } .*` ] , dest :`docs` } ,
147
148
{ expand :true , cwd : devPath + '/staging/' , // index.html
0 commit comments