A collection of Gulp tasks for building Ionic apps. Complements and improves official set of Ionic build tasks.
Tasks are configured to work by default with the Ionic starters generated by the Ionic CLI.
The current list of tasks is:
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);
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.
Each task returns either a stream or promise.