@axway/gulp-tasks
v5.0.1
Published
Common gulp tasks and utilities.
Downloads
140
Maintainers
Keywords
Readme
@axway/gulp-tasks
Common gulp tasks and utilities.
Visit https://github.com/appcelerator/axway-gulp-tasks for more information.
Report issues to GitHub issues.
Prerequisites
@axway/gulp-tasks requires you to globally install gulp 4.x:
[sudo] npm i -g gulpInstallation
npm i @axway/gulp-tasks --save-devUsage
Create a file in the root of your project called gulpfile.js:
'use strict';
require('@axway/gulp-tasks')({
gulp: require('gulp'),
pkgJson: require('./package.json'),
template: 'standard',
babel: 'node12'
});You can specify the Node.js version you wish to transpile down to. Possibly values are node12 and
node14.
Gulp Tasks
Completely deletes all generated folders or a specific type:
$ gulp clean
$ gulp clean-coverage
$ gulp clean-dist
$ gulp clean-docsRun eslint against your source code and tests.
$ gulp lint
$ gulp lint-src
$ gulp lint-testInvoke Babel and transpile your code into the dist directory.
$ gulp buildBuild and run unit tests using Mocha.
$ gulp testBuild and run unit tests with coverage reports using Mocha and nyc.
$ gulp coverageWatch source files for changes to trigger a re-build.
$ gulp watchWatch source and test files for changes to trigger a re-build and run tests.
$ gulp watch-testLegal
This project is open source under the Apache Public License v2 and is developed by
Axway, Inc and the community. Please read the LICENSE file included
in this distribution for more information.
