3.1.0 • Published 1 year ago

@mservicestech/scripts v3.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@mservicestech/scripts

A collection of generic utility scripts. Useful for various development and maintenance tasks.

Installation

Add the following entry into devDependencies in target package.json via:

yarn add --dev @mservicestech/scripts

Quick start

All the scripts provide individual documentation entries available via the --help flag:

./node_modules/@mservicestech/scripts/example/example.sh --help

Common utilities

The package provides common scripting utilities which help in writing customized workspace-specific tooling:

source ./node_modules/@mservicestech/scripts/utils.sh

TypeScript utilities

If you want to add TypeScript util you need to create a new folder in src/<typeScriptUtilName> directory with script file. Then you need to add this script to src/index.ts file. After that you can use this util in your project.

Available utilities

utilitydescription
clean_exitexits a given script, killing the whole process tree
run_scriptruns a CommonJS script using node
transpiletranspile a TypeScript file using either 'esbuild' or 'tsc'
token_setsets a shell token in the current environment
parse_argumentsparse shell script arguments into an associative array
fix_exportsoverrides getter class export in a file transpiled with esbuild

Releasing

In order to release the package use the following script:

yarn release

After the release succeeds, run the following to publish the package in GitHub registry:

yarn publish
2.6.0-rc.0

1 year ago

3.1.0

1 year ago

3.0.1-rc.0

1 year ago

3.1.0-rc.0

1 year ago

3.1.0-rc.1

1 year ago

3.0.0

1 year ago

2.3.0

1 year ago

2.5.0

1 year ago

2.4.0

1 year ago

2.5.1

1 year ago

2.2.1-rc.0

2 years ago

2.1.1

2 years ago

2.0.1-rc.1

2 years ago

2.0.1-rc.2

2 years ago

1.7.0

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.6.0

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago