This sample application shows how to run a dojo build on a 4.x ArcGIS API for JavaScript application to get it ready for production. The sample intends for bower to be used for dependency management to download the ArcGIS API for JavaScript, dojo, and other dependencies and grunt to run the dojo build (both of which depend on Node.js). This sample is using the 4.3 version of the ArcGIS API for JavaScript. Updated bower files for newer versions of the ArcGIS API for JavaScript can be found at https://github.com/Esri/jsapi-resources.
- Sample Enterprise Application - Formatted and developed to work with Automated Dojo Builds
- Sample Grunt File - Build file to be adapted to your own applications
- Build Profiles - Sample dojo build profile files to be adapted to your own applications
- Bower File - to download the Dojo, dgrid, put-selector, and xstyle source code, which has been patched to better work with the ArcGIS JavaScript API and the ArcGIS JavaScript API AMD Build.
-
install git
-
install Node.js
-
Install global packages with npm
npm install -g grunt-cli
npm install -g bower
-
Fork and then clone this repository.
-
Navigate to the folder project was cloned to.
-
Install local node packages into your project by running
npm install
-
Install the JavaScript dependencies
bower install
, because of the .bowerrc file config these will install into the web/js folder. -
Run the dojo build using grunt by running
grunt build
-
When the build is complete the dist directory should be a production ready version of the application
- ArcGIS for JavaScript API Resource Center
- Dojo Build Process Tutoiral
- ArcGIS Blog
- twitter@esri
- Dev Summit 2017 Build Presentation
- Dev Summit 2017 Testing Presentation
Find a bug or want to request a new feature? Please let us know by submitting an issue.
Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.
Copyright 2015 Esri
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
A copy of the license is available in the repository's license.txt file.