To setup the project run the following commands
yarn install
yarn build
Open 2 terminals, one for each of the following commands:
yarn watch:build
yarn watch:test
- Place the new script in the scripts folder
- Edit the file cli.ts and add the command that will invoke the script
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 logs -
DEBUG_NETWORK=1
to enable network debug logs -
SIMULATE_CI=1
to enable some ENV VARS mostly used for testing while developing (🚨 be careful!)
-
yarn fix
to run the linter and automatically fix your code -
yarn cov
to generate and open the project coverage -
yarn test
to run the unit tests -
yarn doc
to generate and open the documentation
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 builds -
cancel-prev-gitlab-pipelines
Query Bitrise for the all
active pipelines
andcancel
all the pipelines that are in pending or running state -
fetch-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
branch -
promote-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