autor
v7.7000.0
Published
My way for running TS scripts
Readme
Autor
My way for running TS scripts
Quick Start
Clone the template
git clone https://github.com/zarmot/autor-workspaceNPM Install
cd autor-workspace
npm installOpen in VSCode
code .Create script file
import "autor"Smash F5
Here's what happens:
- VSCode launches a
tsc --watchprocess in the background - After successful compilation, run current .ts file
import "autor" will:
- Load env modules
- Any subfolder under ./env containing 0.ts file is env module
- Example: ./env/database/0.ts gets auto-imported
- Load configuration scripts
Configuration scripts load in this order:
./.autor.ts./<your>/.autor.ts./<your>/<script>/.autor.ts./<your>/<script>/<file>.cfg.ts
- Initialization
- Sequentially
awaitall env modules'init()functions - Then
awaitall loaded config scripts'init()methods
