Ionic Gulp tasks
A collection of Gulp tasks for building Ionic apps. Complements and improves official set of Ionic build tasks.
Tasks
Tasks are configured to work by default with the Ionic starters generated by the Ionic CLI.
The current list of tasks is:
Usage
To use a task in your Ionic project's Gulpfile, require
it, then register it:
const gulp = require('gulp');
const buildTypescript = require('@denysvuika/ionic-gulp-build-typescript');
gulp.task('build-ts', buildTypescript);
API
Each task takes an optional options object:
gulp.task('build-ts', () => {
return buildTypeScript({
src: 'www/build/app',
config: 'tsconfig.json'
});
});
The options depend on each task. For more information on a particular task, take a look at its README.
Return value
Each task returns either a stream or promise.