feat(windows): automatic configuration generation for npm start and npm server
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- node.js, typescript
- Domain
- developer-experience
Research direction
Start with ui/package.json and the bootstrap-pilotdeck-config.mjs script to see how the existing predev hook initializes configuration. Check load-env.js for the optional fallback, then verify that npm start and npm server execute the bootstrap before startup, including on Windows.
Written by the indexing model from the issue text.
Description
Description
Currently, the .pilotdeck directory and related configuration files are only generated by the predev hook when running npm run dev.
If users launch the app with npm run start or npm run server inside the ui directory, the bootstrap-pilotdeck-config.mjs script will not execute. This causes startup failures on Windows due to missing directories and config files.
Proposed Solution
- Add
prestartandpreserverhooks inui/package.jsonto run the bootstrap script before executing corresponding commands. - (Optional but recommended) Add auto-bootstrap logic in entry files like
load-env.jsas a fallback. It guarantees environment initialization no matter which startup command is used.
Additional Context
This issue is closely related to the Windows compatibility fix in #28. Automating the configuration process will greatly reduce the onboarding difficulty for new Windows users.
- Dominant language
- TypeScript
- Stars
- 4k
- Forks
- 453
- Avg merge
- 12h 30m
- Merged PRs (30d)
- 46
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenBMB/PilotDeck
-
微信二维码已断更 Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
readme 更新一下 Open
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
All issues in OpenBMB/PilotDeck
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100