Export Project Function
The Export Project function exports the project code (removing any excluded files) using command line statements.
CH5 Shell CLI or NPM scripts can be used to export project code. Enter either of the following in the command prompt or terminal of the Crestron Template Project. The package.json file includes scripts to handle the execution.
- ch5-shell-cli export:project or ch5-shell-cli exp:p
- npm run export:project or npm run exp:p
The export:project or exp:p one-click NPM scripts can also be selected from within Visual Studio Code as shown below.
To access help, execute npm run export:project -- --help.
By default, the zip file is created inside the project dist folder. This file has the naming convention of [filename].zip, where [filename] is the name parameter used in the package.json file.
NOTE: Included files for the project export are passed from the Crestron Template Project package.json file (the node being files: [ ]). If any files are missing in the export, they should be added manually to the files node.