| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
# Build the development docker image
yarn run build
# Update the recommended dependencies, settings, lint, etc.
# You must do it only once per changing the workflow version - only if you do it.
# If you clone the repo, then this step was already executed at the workflow upgrade.
yarn run setup
# Start the code build watchers. Upon code change it rebuilds the sources and re-run the unit tests.
yarn start
# Run the unit tests explicitly
yarn run unittest
# Run the unit tests in watch mode
yarn run unittest:watch
# We use semantic versioning and semantic release (https://github.com/semantic-release/semantic-release) - this is how you must commit the code.
git add .
yarn run commit
# deploy the stack(s)
yarn run deployThe required package manager is yarn, as we use bitsrc. With npm, it won't work.
IMPORTANT: if you yarn add something, you have to run yarn run build again, to inject the new dependency to the development docker image, then yarn start again.
As we use bitsrc, the content of project/src reflects the bitsrc namespaces:
project/src/{namespace}/{name}
Currently, all the code is from garlictech.nodejs context, and we have two namespaces:
Prerequistes:
yarn run create-bucket
It will use a company-wide deployment bucket name that is currently garlictech-lambda-deployment. The bucket name is hard-coded in the workflow-lambda docker workflow. So, this should normally be ready, except after a Big Cleanup. To print the environment/settings that the conteiner uses:
yarn run print-environment
Configuration
{
"lambdas": [
"passwordless-pre-sign-up",
"passwordless-verify-auth-challenge-response",
"passwordless-define-auth-challenge",
"passwordless-create-auth-challenge"
],
"stacks": {
"gtrack-lambda-dev": {
"parameters": {
"SESFromAddress": "noreply@gtracksport.com",
"UserPoolName": "gt-dev-1",
"PasswordlessCallbackURI": "foobar"
}
}
}
}Deployment
yarn run deploy
The deployment process assumes the above file structure. They are defined in the workflows-lambda. Some technical background:
The workflows have unit test and system test support, both use Jasmine. However, currently, only the unit test execution has been integrated, system tests are coming soon. Add your unit tests next to the tested functionality, under "test" subfolder, and use "spec.ts" postfix. The test executor picks up all the files following this pattern.
| Back | FazBrowse Home | New Git URL |