dva arcgis cli

A command-line tool extends dva-cli, with JavaScript API for ArcGIS.

12
0
JavaScript

dva-arcgis-cli

A command-line tool extends dva-cli, with JavaScript API for ArcGIS, using esri-loader.

Using the latest ArcGIS JavaScript API version 4.6. Also compatible with 3.x. (For example: version 3.23)

Getting Started

Install, create and start.

# Install
$ npm install dva-arcgis-cli -g

# Create app
$ dva-arcgis new myapp

# Start app
$ cd myapp
$ npm start

Commands

We have 2 commands: new, init.

dva-arcgis new [options]

Create app with new directory.

Usage Examples

$ dva-arcgis new myapp
$ dva-arcgis new myapp --full
$ dva-arcgis new myapp --no-install

options

  • --full – A brand new boilerplate with full features Recommand
  • --no-install – Disable npm install after files created

dva-arcgis init [options]

Create app in current directory. It’s options is the same as dva-arcgis new.

Configuration

dva-arcgis-cli use roadhog for build and server, view roadhog#Configuration (中文版) for details.

License

MIT