@@ -248,65 +248,6 @@ module.exports = grunt => {
248
248
'docs/reference/modules/' ,
249
249
'docs/reference/api.js'
250
250
]
251
- } ,
252
- // Clean up files generated by release build
253
- release : {
254
- src : [ 'release/' ]
255
- } ,
256
- bower : {
257
- src : [ 'bower-repo/' ]
258
- }
259
- } ,
260
-
261
- // Static assets copy task. Used by release steps.
262
- copy : {
263
- release : {
264
- expand : true ,
265
- src : [
266
- 'lib/p5.js' ,
267
- 'lib/p5.min.js' ,
268
- 'lib/addons/p5.sound.js' ,
269
- 'lib/addons/p5.sound.min.js'
270
- ] ,
271
- dest : 'release/' ,
272
- flatten : true
273
- } ,
274
- bower : {
275
- files : [
276
- {
277
- expand : true ,
278
- src : [ 'lib/p5.js' , 'lib/p5.min.js' ] ,
279
- dest : 'bower-repo/'
280
- } ,
281
- {
282
- expand : true ,
283
- src : 'lib/addons/*' ,
284
- dest : 'bower-repo/'
285
- }
286
- ]
287
- }
288
- } ,
289
-
290
- // Compresses the lib folder into the release zip archive.
291
- // Used by the release step.
292
- compress : {
293
- main : {
294
- options : {
295
- archive : 'release/p5.zip'
296
- } ,
297
- files : [
298
- {
299
- cwd : 'lib/' ,
300
- src : [
301
- 'p5.js' ,
302
- 'p5.min.js' ,
303
- 'addons/*' ,
304
- 'empty-example/*' ,
305
- 'README.txt'
306
- ] ,
307
- expand : true
308
- }
309
- ]
310
251
}
311
252
} ,
312
253
@@ -359,16 +300,12 @@ module.exports = grunt => {
359
300
// NOTE: "module_x" is the name of it's folder in /src.
360
301
grunt . loadTasks ( 'tasks/build' ) ;
361
302
362
- // Load release task
363
- grunt . loadTasks ( 'tasks/release' ) ;
364
-
365
303
// Load tasks for testing
366
304
grunt . loadTasks ( 'tasks/test' ) ;
367
305
368
306
// Load the external libraries used.
369
307
grunt . loadNpmTasks ( 'grunt-contrib-compress' ) ;
370
308
grunt . loadNpmTasks ( 'grunt-contrib-connect' ) ;
371
- grunt . loadNpmTasks ( 'grunt-contrib-copy' ) ;
372
309
grunt . loadNpmTasks ( 'grunt-eslint' ) ;
373
310
grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
374
311
grunt . loadNpmTasks ( 'grunt-contrib-yuidoc' ) ;
@@ -414,11 +351,5 @@ module.exports = grunt => {
414
351
grunt . registerTask ( 'yui' , [ 'yuidoc:prod' , 'clean:reference' , 'minjson' ] ) ;
415
352
grunt . registerTask ( 'yui:test' , [ 'yui' , 'connect:yui' , 'mochaChrome:yui' ] ) ;
416
353
grunt . registerTask ( 'yui:dev' , [ 'yui' , 'build' , 'connect:yui' , 'watch:yui' ] ) ;
417
-
418
- // This is called by the "prepublishOnly" script in package.json to build the
419
- // documentation and the library after np bumps up the version number so that
420
- // the newly built files with the updated version number can be published.
421
- grunt . registerTask ( 'prerelease' , [ 'yui' , 'build' ] ) ;
422
-
423
354
grunt . registerTask ( 'default' , [ 'lint' , 'test' ] ) ;
424
355
} ;
0 commit comments