@horwood/ts-lib
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

@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.

/@horwood/ts-lib/

    Package Sidebar

    Install

    npm i @horwood/ts-lib

    Weekly Downloads

    8

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    5.98 kB

    Total Files

    13

    Last publish

    Collaborators

    • lnh