@ eui/ 工具
软件包
构建软件包
eui-scripts build-package <package-name>
# Build a package but **first** its dependencies
eui-scripts build-package <package-name> --deps
# Build a package and send report to Slack
eui-scripts build-package <package-name> --slackReport
# Customize Slack end-point and channel
eui-scripts build-package <package-name> --slackEndPoint /my-new-end-point --slackChannel #my-channel
构建软件包的依赖性
如果您有多个软件包, 如果您想要测试一个软件包, 您需要构建它的依赖性 。 这就是这个命令的目的(在测试软件包之前先运行).
eui-scripts build-deps <package-name>
测试包
eui-scripts test-package <package-name>
# or with watch
eui-scripts test-package <package-name> --watch
发布软件包
eui-scripts publish <package-name>
# to a specific registry
eui-scripts publish <package-name> --registry=http://my-new-registry.com
# to an alias declared in .euirc.json
eui-scripts publish <package-name> --<registry-alias>
# with Slack Repport
eui-scripts publish <package-name> --slackReport
# Custom Slack end-point & channel
eui-scripts publish <package-name> --slackEndPoint /my-new-end-point --slackChannel #my-channel
清洁包装
eui-scripts clean-package <package-name>
构建所有软件包
eui-scripts build-all
清除所有软件包
eui-scripts clean-all
发布所有软件包
eui-scripts publish-all
# to a specific registry
eui-scripts publish-all --registry=http://my-new-registry
# to an alias declared in .euirc.json
eui-scripts publish-all --<registry-alias>
应用容器
生成翻译
装入包"/assets/i18n/"文件夹中的翻译,并生成包含所有翻译的1个编译文件.
# You need to provide **scopes**
eui-scripts generate-translations --scopes=opsys,opsys-ui,cc
# Or you can pass packages directly
eui-scripts generate-translations --packages=@opsys-ui/something,@cc/something-else
# Languages (default: ["en", "fr"])
# You can specify the languages
eui-scripts generate-translations --scopes=opsys --langs=en,fr,es,de
# The "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/angular
# The 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
附属关系的摘录版本
在 节点( 模块) 指定范围的文件夹.
# 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