0.36.0 • Published 4 years ago

new-typescript-module v0.36.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Requirements

  • Added to PATH NPM
  • Globally installed ESLint
  • Installed Git
    • Added to PATH Git

Usage

npx new-typescript-module [<project-name>] [<project-directory>]

Recommendation. If you want to update version of any NPX-utility like this you should use clear-npx-cache utility. More information in clear-npx-cache's readme.

Default <project-name> is my-typescript-module, default <project-directory> is ./<project-name>.

Directory tree after call npx new-typescript-module:

<project-directory>
├ package.json
├ package-lock.json
├ README.md
├ tsconfig.dev.json
├ tsconfig.prod.json
├ .npmignore
├ .gitignore
├ .eslintrc
├ src
│ └ index.ts
├ lib
├ types
├ node_modules
│ └ ...
└ .git
  └ ...

The <project-directory>/.git directory is hidden.

Side calls (at <project-directory>):

npm i -D @types/node typescript @typescript-eslint/parser
git init

Note. I don't know why ESLint don't support global packages. Yeap, when you created a new typescript module you shall install on your drive too many files thoose can be installed globally.

package.json

{
  "name": "<project-name>",
  "version": "1.0.0",
  "main": "index.js",
  "description": "",
  "keywords": [],
  "author": "",
  "license": "ISC",
  "scripts": {
    "lint": "eslint",
    "buildTsDev": "tsc -p tsconfig.dev.json",
    "buildDev": "npm run buildTsDev",
    "buildTsProd": "tsc -p tsconfig.prod.json",
    "buildProd": "npm run buildTsProd",
    "prepare": "rd /s /q lib && rd /s /q types && npm run buildProd"
    // or
    "prepare": "rm -r lib && rm -r types && npm run buildProd"
  },
  "devDependencies": {
    "@types/node": ...,
    "@typescript-eslint/parser": ...,
    "typescript": ...
  }
}
0.36.0

4 years ago

0.35.0

4 years ago

0.34.0

4 years ago

0.33.0

4 years ago

0.32.0

4 years ago

0.31.0

4 years ago

0.30.0

4 years ago

0.29.0

4 years ago

0.28.0

4 years ago

0.27.0

4 years ago

0.26.0

4 years ago

0.25.0

4 years ago

0.24.0

4 years ago

0.23.0

4 years ago

0.22.0

4 years ago

0.21.0

4 years ago

0.20.0

4 years ago

0.19.0

4 years ago

0.18.0

4 years ago

0.17.0

4 years ago

0.16.0

4 years ago

0.15.0

4 years ago

0.14.0

4 years ago

0.13.0

4 years ago

0.12.0

4 years ago

0.11.0

4 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago