šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
DemoInstallSign in
Socket

typescript-swc-starter

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-swc-starter

A minimalist typescript swc starter

1.0.0
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
Ā 
Created
Source

typescript-swc-starter

A simple node boilerplate made in typescript using swc.

šŸ‘» A version without rust compiler swc is available here.

šŸ¤– A version without semantic-release is available here.

šŸ‘¾ You can also use a branch which use dotenv here.

šŸ‘½ Finally, there is a branch which generate commonjs file here.

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

Running the code

yarn build # For building the code with typechecking
yarn build:swc # For building without typechecking
yarn start # For running the code builded

Or in development mode:

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

:warning: No typechecking made in dev mode

Testing the code

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

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

Keywords

boilerplate

FAQs

Package last updated on 23 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts