1.3.10 • Published 7 years ago
start-typescript v1.3.10
start-typescript
:abc: Typescript compilation task for Start
Install
npm install --save-dev start-typescript
# or
yarn add --dev start-typescript
Usage (Build)
import Start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import read from 'start-read';
import write from 'start-write';
import typescript from 'start-typescript';
const start = Start(reporter());
export const task = () => start(
files('lib/index.ts'), // must reference a single entrypoint
read(),
typescript(),
write('build/')
);
Usage (Test)
import Start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import read from 'start-read';
import write from 'start-write';
import split from 'start-split';
import mocha from 'start-mocha';
import typescript from 'start-typescript';
const start = Start(reporter());
export const task = () => start(
files('test/index.ts'), // must reference a single entrypoint
read(),
typescript(),
split({
lib: () => [write('.scratch/lib')],
test: () => [write('.scratch/test')]
}),
files('.scratch/test/**/*.js'),
mocha()
);
This task relies on [{ path, data, map }]
input and provides the same, see documentation for details.
Arguments
typescript(opts)
opts
configFile
- path to an alternatetsconfig.json
compilerOptions
- tsconfigcompilerOptions
as specified here
1.3.10
7 years ago
1.3.9
7 years ago
1.3.8
7 years ago
1.3.7
7 years ago
1.3.6
7 years ago
1.3.5
7 years ago
1.3.4
7 years ago
1.3.3
7 years ago
1.3.2
7 years ago
1.3.1
7 years ago
1.3.0
7 years ago
1.2.4
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago