Skip to content

Commit 643422f

Browse files
committed
update grunt task to copy data.min.json too
1 parent ab1c13d commit 643422f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Gruntfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,11 @@ module.exports = function(grunt) {
442442
grunt.registerTask('move_dataJSON', function() {
443443
const dataJSON_p5js = 'tmp/p5.js/docs/reference/data.json';
444444
const dataJSON_p5jswebsite = 'src/templates/pages/reference/data.json';
445-
// move the data.json from the cloned p5.js repository to the p5.js-website repository
445+
const dataJSONmin_p5js = 'tmp/p5.js/docs/reference/data.min.json';
446+
const dataJSONmin_p5jswebsite = 'src/templates/pages/reference/data.min.json';
447+
// move the data.json files from the cloned p5.js repository to the p5.js-website repository
446448
fse.moveSync(dataJSON_p5js, dataJSON_p5jswebsite, { overwrite: true });
449+
fse.moveSync(dataJSONmin_p5js, dataJSONmin_p5jswebsite, { overwrite: true });
447450
// delete the tmp folder that contained the p5.js repository
448451
fse.removeSync('tmp/');
449452
});

0 commit comments

Comments
 (0)