Content-Length: 319828 | pFad | http://github.com/maxgfr/typescript-swc-starter/#merged-pull-requests

7C GitHub - maxgfr/typescript-swc-starter: A minimalist typescript swc starter that generate cjs and esm package
Skip to content

maxgfr/typescript-swc-starter

Repository files navigation

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

⚠️ 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 bundle # For generating bundling in cjs and esm

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();








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/maxgfr/typescript-swc-starter/#merged-pull-requests

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy