1.0.3 • Published 1 year ago
create-typescript-npm-library v1.0.3
create-typescript-npm-library
Simple typescript app with jest to create a npm library with types
Installation
npx degit https://github.com/TheSmartMonkey/create-typescript-npm-library app
Getting started
Install nodejs : https://nodejs.org/en/
Install node_modules with
npm install
Avalable commands with
npm run
(npm run start
runes your code frommain.ts
)
start
npm run build && node dist/main.js
test
jest
lint
eslint src --ext .ts
clear
rmdir /s "dist"
build
tsc
Publish your library
npm run pub
Folder tree
| .eslintrc.json
| .gitignore
| .prettierignore
| .prettierrc.json
| jest.config.ts
| junit.xml
| LICENSE
| main.ts
| package-lock.json
| package.json
| README.md
| tree.txt
| tsconfig.json
| tsconfig.paths.json
|
+---src
| tree.txt
|
+---functions
| hello.test.ts
| hello.ts
|
+---libs
| .gitkeep
|
+---models
hello.model.ts