Skip to content

Commit d0f2b12

Browse files
authored
Merge pull request #981 from outofambit/copy-data-min-too
update data.min.json and include it in grunt task
2 parents 23e93ab + 643422f commit d0f2b12

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
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
});

src/templates/pages/reference/data.min.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)