Gathering detailed insights and metrics for ts-gun
Gathering detailed insights and metrics for ts-gun
npm install ts-gun
Typescript
Module System
Node Version
NPM Version
JavaScript (93.01%)
Shell (6.71%)
TypeScript (0.29%)
Total Downloads
2,268
Last Day
1
Last Week
19
Last Month
21
Last Year
251
53 Commits
2 Watching
1 Branches
1 Contributors
Latest Version
4.1.1
Package Id
ts-gun@4.1.1
Unpacked Size
21.44 kB
Size
6.67 kB
File Count
15
NPM Version
8.13.2
Node Version
18.6.0
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
1,800%
19
Compared to previous week
Last month
250%
21
Compared to previous month
Last year
-54.5%
251
Compared to previous year
npx ts-gun
npm i -g ts-gun
ts-gun
or ts-gun [OPTION]
ts-gun --help
or ts-gun -h
for help-h, --help
: show help menu-a, --all
: use pnpm as package manager and install all tools(eslint, install node_module, nodemon, editorconfig, commitlint, init git repository)-g, --git
: initialize new git repository-r, --nodemon
: integrate nodemon to project-l, --eslint
: integrate eslint to project. Use airbnb-base style guide-c, --commitlint
: use pre-commit-hook using husky. Will run script "test" and "lint" in package.json file. Besides, check commit message for each commit based on commitlint-e, --editorconfig
: create .editorconfig file-n, --name
: will create a folder with given name in current directory. other configuration files will be placed inside this folder--npm
: use npm as package manager--ts
: integrate typescript to project--pnpm
: use npm as package manager--yarn
: use npm as package managerts-gun
: create a new folder with configuration files. Recomendedts-gun -an nodejs
: skip all prompts and create configuration files in a new folder named nodejs
. Use ts-gun -h
for more detailts-gun -tle --yarn
: setup typescript for project, install node_modules
using yarn
, create a .eslintrc.json
and .editorconfig
file in current directory,Do not use both options --name
and package manager options(--yarn
, --npm
, -pnpm
) in one command: this is the problem of arg
library. Use ts-gun
instead
Option --nodemon
currently only works for typescript projects. I strongly recommend use typescript instead of javascript
Option --eslint
currently only works for typescript projects. I strongly recommend use typescript instead of javascript
Option --commitlint
currently only works for typescript projects. I strongly recommend use typescript instead of javascript
Command to start project: npm start
or pnpm start
or yarn start
Command to start project in watch mode(live reloading source code): npm run dev
or pnpm dev
or yarn run dev
Command to check for eslint errors: npm run lint
or pnpm lint
or yarn run lint
Command to run test (not configurated yet): npm run test
or pnpm test
or yarn test
Typescript option:
Source code must be placed in /src
directory, .js
files will be placed in /dist
directory. View tsconfig.json
file for more details
Project's entry point (first file run when project start) if --ts
option is set: /src/main.ts
Nodemon option:
Same as Typescript option
section. View nodemon.json
file for more details
Required opions: --typescript
Eslint option:
Use airbnb-base
as coding style
Some rules may not work property for different IDEs. Only tested on Neovim 0.6. Thus, you may need to edit file .eslintrc.json
if you have problems with eslint or open an issue in the github repository
Known problem: sometimes , newest versions of typescript do not supported by Eslint, you may need to downgrade typescript version to make sure eslint can work
Commit lint option:
Use husky
and commitlint
to check commit message is valid or not. Besides, will run npm lint
and npm test
every new commits are committed to the repository. More detail about commit lint: https://commitlint.js.org/
Required opions: --eslint, --git
husky
. Will run script "test" and "lint" in package.json file. Besides that, check commit message for each commit using commitlint
-n
to -r
--name
and its alias -n
: the name of the new created folder by ts-gun
, other configuration files will be placed inside this folder--npm
: use npm as package manager when install dependencies--pnpm
: use pnpm as package manager when install dependencies--yarn
: use yarn as package manager when install dependencies--skip
to -all
ts-gun
is called.--eslint
option, will create file .eslintrc.json
instead of .eslintrc.js
. Because .eslintrc.json
file supports Schema Store (https://www.schemastore.org/json/)-pch
and -ecfg
to -p
and -e
. The old options do not work for commands that use multiple options.No vulnerabilities found.
No security vulnerabilities found.