Skip to content

Commit 1c4dfea

Browse files
committed
updating examples to reflect processing-examples
1 parent 7643d7c commit 1c4dfea

5 files changed

Lines changed: 27 additions & 15 deletions

File tree

content/examples/Topics/File IO/SaveOneFrame/SaveOneFrame.json renamed to content/examples/Topics/File IO/SaveOneImage/SaveOneImage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "Save One Frame",
3-
"title": "SaveOneFrame",
2+
"name": "Save One Image",
3+
"title": "SaveOneImage",
44
"author": "",
55
"level": "Intermediate",
66
"order": "2",

content/examples/Topics/File IO/SaveOneFrame/SaveOneFrame.pde renamed to content/examples/Topics/File IO/SaveOneImage/SaveOneImage.pde

File renamed without changes.

content/examples/Topics/File IO/SaveOneFrame/SaveOneFrame.png renamed to content/examples/Topics/File IO/SaveOneImage/SaveOneImage.png

File renamed without changes.

content/examples/Topics/File IO/SaveOneFrame/liveSketch.js renamed to content/examples/Topics/File IO/SaveOneImage/liveSketch.js

File renamed without changes.

scripts/updateExamples.js

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,31 @@ const updateExamples = async () => {
2727
(example) => !missingTo.includes(example)
2828
);
2929

30-
console.log('Examples from processing-examples that are not in the website:');
31-
console.log('(These need to be manually added to the website)');
32-
missingTo.map((example) => console.log(`- ${example.path}`));
33-
console.log('');
34-
console.log('Examples from the website that are not in processing-examples:');
35-
console.log('(These should probably be deleted from the website)');
36-
missingFrom.map((example) => console.log(`- ${example.path}`));
37-
console.log('');
38-
console.log(
39-
'Examples that are in both repos and will be updated with the script:'
40-
);
41-
portExamples.map((example) => console.log(`- ${example.path}`));
42-
console.log('');
30+
if (missingTo.length > 0) {
31+
console.log(
32+
'Examples from processing-examples that are not in the website:'
33+
);
34+
console.log('(These need to be manually added to the website)');
35+
missingTo.map((example) => console.log(`- ${example.path}`));
36+
console.log('');
37+
}
38+
39+
if (missingFrom.length > 0) {
40+
console.log(
41+
'Examples from the website that are not in processing-examples:'
42+
);
43+
console.log('(These should probably be deleted from the website)');
44+
missingFrom.map((example) => console.log(`- ${example.path}`));
45+
console.log('');
46+
}
47+
48+
if (portExamples.length > 0) {
49+
console.log(
50+
'Examples that are in both repos and will be updated with the script:'
51+
);
52+
portExamples.map((example) => console.log(`- ${example.path}`));
53+
console.log('');
54+
}
4355

4456
const answers = await inquirer.prompt([
4557
{

0 commit comments

Comments
 (0)