Template nodejs typescript with ts-standard
- macos/linux or use Makefile command:
make nvm
- windows
Run package project:
npm run start -w=@stephen-shopopop/hello
// or run with ts-node
npm run dev -w=@stephen-shopopop/hello
Add package in workspace:
npm init --scope=@stephen-shopopop -y -w ./packages/hello
Add dependencies in package:
npm install abbrev -w @stephen-shopopop/hello
// uninstall
npm uninstall abbrev -w @stephen-shopopop/hello
Run test only in package:
npm test --packages/hello
Add reference package (npm recommended):
npm i ./packages/hello -w packages/mypackage
Add reference package (better reference):
"dependencies": {
"@stephen-shopopop/hello": "*"
}
Version npm version:
npm version minor -w @stephen-shopopop/hello
Publish all package (optionnal):
npm publish --workspaces --access public
Extra:
// Start all projets on queueing
npm run start -ws
// Start all projets on queueing in dev mode
npm run dev -ws
- npm run test - Run tests.
- npm run build - Build each packages
- npm run build:extra - Build each package in dist isolate
- npm run lint - Run lint
- npm run lint:fix - Run lint autofix
- npm run typecheck - Run typecheck
npm i --production
A modern cli tool that keeps your deps fresh
npx taze -r
// major
npx taze major -r