1.0.1 • Published 6 years ago

@dvrpc/demo v1.0.1

Weekly downloads
1
License
CC0-1.0
Repository
github
Last release
6 years ago

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

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

1.0.1

6 years ago

1.0.0

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.4

6 years ago