Gulp Guide
Table of Contents
Overview
- Gulp commands used in our applications for cleaning up sql code, releases, updating our wiki
Gulp Commands
gulp resetData
- Reset all data using the data.sql filegulp resetSql
- Reset all stored procedures, views, and functions using the files in sql/StoredProcedure, sql/View, etcgulp resetAll
- Resets everything in resetData and resetAll as well as tables using files in sql/Tablegulp generateData
- Generates a new data.sql file using the data in the databasegulp generateSql
- Generates new files for tables, stored procedures, views, and functions using the SQL objects in the databasegulp generateAll
- Generates everything from generateSql and generateDatagulp releaseDev
- Generates web files and sql scripts to move to DEVgulp releaseStaging
- Generates web files and sql scripts to move to Staging
Releases
Release Procedure - DEV
Local Machine
- Run from git bash:
gulp releaseDev
- Copy release folder to an external hard drive
- Run from git bash:
Cigna Machine (dev server)
- Plug in external hard drive
- Run any necessary Script for Release files
- Run
release/sql/createAllButTables.sql
- Copy files in release/files into webroot
- Only copy files in folders if the files have changed.
Release Procedure - Staging
- Local Machine
- Run from git bash:
gulp releaseStaging
- Copy release folder to an external hard drive
- Cigna Machine (staging server)
- Combine any necessary Script for Release files and
release/sql/dropAllButTables.sql
andrelease/sql/createAllButTables.sql
- Send resulting file to Bud with a backout script
- Copy all files in release/compiled into webroot
- Copy all files in release/compiled/bin
- Only copy p11 files unless the other files have changed
- Run from git bash:
Release Wiki
Run the following command in git bash after committing final changes to git.
Changes to the documentation will be uploaded to our documentation section in the pbc website
gulp releaseDocumentation