dva-arcgis-cli

1.2.0 • Public • Published

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
  • Features in this full boilerplate:

  • Upgrade roadhog to the latest version 2.x

  • Replace esri-loader with webpack amd mode

  • Apply redux middleware for map initialization, following Esri/react-redux-js4

  • Using raw ES6+

  • --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

Readme

Keywords

none

Package Sidebar

Install

npm i dva-arcgis-cli

Weekly Downloads

1

Version

1.2.0

License

MIT

Last publish

Collaborators

  • whyan