JSPM

  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q46068F
  • License MIT

Package Exports

  • @toreda/build-tools

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@toreda/build-tools) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@toreda/build-tools

Toreda

CI Coverage Quality Gate Status

Helpers for common gulp build flows. Reduce complexity and code duplication in your gulpfile. Reduce redundancy and upkeep across multiple projects.

Contents

Usage

Examples

gulpfile.ts for TypeScript library

import {dest, parallel, series, src} from 'gulp';

import {BuildTools} from '@toreda/build-tools';
import {EventEmitter} from 'events';

const build = new BuildTools(new EventEmitter());

function runLint() {

}

function createDist() {
    return build.create.dir('./dist', false);
}

function cleanDist() {
    return build.clean.dir('./dist');
}

function buildSrc() {
    return build.run.typescript('./dist', 'tsconfig.json');
}

exports.default = series(createDist, cleanDist, runLint, buildSrc);

Package

Install

Install @toreda/build-tools directly from NPM.

Install with Yarn (preferred)

yarn add @toreda/build-tools --dev

Install using NPM

npm install build-tools --save-dev

Run Tests

Install or clone @toreda/adt (see above).

ADT unit tests use Jest.

Installing jest is not required after project dependencies are installed (see above).

yarn test

Build from source

The next steps are the same whether you installed the package using NPM or cloned the repo from Github.

Build with Yarn

Enter the following commands in order from the adt project root.

yarn build

Build with NPM

Enter the following commands in order from the adt project root.

npm run-script build

License

MIT © Toreda, Inc.