https://github.com/capaj/node-platey
a simple node.js CLI utility to setup a new node.project including typescript, vitest and prettier
https://github.com/capaj/node-platey
boilerplate github-actions node prettier tsup type vites
Last synced: 6 months ago
JSON representation
a simple node.js CLI utility to setup a new node.project including typescript, vitest and prettier
- Host: GitHub
- URL: https://github.com/capaj/node-platey
- Owner: capaj
- License: mit
- Created: 2022-08-22T10:59:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-24T13:53:47.000Z (11 months ago)
- Last Synced: 2025-04-15T06:16:58.606Z (6 months ago)
- Topics: boilerplate, github-actions, node, prettier, tsup, type, vites
- Language: TypeScript
- Homepage:
- Size: 354 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-platey
a simple opinionated node.js CLI utility to setup a new node.js library project including typescript, vitest, prettier and basic github action for checking each commit to `main`.
It will be setup for both ESM and CommonJS consumption and build process using tsup no config.
## Usage
```
npm i node-platey -g
```
alternatively just prepend with `bunx`
go to a folder where you want your project folder created:```
node-platey my-awesome-project
```alternatively if your project folder already exists and you're in it:
```
node-platey .
```folder my-awesome-project in current working directory
## What this does
- create the directory(when you pass something else than ".")
- git init
- adds `.gitignore` same as github does when you init node.js project
- `pnpm init`
- replace `ISC` with `MIT`
- setup typescript in strict mode
- setup vitest
- setup a build command using tsup
- add `.nvmrc` based on the latest node.js version
- setup github action with typescript check and test run
- setup prettier with githooks using husky(TODO)
No version is hardcoded, so you should be getting the latest stuff every time you run `node-platey` command.
## Prerequisites
`pnpm`