@balsamic/tsn
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

@balsamic/tsn

Simplified typescript node runner, for cjs and esm.

Automatically load .env files, and .ts files.

Usage:

tsn <file> [args]

Time the execution of a script

tsn --timed <file> [args]

Special commands:

# Check typescript files in the whole workspace

tsn tscheck

# Execute node test runner

tsn --test

# Executes an arbitrary executable with arguments and setting up node environment

tsn spawn <executable> [arguments]

# Run mocha test runner

tsn mocha [mocha arguments]

# Manages git subtrees

tsn git-subtree <arguments>

Git subtrees

Usage: tsn git-subtree <command> [args]

Configuration is read from package.json, under the key `git-subtree`
    "git-subtree": { <name> { localFolder: [relative path], "repository": "https://...", "branch": [branch name], "push_branch": [branch name] } ... }

Commands:
  init [subtree1] [subtree2] ...   Initialize subtrees
  pull [subtree1] [subtree2] ...   Pull subtrees
  commit <subtree> "<message>"     Commit subtree
  push <subtree> [branch]          Push subtree
  print-config                     Print configuration
  list                             List the configured subtrees

Readme

Keywords

Package Sidebar

Install

npm i @balsamic/tsn

Weekly Downloads

2

Version

0.0.9

License

MIT

Unpacked Size

48.8 kB

Total Files

13

Last publish

Collaborators

  • salvatorepreviti