1.1.7 • Published 5 months ago

typescript-swc-starter v1.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

typescript-swc-starter

A simple node boilerplate made in typescript using swc which generates cjs and esm modules.

Clone repository and install dependencies

git clone https://github.com/maxgfr/typescript-swc-starter # For cloning the repository
cd typescript-swc-starter # To navigate to the repository root
yarn # Install dependencies

:warning: You have to use at least node@20 to run this project.

Commands

yarn dev # For running the code in development thanks to swc and nodemon

yarn test # For running unit test
yarn test:watch # For watching unit test

yarn lint # For linting the code
yarn lint:fix # For linting the code and fix issues

yarn build # For building the code (there is no typechecking due to swc compiler)
yarn type-check # For typechecking the code

yarn start:cjs # For running the code builded in cjs
yarn start:esm # For running the code builded in esm

Publish to npm

Set NPM_TOKEN in your Github actions secret, and that's it :)

Alt Text

To test this package, just do that :

import { sayHello } from 'typescript-swc-starter';
sayHello();
1.1.7

5 months ago

1.1.6

5 months ago

1.1.5

5 months ago

1.1.4

5 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago

1.0.0

12 months ago