Skip to content

Commit

Permalink
node -> sage run, #369
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Dec 19, 2024
1 parent f4d0c88 commit 85ed7b5
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions js/scripts/clear-branch-protections-for-repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
* production branches.
*
* USAGE:
* node perennial/js/scripts/clear-branch-protections-for-repo.js repository-name
* sage run perennial/js/scripts/clear-branch-protections-for-repo.js repository-name
*
* EXAMPLE:
* node perennial/js/scripts/clear-branch-protections-for-repo.js john-travoltage
* sage run perennial/js/scripts/clear-branch-protections-for-repo.js john-travoltage
*
* @author Jesse Greenberg (PhET Interactive Simulations)
*/
Expand Down
4 changes: 2 additions & 2 deletions js/scripts/commit-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ const fs = require( 'fs' );
*
* USAGE:
* cd directory-with-all-repos
* node perennial/js/scripts/commit-report.js username > report.txt
* sage run perennial/js/scripts/commit-report.js username > report.txt
*
* EXAMPLE:
* node perennial/js/scripts/commit-report.js samreid > report.txt
* sage run perennial/js/scripts/commit-report.js samreid > report.txt
*
* @author Sam Reid (PhET Interactive Simulations)
*/
Expand Down
2 changes: 1 addition & 1 deletion js/scripts/compare-dependencies-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* USAGE:
* cd perennial
* node js/scripts/compare-dependencies-2.js ../mysim/dependenciesOLD.json ../mysim/dependencies.json
* sage run js/scripts/compare-dependencies-2.js ../mysim/dependenciesOLD.json ../mysim/dependencies.json
*
* NOTES: The old dependencies.json must be specified first. Also, keep in mind you may want to do a fresh build to get
* an updated dependencies.json if you are trying to compare to main.
Expand Down
2 changes: 1 addition & 1 deletion js/scripts/mv-string-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Run from sims root directory
* USAGE:
* cd ${root containing all repos}
* node ./perennial/js/scripts/mv-string-files.js
* sage run ./perennial/js/scripts/mv-string-files.js
*
* @author Marla Schulz (PhET Interactive Simulations)
* @author Chris Klusendorf (PhET Interactive Simulations)
Expand Down
4 changes: 2 additions & 2 deletions js/scripts/protect-branches-for-repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ const protectGithubBranches = require( '../common/protectGithubBranches' );
* Set branch protection rules for the provided repo so that main, and release branches cannot be deleted.
*
* USAGE:
* node perennial/js/scripts/protect-branches-for-repo.js repository-name
* sage run perennial/js/scripts/protect-branches-for-repo.js repository-name
*
* EXAMPLE:
* node perennial/js/scripts/protect-branches-for-repo.js john-travoltage
* sage run perennial/js/scripts/protect-branches-for-repo.js john-travoltage
*
* @author Jesse Greenberg (PhET Interactive Simulations)
*/
Expand Down
2 changes: 1 addition & 1 deletion js/scripts/protect-branches-in-all-repos.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Applies or updates branch protection rules for all active repos.
*
* USAGE:
* node perennial/js/scripts/protect-branches-in-all-repos.js
* sage run perennial/js/scripts/protect-branches-in-all-repos.js
*
* @author Jesse Greenberg (PhET Interactive Simulations)
*/
Expand Down
2 changes: 1 addition & 1 deletion js/scripts/publish-phet-io-latest-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* USAGE:
* cd perennial/
* node publish-phet-io-latest-links.js ./path/to/public/html/file/
* sage run publish-phet-io-latest-links.js ./path/to/public/html/file/
* @author Michael Kauzmann (PhET Interactive Simulations)
*/

Expand Down
2 changes: 1 addition & 1 deletion js/scripts/pull-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const repos = contents.split( '\n' ).map( sim => sim.trim() );
*
* USAGE:
* cd ${root containing all repos}
* node perennial/js/scripts/pull-all.js
* sage run perennial/js/scripts/pull-all.js
*
* OPTIONS:
* --batches=N - (1) by default, runing all pulls in parallel. Specify this to separate into N different synchronous chunks running repos/batches number of repos in parallel.
Expand Down
2 changes: 1 addition & 1 deletion js/scripts/push-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const repos = contents.split( '\n' ).map( sim => sim.trim() );
*
* USAGE:
* cd ${root containing all repos}
* node perennial/js/scripts/push-all.js
* sage run perennial/js/scripts/push-all.js
*
* @author Sam Reid (PhET Interactive Simulations)
*/
Expand Down
2 changes: 1 addition & 1 deletion js/scripts/repo-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* usage:
* cd {{repo}}
* node ../perennial/js/scripts/repo-report.js > out.txt
* sage run ../perennial/js/scripts/repo-report.js > out.txt
* then import in Excel
*
* @author Sam Reid (PhET Interactive Simulations)
Expand Down
2 changes: 1 addition & 1 deletion js/scripts/start-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* Run this from your root level directory containing all PhET repositories.
* Example usage:
* node perennial/js/scripts/start-dev.js
* sage run perennial/js/scripts/start-dev.js
*
* @author Jesse Greenberg (PhET Interactive Simulations)
*/
Expand Down
4 changes: 2 additions & 2 deletions js/scripts/test/release-branch-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
*
* USAGE:
* cd perennial;
* node js/scripts/test/release-branch-checks.js
* sage run js/scripts/test/release-branch-checks.js
*
* NOTE: refresh release branches if not doing an active MR:
* cd perennial;
* node js/scripts/main-pull-status.js --allBranches
* sage run js/scripts/main-pull-status.js --allBranches
*
* @author Jonathan Olson <jonathan.olson@colorado.edu>
*/
Expand Down
2 changes: 1 addition & 1 deletion js/scripts/ts-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Run from sims root directory
* USAGE:
* cd ${root containing all repos}
* node ./perennial/js/scripts/ts-status.js
* sage run ./perennial/js/scripts/ts-status.js
*
* @author Marla Schulz (PhET Interactive Simulations)
*/
Expand Down

0 comments on commit 85ed7b5

Please sign in to comment.