3.0.7 • Published 2 years ago

ts-devscript v3.0.7

Weekly downloads
79
License
MPL-2.0
Repository
github
Last release
2 years ago

DevScript

Simple development script to make working with TypeScript projects easy. DevScript

Why

I wrote this script to simplify my TypeScript workflow as I like to have all my files organised and hate having multiple terminals open at the same time. This script copies and compiles everything in src to out and then runs the file. It also automatically restarts the file on file additions, changes and deletions.

Installation

# global
npm i --location=global ts-devscript

# npm
npm i -D ts-devscript

# yarn
yarn add -D ts-devscript

Usage

# if global
devScript

# if local
npx devScript

Configuration

Possile Arugments

Note: These arguments can also be used in your package.json file, simply add the devScript property to the root of the package.json and use them as key-value pairs.

OptionsTypeDescriptionDefault
--helpShows the help command of devScript.
--srcstringDirectory containing the source code.src
--outstringDirectory that will contain the output.dist
--deleteObsoletebooleanWhether or not to delete files from out that are not in the src.true
--tsconfigstringPath to a valid tsconfig.json file.tsconfig.json
--entrystringEntry file to be executed after compilation.index.js
--depCheckbooleanWhether or not to check the dependencies.true
--excludeDepsstringDependencies to exclude from automatically uninstalling. (String list seperated by commas)
--autoInstallDepbooleanAutomatically installs missing dependencies. (Needs depCheck enabled)true
--autoRemoveDepbooleanAutomatically removes unused dependencies. (Needs depCheck enabled)true
--autoInstallTypesbooleanAutomatically installs missing dependencies @types/. (Needs depCheck and autoInstallDep enabled)true
--autoRemoveTypesbooleanAutomatically removes unused dependencies @types/. (Needs depCheck and autoRemoveDep enabled)true
--autoUpdateOutdatedbooleanAutomatically update outdated dependencies to their latest version. (Needs depCheck enabled)false
--autoUpdateDeprecatedbooleanAutomatically update deprecated dependencies to their latest version. (Needs depCheck enabled)false
--updateSelectorbooleanWhether or not to show the update selector for deprecated or outdated dependencies. (Needs depCheck enabled)true
--todoCheckbooleanWhether or not to check for TODO's.
--todoTagsstringCustom tags to include in the TODO check. (String list seperated by commas)
--copyOnlybooleanWhether or not only to copy the files from src to out.false
--ignorestringFiles that should be ignored when watching files. (glob pattern)
--includestringFiles that should be included when watching files. (glob pattern)
--silentbooleanWhether or not to print console logs.false
3.0.7

2 years ago

3.0.6

2 years ago

3.0.5

3 years ago

3.0.4

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago