https://github.com/dvrpc/demo
Build, deploy, and test all in one command
https://github.com/dvrpc/demo
Last synced: 5 months ago
JSON representation
Build, deploy, and test all in one command
- Host: GitHub
- URL: https://github.com/dvrpc/demo
- Owner: dvrpc
- License: other
- Created: 2017-12-04T21:10:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-06-08T00:40:48.000Z (about 5 years ago)
- Last Synced: 2025-10-20T14:43:55.966Z (8 months ago)
- Size: 56.6 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# demo
Build, clean, deploy, and launch your app with one command
## Install
Run `npm i -g @dvrpc/demo`
## Use
1. Add `build` script to `package.json`
2. Run `demo` from your project root
## Configure
Create `demo.config.js` file in your project root
```js
module.exports = {
srcDir: ,
serverPath: ,
serverRootUri: ,
buildArgs: ,
projectName: ,
clean:
}
```
You can also use a JSON file (`demo.config.json`)
## CLI options
Options override settings defined in the configuration
`demo [ -s -d -u -b --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`