-
-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Based on the standardization policy defined in MaplatHarmony#3, please verify and apply the following changes:
1. Repository & Branching
- Default Branch: Ensure it is set to
master.
2. Build & Output (dist)
- Remove CommonJS: Ensure
package.jsonhas"type": "module"andmainpoints to an ESM entry (e.g.,index.js). Remove any.cjsoutputs/support. - Types: Ensure
d.tsfiles are generated and included in the package. - Clean Output:
dist/should NOT contain dev-server artifacts (e.g.,index.html, hashedindex.es-*.js). It should only contain the clean library build (andd.ts). - Gitignore:
distshould typically be valid for npm publish but ignored in git. Verify artifacts are correct.
3. Dev Server & GH Pages
- Dev URL:
pnpm devshould serveindex.htmlat the root (http://localhost:5173/). - GH Pages: The content served by
pnpm devshould match what is published togh-pages. - Deployment Rule: Deploy to
gh-pagesONLY on pushes tomaster.
4. CI/CD (GitHub Actions)
- Missing CI: If
.github/workflowsis missing, add it using the standardMaplatHarmonypattern. - Triggers: Run on ALL commits (
pnpm test,pnpm lint,pnpm typecheck,pnpm build). - Nodes: Use Node 20 and 22 (Drop 18).
- Linting: Enforce linting in CI (do not use local husky/lint-staged hooks).
Metadata
Metadata
Assignees
Labels
No labels