Open samreid opened 2 months ago
@zepumph and I reviewed the current status and agreed it is at a good point to put on hold until we have more bandwidth to "flip the switch".
We want to prioritize https://github.com/phetsims/chipper/issues/1356 first.
@samreid and I met today to discuss this further. We had the following discussions:
What will it take to commit flipping the feature flag in gruntMain?
quick-server
task)cd buoyancy; grunt/
gave this problem: mjkauzmann ~/PHET/git/buoyancy (main)
$ grunt --lint=false
Running "report-media" task
Running "clean" task
Running "build" task
Fatal error: Perennial task failed:
Error: ENOENT: no such file or directory, open 'C:\Users\mjkauzmann\PHET\git\chipper\dist\commonjs\perennial-alias\data\active-repos'
at Object.openSync (node:fs:601:3)
at Object.readFileSync (node:fs:469:35)
at Object.<anonymous> (C:\Users\mjkauzmann\PHET\git\chipper\dist\commonjs\chipper\js\grunt\webpackBuild.js:29:22)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (C:\Users\mjkauzmann\PHET\git\chipper\dist\commonjs\chipper\js\grunt\buildStandalone.js:26:20)
Full Error details:
Error: ENOENT: no such file or directory, open 'C:\Users\mjkauzmann\PHET\git\chipper\dist\commonjs\perennial-alias\data\active-repos'
It seems like data/active-repos is accessed through a relative path. Two ideas:
UPDATE: There are 12 occurrences of __dirname in chipper. Perhaps convert those to a path relative to the runtime directory?
I added some commits in a branch. After the change above, grunt lint
succeeds in buoyancy.
I swamped https://github.com/phetsims/chipper/issues/1272 with commits, so let's continue over here. In summary, we would like to enable TypeScript usage in perennial & chipper. Recent dev meeting notes are in: https://docs.google.com/document/d/11Gt3Ulalj0fCD2fFeCjPT5ni_9mM2WjkGc4ysisQmo8/edit
A summary is in https://github.com/phetsims/chipper/issues/1272#issuecomment-2050288975
From https://github.com/phetsims/chipper/issues/1272#issuecomment-2050453575
Current checklist from https://github.com/phetsims/chipper/issues/1272#issuecomment-2051005300
Next steps: