An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

[![Minimal node version](https://img.shields.io/static/v1?label=node&message=%3E=16.15&logo=node.js&color)](https://nodejs.org/about/releases/)
[![Minimal npm version](https://img.shields.io/static/v1?label=npm&message=%3E=8.5.5&logo=npm&color)](https://github.com/npm/cli/releases)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/stephen-shopopop/node-ts/graphs/commit-activity)
[![Linux](https://svgshare.com/i/Zhy.svg)](https://svgshare.com/i/Zhy.svg)
[![macOS](https://svgshare.com/i/ZjP.svg)](https://svgshare.com/i/ZjP.svg)
[![Visual Studio Code](https://img.shields.io/badge/--007ACC?logo=visual%20studio%20code&logoColor=ffffff)](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
```