パッケージの詳細

@northbrook/tsc

northbrookjs15MIT1.0.8

Compile your Northbrook packages with TypeScript

typescript, northbrook, northbrook-plugin

readme

Northbrook TypeScript

The power of Northbrook and TypeScript together in one place

A collection of TypeScript-specific plugins for Northbrook.

Plugins

@northbrook/tsc - Build with the TypeScript Compiler

Using the TypeScript compiler API, this plugin will help you to build all of your packages using the TypeScript compiler.

npm install --save-dev @northbrook/tsc
Northbrook Configuration Options
// northbrook.ts
export = {
  plugins: [ '@northbrook/tsc' ]

  // entire object is 100% optional
  tsc?: {
    // Tells the plugin whether or not to build es2015 modules - default : false
    es2015?: boolean;
    // Tells the directory you'd like to compile into - default : lib
    directory?: string;
    // Allows you to configure the files you'd like the plugin to match and compile
    patterns?: Array<RegExp | string>,
  }
}
patterns

The patterns configuration is an advanced option to allow defining what files you would like to match and have compiled. This array is an array of inputs that are accepted by the project glob-expand.

The default patterns are:

const defaultPatterns: Array<RegExp | string> =
  [
    // all typescript files
    /\.ts/,
    // but not generated files
    '!lib/**/*.*',
    '!lib/**/*.*',
    // and not test files
    '!**/__test__/**/*.*',
    '!**/*.spec.ts',
    '!**/*.test.ts',
    '!**/*Spec.ts',
    '!**/*Test.ts',
    // and not files marked to be skipped
    '!**/*.skip.ts',
  ];

@northbrook/tslint - Lint your TypeScript files

Lint your TypeScript files with TSLint.

npm install --save-dev @northbrook/tslint
Northbrook Configuration Options
// northbrook.ts

export = {
  plugins: [ '@northbrook/tslint' ],

  // this object is 100% options
  tslint: {
    patterns: Array<RegExp | string>
  }
}
patterns

The patterns configuration is an advanced option to allow defining what files you would like to match and have compiled. This array is an array of inputs that are accepted by the project glob-expand.

The default patterns are:

const defaultPatterns: Array<RegExp | string> =
  [
    // all typescript files
    /\.ts/,
    // but not generated files
    '!lib/**/*.ts',
    '!lib.es2015/**/*.ts',
    // and not files marked to be skipped
    '!**/*.skip.ts',
  ];

更新履歴

1.0.8 (2017-01-30)


Bug Fixes

1.0.7 (2017-01-16)


Bug Fixes

  • fix(typescript): update northbrook dependencies f07acfbc

1.0.6 (2017-01-16)


Bug Fixes

1.0.5 (2017-01-13)


Bug Fixes

  • fix(tsc): tighten up default pattern matching 0d590686

1.0.4 (2017-01-03)


Bug Fixes

  • fix(tsc): always create declaration files 107f3c37

1.0.3 (2016-12-24)


Bug Fixes

1.0.2 (2016-12-24)


Bug Fixes

  • fix(tsc): remove the build directory before building new code a8ea74ba

1.0.1 (2016-12-24)


Bug Fixes

  • fix(package): build packages before releasing! 35c254a2

1.0.0 (2016-12-24)


Features

  • feat(tsc): Implement typescript compilation for Northbrook v4 a63942c8