Skip to content

JimmyRoselin/create-sitevision-app

 
 

Repository files navigation

Create SiteVision app

Create SiteVision WebApps and RESTApps

Getting started

To create a new app:

npx @sitevision/create-sitevision-app my-new-app

npx is a package runner tool (useful when you don't want to pollute global installations)

The command will create a directory with a basic project structure (you will be prompted to enter if you are creating a WebApp or RESTApp as well as information about your SiteVision environment).

The project will depend on @sitevision/sitevision-scripts, which gives the project access to utility scripts for deployment.

Utility scripts

npm run create-addon

Creates an addon with the name configured in the setup task.

npm run zip

Compresses /src into /dist. The generated zip file is your app that will be used when deploying or signing.

npm run deploy

Uploads the app (zip file in /dist) to the configured addon.

Use npm run deploy force to overwrite an existing app.

npm run sign

Invokes the signing endpoint of the SiteVision developer REST API. A signed version of the app will be created in /dist.

npm run deploy-prod

Deploys a signed app to a production environment.

Certificate verification

@sitevision/sitevision-scripts assumes communication over https. To disable certificate verification when developing locally you should utilize the NODE_TLS_REJECT_UNAUTHORIZED=0 flag.

The option can be entered via CLI:

NODE_TLS_REJECT_UNAUTHORIZED=0 npm run deploy

OR by modifying package.json:

”deploy”: ”NODE_TLS_REJECT_UNAUTHORIZED=0 sitevision-scripts deploy”

Credits

Thanks to @albinohrn for helping with this project.

About

Create SiteVision WebApps and RESTApps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%