myproximus-ts v1.0.0
Getting started
To setup the project run the following commands
yarn installyarn build
Develop
Open 2 terminals, one for each of the following commands:
yarn watch:buildyarn watch:test
Add a new script
- Place the new script in the scripts folder
- Edit the file cli.ts and add the command that will invoke the script
Debug
Add one or more of the following flags to enable certain features (ex DEBUG=1 node bin/myproximus-ts wait-and-exit 3)
DEBUG=1to enable debug logsDEBUG_NETWORK=1to enable network debug logsSIMULATE_CI=1to enable some ENV VARS mostly used for testing while developing (🚨 be careful!)
Lint, Coverage, Test...
yarn fixto run the linter and automatically fix your codeyarn covto generate and open the project coverageyarn testto run the unit testsyarn docto generate and open the documentation
Available scripts
For a list of available scripts and their usage run the command:
node bin/myproximus-ts --help
wait-and-exit <seconds> <exitcode>Wait an amount of seconds (3 default) and exit the process with the given exit code (0 default)
cancel-prev-bitrise-buildsQuery Bitrise for the all
active buildsfor the givenGIT_BRANCHandabortall the buildscancel-prev-gitlab-pipelinesQuery Bitrise for the all
active pipelinesandcancelall the pipelines that are in pending or running statefetch-translations <appVersion>Download and store the translation from the Proximus's Magnolia CMS. For each app (
myproximusandepic), download the supported languages (EN, FR, NL) and store the content in/src-dise/common-features/translations/<app>/<language.json>. Commit and push the changes on thedevelop/$APP_VERSIONbranchpromote-app-versionPerform a sequence of merges/commits for the given
$APP_VERSION
mergedevelop/$APP_VERSIONintouat/$APP_VERSION
mergeuat/$APP_VERSIONintoprodlike/$APP_VERSION
mergeprodlike/$APP_VERSIONintolut/$APP_VERSION
mergelut/$APP_VERSIONintomaster/$APP_VERSION
4 years ago