https://github.com/lygstate/typescript-template
https://github.com/lygstate/typescript-template
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lygstate/typescript-template
- Owner: lygstate
- Created: 2022-07-25T04:56:19.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-25T04:56:41.000Z (almost 3 years ago)
- Last Synced: 2025-01-04T07:47:06.524Z (5 months ago)
- Language: TypeScript
- Size: 95.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Install
```bash
curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install -y nodejs
``````bat
npm i -G yarn
```# New solution
```bat
yarn init
yarn add -D typescript ts-node ts-jest @types/node @types/jest
yarn run tsc --init
```# New module
How to Create a Hybrid NPM Module for ESM and CommonJS is referenced
to# Install eslint support package
```bat
yarn add -W -D eslint-config-airbnb eslint
yarn add -W -D eslint-plugin-jsx-a11y eslint-plugin-import eslint-plugin-react eslint-plugin-react-hooks
yarn add -W -D eslint-config-airbnb-typescript @typescript-eslint/eslint-plugin @typescript-eslint/parser
```# Publish package
```bat
cd packages/deferred
npm publish --access public
```