1.0.8 • Published 6 years ago

@horwood/ts-lib v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

@horwood/ts-lib

This is a simple Node.js module that produces a TypeScript library using your local tsconfig.json file. When built, an executable is produced that can be run from the command line.

Getting Started

It is available through the NPM registry by using the following command:

$ npm install @horwood/ts-lib

Running via the CLI

In order to run from the CLI, add a script to your package.json:

{
  "name": "example-package",
  "version": "1.0.0",
  "description": "An example package.",
  "scripts": {
    "build": "ts-lib"
  },
  "devDependencies": {
    "@horwood/ts-lib": "^1.0.0"
  }
}

Running programmatically

A GulpRunner class is provided that allows Gulp to be run programmatically.

import { GulpRunner } from '@horwood/ts-lib';
const gulpDir = 'path/to/gulp/dir';
const task = 'compile';
new GulpRunner(gulpDir).execute(task);

Both 'gulpDir' and 'task' are optional parameters. If not provided, the standard gulpfile will be used and the default task will be run.

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago