Skip to content

Commit e1df990

Browse files
committed
clean up gruntfile release steps
1 parent df64d35 commit e1df990

File tree

5 files changed

+56
-19816
lines changed

5 files changed

+56
-19816
lines changed

Gruntfile.js

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -248,65 +248,6 @@ module.exports = grunt => {
248248
'docs/reference/modules/',
249249
'docs/reference/api.js'
250250
]
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-
]
310251
}
311252
},
312253

@@ -359,16 +300,12 @@ module.exports = grunt => {
359300
// NOTE: "module_x" is the name of it's folder in /src.
360301
grunt.loadTasks('tasks/build');
361302

362-
// Load release task
363-
grunt.loadTasks('tasks/release');
364-
365303
// Load tasks for testing
366304
grunt.loadTasks('tasks/test');
367305

368306
// Load the external libraries used.
369307
grunt.loadNpmTasks('grunt-contrib-compress');
370308
grunt.loadNpmTasks('grunt-contrib-connect');
371-
grunt.loadNpmTasks('grunt-contrib-copy');
372309
grunt.loadNpmTasks('grunt-eslint');
373310
grunt.loadNpmTasks('grunt-contrib-watch');
374311
grunt.loadNpmTasks('grunt-contrib-yuidoc');
@@ -414,11 +351,5 @@ module.exports = grunt => {
414351
grunt.registerTask('yui', ['yuidoc:prod', 'clean:reference', 'minjson']);
415352
grunt.registerTask('yui:test', ['yui', 'connect:yui', 'mochaChrome:yui']);
416353
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-
423354
grunt.registerTask('default', ['lint', 'test']);
424355
};

0 commit comments

Comments
 (0)