eUI common tools and scripts
``sh
eui-scripts build-package
`
`sh`
eui-scripts build-deps
`sh
eui-scripts test-package
$3
`sh
eui-scripts publish to a specific registry
eui-scripts publish --registry=http://my-new-registry.comto an alias declared in .euirc.json
eui-scripts publish --with Slack Repport
eui-scripts publish --slackReportCustom Slack end-point & channel
eui-scripts publish --slackEndPoint /my-new-end-point --slackChannel #my-channel
`$3
`sh
eui-scripts clean-package
`$3
`sh
eui-scripts build-all
`$3
`sh
eui-scripts clean-all
`$3
`sh
eui-scripts publish-allto a specific registry
eui-scripts publish-all --registry=http://my-new-registryto an alias declared in .euirc.json
eui-scripts publish-all --
`App Container
$3
Load the translations located in the packages "/assets/i18n/" folder and generate 1 compiled file with all of the translations.
`sh
You need to provide scopes
eui-scripts generate-translations --scopes=opsys,opsys-ui,ccOr you can pass packages directly
eui-scripts generate-translations --packages=@opsys-ui/something,@cc/something-elseLanguages (default: ["en", "fr"])
You can specify the languages
eui-scripts generate-translations --scopes=opsys --langs=en,fr,es,deThe "root" folder where 'node_modules" is relative to, is by default the process.cwd()
You can override it passing a --target argument
eui-scripts generate-translations --scopes=opsys --target=src/main/angularThe destination where the generate files will be saved is "src/assets/i18n-compiled"
relative to the root folder. You can change it providing a --folder argument
Be careful that this folder will be removed on each generation so make sure it does not contain
any other files.
eui-scripts generate-translations --scopes=opsys --folder=src/assets/here-better
`$3
Read the packages versions in the _node_modules_ folder for the specified scopes.
`sh
IMPORTANT:
This script will replace this line:
"export const VERSIONS = {}"
in a "src/config/index.ts" file relative to the root.
You then need to have this file in your project with the specified line of code.
eui-scripts extract-deps-versions --scopes=opsys,opsys-ui,eui
The "root" folder where the "index.ts" file is relative to, is by default the process.cwd()
You can override it passing a --target argument
eui-scripts extract-deps-versions --scopes=opsys,eui --target=src/main/angular
``