https://github.com/ionic-team/ionic-gulp-tasks
Collection of gulp tasks for building Ionic apps
https://github.com/ionic-team/ionic-gulp-tasks
Last synced: 7 months ago
JSON representation
Collection of gulp tasks for building Ionic apps
- Host: GitHub
- URL: https://github.com/ionic-team/ionic-gulp-tasks
- Owner: ionic-team
- Archived: true
- Created: 2016-03-14T20:48:29.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-12-10T15:56:43.000Z (over 7 years ago)
- Last Synced: 2025-01-18T21:58:32.816Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 77.1 KB
- Stars: 41
- Watchers: 17
- Forks: 33
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Deprecated]
Now that Ionic 2 is out of beta, please see the [ionic-app-scripts](https://github.com/driftyco/ionic-app-scripts) repository for Ionic 2 build configuration scripts.
### Ionic Gulp tasks
A curated collection of [Gulp](http://gulpjs.com/) tasks for building Ionic apps. Using these tasks allows you to stay up to date if the default Ionic 2 build changes while it is in beta.
#### Tasks
Tasks are configured to work by default with the Ionic starters generated by the [Ionic CLI](github.com/driftyco/ionic-cli).
The current list of tasks is:
- [Browserify TypeScript task](./browserify-typescript)
- [Browserify ES2015 task](./browserify-es2015)
- [Webpack task (ES2015 and TypeScript)](./webpack)
- [Sass build task](./sass-build)
- [Fonts copy task](./fonts-copy)
- [HTML copy task](./html-copy)
- [Scripts copy task](./scripts-copy)
- [TSLint task](./lint-typescript)
- [*ESlint task](https://github.com/devillex/ionic-gulp-eslint)
\* Community maintained (not in this repo)
#### Usage
To use a task in your Ionic project's Gulpfile, `require` it, then register it:
```
var gulp = require('gulp'),
buildWebpack = require('ionic-gulp-webpack-build');
gulp.task('build', buildWebpack);
```
#### API
Each task takes an optional options object:
```
gulp.task('watch', function(){
return webpackBuild({ watch: true });
});
```
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.