@icjhd/cj-cli
v1.0.0
Published
CJHD Cocos CLI, package manager installer, and runtime license extension
Readme
@icjhd/cj-cli
CJHD Cocos CLI, package manager installer, and runtime license extension.
修改本目录后(发布者必做)
在 xforge-pkg 仓库根执行:
npm run cj:cli:prepare或在本目录:
npm run prepare:local
npm run build:release
npm run verify:release产物:release-npm/packages/icjhd__cj-cli/。未 npm publish 前,客户 npx @latest 不会拿到你的本地改动。
客户安装
Install the editor extension into a Cocos Creator project:
npx --registry=https://registry.npmjs.org @icjhd/cj-cli@latest install-editor-extension --project .
npx --registry=https://registry.npmjs.org @icjhd/cj-cli@latest package --project .
# Interactive install/uninstall/update for @icjhd/cj-* (like @gamex/cc-cli package)Import a license and unlock runtime packages:
node extensions/cj-cli/dist/cli.js import-license --file D:/license/cj-runtime-license.json --project .
node extensions/cj-cli/dist/cli.js add-runtime-packages --project . --registry=https://registry.npmjs.org
node extensions/cj-cli/dist/cli.js install --project . --pkg-root extensions/pkg --forcePreview runtime is unlocked by the native Play pre-preview hook or by the explicit preview flow:
node extensions/cj-cli/dist/cli.js preview --project . --pkg-root extensions/pkgClicking native browser Play renders the project preview-template/index.ejs, which calls the local CJHD preview bridge before Cocos preview scripts load. Closing a monitored preview restores editor-safe runtime stubs. The editor extension does not auto-unlock on load and does not re-unlock after preview close.
The license file is stored by default at:
.cjhd/cj-runtime-license.jsonRuntime packages stay under:
extensions/pkg/node_modules/@icjhdDo not install this package into extensions/pkg/node_modules/@icjhd/cj-cli.
