@denysvuika/ionic-gulp-build-typescript
v0.1.0
Published
Gulp task for Ionic projects to compile TypeScript code
Downloads
5
Maintainers
Readme
Build TypeScript Task
Gulp task for Ionic projects to compile TypeScript code.
Installing
npm install @denysvuika/ionic-gulp-build-typescript --save-dev
API
buildTypeScript([options])
Returns a stream of Vinyl files that can be piped.
Available options:
- dest (String) Output path for the HTML files. Default:
'www/build/app'
. - config (String) TypeScript configuration file. Default:
tsconfig.json
.
The task automatically emits declaration (.d.ts) and source map (.js.map) files.
Example
const buildTypeScript = require('@denysvuika/ionic-gulp-build-typescript');
// use defaults
gulp.task('build-ts', buildTypeScript);
// or customize
gulp.task('build-ts', () => {
return buildTypeScript({
src: 'www/build/app',
config: 'tsconfig.json'
});
});