0.0.3 • Published 6 years ago
endless-sequence v0.0.3
Khải's Node.js monorepo
This repo hold many of my nodejs packages in one place for ease of management.
CI Build Status
Package requirements
- Node.js ≥ 8.9.0
Development
Development requirements
- Satisfies package requirements
- UNIX-like environment (Linux, macOS, FreeBSD, etc.)
- Package manager that supports monorepo: pnpm (Recommened), yarn
Install dependencies
Using pnpm
pnpm recursive linkUsing yarn
yarn # or yarn installSome important scripts
Most scripts are available in package.json's scripts object but some are only available through pnpx/yarn exec.
In the following section, pnpm run/yarn run is alternative to npm run, pnpx/yarn exec is alternative to npx.
Test
Normal tests:
pnpm testUpdate jest snapshots:
pnpm test -- -uRun TypeScript check:
pnpm run type-checkClean TypeScript build
pnpm run clean-typescript-buildGenerate .npmignore
pnpm run generate-npmignoreMismatched local packages' version
Check for mismatched local packages' version:
pnpm run mismatched-versionsUpdate mismatches local packages' versions:
pnpx nested-wrkspc.prv verman mismatches -u .Out-of-date external packages
Check for outdated packages:
pnpx nested-wrkspc.prv depman outdated .Update outdated packages:
pnpx nested-wrkspc.prv depman outdated -u .
pnpm recursive link # or yarn installUntested Features
- CLI subcommand publishin packagenested-workspace-helper: Cannot mock npm registry in CLI environment.
- CLI subcommand dependency-management outdatedin packagenested-workspace-helper: Cannot mock npm registry in CLI environment.
- Entire package git-ts: It's too complicated to create a test friendly git repo.
- Most of random-org-http: Testing over network is complicated.