@dvrpc/demo
v1.0.1
Published
Build, deploy, and test all in one command
Downloads
11
Readme
demo
Build, clean, deploy, and launch your app with one command
Install
Run npm i -g @dvrpc/demo
Use
- Add
build
script topackage.json
- Run
demo
from your project root
Configure
Create demo.config.js
file in your project root
module.exports = {
srcDir: <string>,
serverPath: <string>,
serverRootUri: <string>,
buildArgs: <string|Array>,
projectName: <string>,
clean: <boolean>
}
You can also use a JSON file (demo.config.json
)
CLI options
Options override settings defined in the configuration
demo [<projectName> -s <srcDir> -d <serverPath> -u <serverRootUri> -b <buildArgs> --watch --disable-clean]
Watch
All files in the project (except for the output directory) are watched and the command will run again.
demo --watch
Disable clean step
Overwrite all built files, but do not remove other files from the server.
demo --disable-clean