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:defaultRuns the default task, which runs these tasks:
- cleans the destination directory
./buildor./dist av:copyav:concatav:serverav:watch
gulp av:cleanClears the build/dist environment
gulp av:buildBuilds 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:releaseNODE_ENV=production gulp av:release
gulp av:copyCopies templates into the build/dist folder. Setting NODE_ENV environment variable determines the output path.
gulp av:lintChecks for stylistic and programming errors using ESLint
av:serverav:server:webis a hapi server that proxies requests to the Ekko serverav:server:reststarts the Availity Ekko server, which is a json mock server that simulates REST APIs.av:openopens 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