Skip to content

Developer onboarding script#146

Open
gloskull wants to merge 2 commits into
Utility-Protocol:mainfrom
gloskull:Developer-Onboarding-Script
Open

Developer onboarding script#146
gloskull wants to merge 2 commits into
Utility-Protocol:mainfrom
gloskull:Developer-Onboarding-Script

Conversation

@gloskull

Copy link
Copy Markdown
Contributor

Motivation
Make it easy to bootstrap a local development environment with a single command and safe defaults for env files.
Ensure new contributors have a reproducible, documented flow that installs deps and runs validation checks by default.
Avoid committing sensitive local env values while providing a tracked .env.example with safe defaults.
Description
Add scripts/setup-dev.ts, a TypeScript CLI that verifies Node/npm, creates .env.example and .env.local when needed, optionally runs npm ci, and runs npm run lint and npm run test unless skip flags are provided.
Add tests/unit/setupDev.test.ts with unit coverage for default behavior and skip-flag behavior of setupDev.
Add a tracked .env.example with local-safe defaults and update .gitignore to allow committing .env.example while ignoring other .env* files.
Update package.json with a setup:dev script and document the onboarding flow in README.md with usage and skip-flag examples.
Testing
Ran npm run test -- tests/unit/setupDev.test.ts, which passed (1 test file, 2 tests).
Ran npm run lint -- scripts/setup-dev.ts tests/unit/setupDev.test.ts, which passed for the new files.
Executed npm run setup:dev -- --skip-install --skip-checks, which created .env.example and .env.local and completed successfully while skipping install/checks.
Ran the full npm run test, which exposed existing unrelated failures (3 failing tests in tests/components/AssetHeatmapLayer.test.tsx and tests/unit/keyCache.test.ts); these failures are not caused by the onboarding changes.
Closes #129

@elizabetheonoja-art

Copy link
Copy Markdown
Contributor

resolve conflicts @gloskull

2 similar comments
@JerryIdoko

Copy link
Copy Markdown
Contributor

resolve conflicts @gloskull

@elizabetheonoja-art

Copy link
Copy Markdown
Contributor

resolve conflicts @gloskull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Developer Onboarding Script for Local Development Setup

3 participants