myproximus-ts
v1.0.0
Published
TBD
Downloads
1
Readme
Getting started
To setup the project run the following commands
yarn install
yarn build
Develop
Open 2 terminals, one for each of the following commands:
yarn watch:build
yarn 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=1
to enable debug logsDEBUG_NETWORK=1
to enable network debug logsSIMULATE_CI=1
to enable some ENV VARS mostly used for testing while developing (🚨 be careful!)
Lint, Coverage, Test...
yarn fix
to run the linter and automatically fix your codeyarn cov
to generate and open the project coverageyarn test
to run the unit testsyarn doc
to 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-builds
Query Bitrise for the all
active builds
for the givenGIT_BRANCH
andabort
all the buildscancel-prev-gitlab-pipelines
Query Bitrise for the all
active pipelines
andcancel
all 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 (
myproximus
andepic
), 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_VERSION
branchpromote-app-version
Perform a sequence of merges/commits for the given
$APP_VERSION
mergedevelop/$APP_VERSION
intouat/$APP_VERSION
mergeuat/$APP_VERSION
intoprodlike/$APP_VERSION
mergeprodlike/$APP_VERSION
intolut/$APP_VERSION
mergelut/$APP_VERSION
intomaster/$APP_VERSION