Upgradable workflow for Availity Toolkit projects
The Availity Workflow provides Gulp, Karma and Webpack tasks needed to build and maintain a availity-toolkit projects.
- Install using NPM
npm install availity-workflow --save-dev
- Integrate with Gulp
var gulp = require('gulp');
var workflow = require('availity-workflow');
workflow.use({
gulp: gulp
});
gulp.task('default', ['av:default']);
gulp.task('lint', ['av:lint']);
gulp.task('test', ['av:test']);
By default all Gulp tasks are prefixed by av:
to prevent name clashes with your own Gulp tasks.
gulp av:default
Runs the default task, which runs these tasks:
- cleans the destination directory
./build
or./dist
av:copy
av:concat
av:server
av:watch
gulp av:clean
Clears the build/dist environment
gulp av:build
Builds your latest code for development|staging|production.
By default development
builds are created. To build assets for staging or production:
NODE_ENV=staging gulp av:release
NODE_ENV=production gulp av:release
gulp av:copy
Copies templates into the build/dist folder. Setting NODE_ENV
environment variable determines the output path.
gulp av:lint
Checks for stylistic and programming errors using ESLint
av:server
av:server:web
is a hapi server that proxies requests to the Ekko serverav:server:rest
starts the Availity Ekko server, which is a json mock server that simulates REST APIs.av:open
opens the system default browser and loads the web application
Kasey Powers
Robert McGuinness
Open source software components distributed or made available in the Availity Materials are licensed to Company under the terms of the applicable open source license agreements, which may be found in text files included in the Availity Materials.
Copyright (c) 2016 Availity, LLC. Code released under the the MIT license