An open API service indexing awesome lists of open source software.

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

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`