https://github.com/stephen-shopopop/node-typescript-workspace
workspace node typescript
https://github.com/stephen-shopopop/node-typescript-workspace
jest nodejs ts-standard typescript workspaces
Last synced: 3 months ago
JSON representation
workspace node typescript
- Host: GitHub
- URL: https://github.com/stephen-shopopop/node-typescript-workspace
- Owner: stephen-shopopop
- Created: 2022-08-09T08:31:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-05T07:54:57.000Z (over 2 years ago)
- Last Synced: 2023-03-05T23:44:28.580Z (over 2 years ago)
- Topics: jest, nodejs, ts-standard, typescript, workspaces
- Language: TypeScript
- Homepage:
- Size: 1.66 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
[](https://nodejs.org/about/releases/)
[](https://github.com/npm/cli/releases)
[](https://GitHub.com/stephen-shopopop/node-ts/graphs/commit-activity)
[](https://svgshare.com/i/Zhy.svg)
[](https://svgshare.com/i/ZjP.svg)
[](https://code.visualstudio.com/)# NODE typescript template workspace
## Description
Template nodejs typescript with ts-standard
## Installation nodejs via nvm (node version manager)
- [macos/linux](https://github.com/nvm-sh/nvm) or use Makefile command: ```make nvm```
- [windows](https://github.com/coreybutler/nvm-windows)## Contributing
Run package project:
```shell
npm run start -w=@stephen-shopopop/hello// or run with ts-node
npm run dev -w=@stephen-shopopop/hello
```Add package in workspace:
```shell
npm init --scope=@stephen-shopopop -y -w ./packages/hello
```Add dependencies in package:
```shell
npm install abbrev -w @stephen-shopopop/hello// uninstall
npm uninstall abbrev -w @stephen-shopopop/hello
```Run test only in package:
```shell
npm test --packages/hello
```Add reference package (npm recommended):
```shell
npm i ./packages/hello -w packages/mypackage
```Add reference package (better reference):
```json
"dependencies": {
"@stephen-shopopop/hello": "*"
}
```Version [npm version](https://docs.npmjs.com/cli/v7/commands/npm-version):
```shell
npm version minor -w @stephen-shopopop/hello
```Publish all package (optionnal):
```shell
npm publish --workspaces --access public
```Extra:
```shell
// Start all projets on queueing
npm run start -ws// Start all projets on queueing in dev mode
npm run dev -ws
```1. npm run test - Run tests.
2. npm run build - Build each packages
3. npm run build:extra - Build each package in dist isolate
4. npm run lint - Run lint
5. npm run lint:fix - Run lint autofix
6. npm run typecheck - Run typecheck## Production
```bash
npm i --production
```## Docs
### Summary
### Package maintenance
A modern cli tool that keeps your deps fresh
```bash
npx taze -r// major
npx taze major -r
```