Skip to content

Commit

Permalink
update TODOs, #1499
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 22, 2024
1 parent 8fe07ec commit 0da607f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions js/grunt/tasks/output-js-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ import transpile, { getTranspileOptions } from '../transpile.js';

/**
* Outputs JS for the specified repo and its dependencies
* TODO: We need output-js-project because of maintenance tooling, but should we add a duplicate for `transpile-project`? https://github.com/phetsims/chipper/issues/1499
* TODO: output-js-project --watch does not work. Transpiler.watch() hard codes active repos (let's wait to fix for swc), https://github.com/phetsims/chipper/issues/1499
*
* NOTE: We need to keep the name output-js-project because of maintenance tooling. This name should never change,
* though SR and MK wish it was called "transpile-project".
*
* TODO: output-js-project --watch does not work. Transpiler.watch() hard codes active repos (let's wait to fix for swc), https://github.com/phetsims/chipper/issues/1354
* @author Sam Reid (PhET Interactive Simulations)
* @author Michael Kauzmann (PhET Interactive Simulations)
*/
Expand Down
3 changes: 1 addition & 2 deletions js/grunt/tasks/output-js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import transpile, { getTranspileOptions } from '../transpile.js';
/**
* Main entrypoint for transpiling the PhET codebase to js. See transpile() for API. Outputs JS just
* for the specified repo by default.
* TODO: Can we rename this to "transpile", it is ok that we keep output-js-project for backwards compatibility. https://github.com/phetsims/chipper/issues/1499
*
* TODO: Rename this to "transpile", it is ok that we keep output-js-project for backwards compatibility. https://github.com/phetsims/chipper/issues/1499
*
* @author Sam Reid (PhET Interactive Simulations)
*/
Expand Down
2 changes: 1 addition & 1 deletion js/grunt/transpile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Watching...
else {
// TODO: update doc about running transpiler that doesn't include `--repos` (use output-js-project --watch), https://github.com/phetsims/chipper/issues/1499
// https://github.com/phetsims/phet-info/blob/main/doc/phet-development-overview.md#creating-a-new-sim
// TODO: The above doesn't work. Do we need to support this before upgrading to swc? https://github.com/phetsims/chipper/issues/1499
// TODO: The above doesn't work. Do we need to support this before upgrading to swc? https://github.com/phetsims/chipper/issues/1354
transpiler.transpileRepos( _.uniq( options.repos ) );
}

Expand Down
1 change: 1 addition & 0 deletions js/scripts/transpile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2021-2024, University of Colorado Boulder

/**
* @deprecated - use `grunt output-js --watch`.
* Command Line Interface (CLI) for TypeScript transpilation via babel. Transpiles *.ts and copies all *.js files to
* chipper/dist/js. Does not do type checking. Filters based on active-repos and subsets of directories within repos
* (such as js/, images/, and sounds/)
Expand Down

0 comments on commit 0da607f

Please sign in to comment.