File tree Expand file tree Collapse file tree
content/examples/Topics/File IO/SaveOneImage Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments