Skip to content

Commit 020658e

Browse files
authored
Merge pull request #27 from gavinr/ts-3.9
typescript v3.9 and web appbuilder v2.16
2 parents 9ed734c + 5fe4a36 commit 020658e

File tree

10 files changed

+402
-309
lines changed

10 files changed

+402
-309
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ 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.15.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.16.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`
3333

3434
#### Development:
3535

36-
Run `grunt` and as you modify your files, the web app should be updated automatically.
36+
Run `grunt` and as you modify your files, the web app (in the `dist` folder - serve via a web server like IIS or use [serve](https://www.npmjs.com/package/serve)) should be updated automatically.
3737

3838
## Documentation
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.7](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html).
42+
- We are currently supporting [TypeScript version 3.9](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)

builder-2d/Gruntfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ module.exports = function (grunt) {
88
grunt.loadNpmTasks('grunt-contrib-clean');
99
grunt.loadNpmTasks('grunt-ts');
1010
grunt.loadNpmTasks('grunt-sass');
11-
// The following should be something like 'C:/webappbuilder/arcgis-web-appbuilder-2.15/WebAppBuilderForArcGIS/server/apps/9'
11+
// The following should be something like 'C:/webappbuilder/arcgis-web-appbuilder-2.16/WebAppBuilderForArcGIS/server/apps/9'
1212
var appDir = '[YOUR_PATH_TO]/WebAppBuilderForArcGIS/server/apps/[APP_ID]';
13-
// The following should be something like 'C:/webappbuilder/arcgis-web-appbuilder-2.15/WebAppBuilderForArcGIS/client/stemapp'
13+
// The following should be something like 'C:/webappbuilder/arcgis-web-appbuilder-2.16/WebAppBuilderForArcGIS/client/stemapp'
1414
var stemappDir = '[YOUR_PATH_TO]/WebAppBuilderForArcGIS/client/stemapp';
1515
grunt.initConfig({
1616
sync: {

0 commit comments

Comments
 (0)