Skip to content

Commit 4dbebbd

Browse files
committed
developer - update to latest web appbuilder version, typescript, arcgis api for javascript
#18
1 parent 79c67ce commit 4dbebbd

File tree

5 files changed

+304
-254
lines changed

5 files changed

+304
-254
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If you're not using the builder interface, this version extracts Web AppBuilder,
2626
1. Install Node.js.
2727
1. `npm install -g grunt-cli` (see https://gruntjs.com/getting-started)
2828
1. Clone or download this repo.
29-
1. Download the Web AppBuilder Developer Edition zip file from [here](https://developers.arcgis.com/web-appbuilder/), and save the zip file named `arcgis-web-appbuilder-2.12.zip` into the `developer/` folder, right at the same level as the `Gruntfile.js`.
29+
1. Download the Web AppBuilder Developer Edition zip file from [here](https://developers.arcgis.com/web-appbuilder/), and save the zip file named `arcgis-web-appbuilder-2.15.zip` into the `developer/` folder, right at the same level as the `Gruntfile.js`.
3030
1. In the terminal, browse to the `developer` folder
3131
1. `npm install`
3232
1. `grunt init`
@@ -39,6 +39,6 @@ Run `grunt` and as you modify your files, the web app should be updated automati
3939

4040
A few notes about the general ideas and principles that are used in both the `builder` and `developer` versions of this code
4141

42-
- We are currently supporting [TypeScript version 3.4](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html).
42+
- We are currently supporting [TypeScript version 3.7](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html).
4343
- The Declare Decorator is used to tell TypeScript how to translate our Widget class into a dojo/declare syntax that Web AppBuilder is looking for. [Decorators are currently experimental](https://www.typescriptlang.org/docs/handbook/decorators.html) (although widely used) so beware of that small risk. If TypeScript did take out decorators at some point, we would have to change how we're doing this.
4444
- For more info, see this blog post: [Custom Web AppBuilder Widgets in TypeScript ](https://community.esri.com/people/GRehkemper-esristaff/blog/2017/12/13/custom-web-appbuilder-widgets-in-typescript)

developer/Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module.exports = function(grunt) {
7777
}
7878
},
7979
unzip: {
80-
'temp/': 'arcgis-web-appbuilder-2.12.zip'
80+
'temp/': 'arcgis-web-appbuilder-2.15.zip'
8181
},
8282
connect: {
8383
server: {

developer/app/env.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ var
7777

7878
//This version number will be appended to URL to avoid cache.
7979
//The reason we do not use wabVersion is to avoid force user to change wabVersion when they are customizing app.
80-
deployVersion = '2.12';
80+
deployVersion = '2.15';
8181

8282
// console.time('before map');
8383

@@ -90,10 +90,10 @@ var
9090
(function(global){
9191
//init API URL
9292
var queryObject = getQueryObject();
93-
var apiVersion = '4.11';
93+
var apiVersion = '4.14';
9494
////////uncomment the following line when downloading the app
9595

96-
apiUrl = 'https://js.arcgis.com/4.11';
96+
apiUrl = 'https://js.arcgis.com/4.14';
9797

9898
//////////////////////////////////////////////////////////////
9999
allCookies = getAllCookies();

0 commit comments

Comments
 (0)