clickgo-compiler
v1.0.2
Published
Compile the source code for ClickGo Application, Control, and Theme into standalone files.
Downloads
14
Readme
ClickGo Compiler
Compile ClickGo applications, themes, controls, boot files, and native packages.
Languages
Installation
You can install it directly through the npm command.
$ npm i clickgo-compiler -gUsage
After installation, use the command clickgo directly in the current directory. For example:
$ clickgo --app appCompile Application
Use the --app or -a parameter to compile a directory into a cga ClickGo application file. For example:
$ clickgo --app folderYou can specify an icon file for the application using the --icon or -i parameter. For example:
$ clickgo --app folder --icon icon.pngThe cga file will be generated in the parent folder of the corresponding folder. In the above example, it will be generated in the parent folder of "folder".
You can specify the save path for the compiled file using the --save or -s parameter (do not include an extension or a path ending with /). For example:
$ clickgo --app folder --save app
$ clickgo --app folder --save build/Compile Theme
Use the --theme or -t parameter to compile a directory into a cgt ClickGo theme file. For example:
$ clickgo --theme lightThe cgt file will be generated in the parent folder of the corresponding folder. In the above example, it will be generated in the parent folder of "light".
You can specify the save path for the compiled file using the --save or -s parameter (do not include an extension or a path ending with /). For example:
$ clickgo --theme light --save theme
$ clickgo --theme light --save build/Compile Control
Use the --control or -c parameter to compile a directory into a cgc ClickGo control file. For example:
$ clickgo -c control/buttonThe cgc file will be generated in the parent folder of the corresponding folder. In the above example, it will be generated in the "control" folder.
You can specify the save path for the compiled file using the --save or -s parameter (do not include an extension or a path ending with /). For example:
$ clickgo --save common --theme button checkbox
$ clickgo --save build/ --theme buttonCompile Boot File
Use the --boot or -b parameter to compile an entry js file (without extension). The compiled js entry file should be loaded on the web page. For example:
$ clickgo -b index -g https://cdn.jsdelivr.net/npm/[email protected]/dist/index.jsCompile Native Package
Use the --native or -n parameter to compile the current directory into a native package. For example:
$ clickgo --nativeIf you are in mainland China, use the --mirror or -m parameter to package using a mirror. For example:
$ clickgo --native --mirror cnRun Native Package
Use the --run or -r parameter to execute the native package without compiling. For example:
$ clickgo --run ./dist/indexLicense
This library is published under Apache-2.0 license.
