Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Gulp Tasks

Patrick Rodgers edited this page Dec 5, 2016 · 4 revisions

This page outlines the available gulp tasks in the project, what they do, and how to use each. As of 2.0 an effort has been made to simplify the tasks and group things more appropriately.

gulptasks/@Configuration.js

This is not a task but rather contains all of the settings used by the tasks. You can see all of the globs and output folders as well as the library header and other settings.

build

gulp build

This task will generate the /lib folder based on the settings in tsconfig.json. The transpiled JavaScript files as well as the corresponding d.ts files will be produced. This task is used when creating the NPM release packages and it is unlikely you will need to use it directly.

clean

gulp clean

Deletes all of the folders generated by other tasks which are not part of source control.

lint

gulp lint

Runs linting against the files in the src folder based on the rules in tslint.json. You should run this before submitting a PR to ensure the code meets the defined standards.

package

gulp package

Package the solution by building the /lib folder and then using webpack to bundle the library into individual UMD module files as defined in webpack.config.js.

serve

gulp serve

Uses the webpack development serve to bundle, watch, and serve the package based on the settings in webpack-serve.config.js. Please see the debugging article

Clone this wiki locally