1.0.3 • Published 2 years ago

create-typescript-npm-library v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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

  1. Install nodejs : https://nodejs.org/en/

  2. Install node_modules with npm install

  3. Avalable commands with npm run (npm run start runes your code from main.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
1.0.3

2 years ago

1.0.2

2 years ago