How to build only scripts with command line publish

Hello, everyone.

Is there a way to use the “Only recompile scripts when building” listed in the following link from the command line?

I’ve checked the manual page, but I don’t see any options that look like that.
https://docs.cocos.com/creator/2.4/manual/en/publish/publish-in-command-line.html

Is the “Only recompile scripts when building” feature available only in Editor? Is it not available from the command line?

My current environment
macOS
CocosCreator v2.4.12

Thank you.

Hello, you can try adding the buildScriptsOnly parameter.

Hi. Thanks for the reply.

Is this “buildScriptsOnly parameter” a hidden parameter not mentioned in the manual?

Can I specify the following as a parameter?

/Applications/CocosCreator.app/Contents/MacOS/CocosCreator buildScriptsOnly --path projectPath
  --build "platform=web-mobile;debug=true"

Thank you.

try use buildScriptsOnly=true

1 Like

Thanks for the reply.

I was able to solve the problem by adding the “buildScriptsOnly=true” that you taught me to add to the build parameter!
Thanks for the tip!

/Applications/CocosCreator.app/Contents/MacOS/CocosCreator --path projectPath
  --build "platform=web-mobile;debug=true;buildScriptsOnly=true"

My only regret is that it is not listed in the manual…

Thank you for your help.

1 Like