Skip to content

Commit dc8a533

Browse files
committed
developer - updated to Typescript 3, use esModuleInterop so no require(..) is needed anymore, and use tslint
1 parent 5ba8baf commit dc8a533

File tree

11 files changed

+2739
-1147
lines changed

11 files changed

+2739
-1147
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ typings/
5858
# dotenv environment variables file
5959
.env
6060

61-
arcgis-web-appbuilder-2.5.zip
62-
arcgis-web-appbuilder-2.6.zip
61+
developer/arcgis-web-appbuilder-*.zip
62+
tscommand-*

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.6.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.9.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 2.6](https://blogs.msdn.microsoft.com/typescript/2017/10/31/announcing-typescript-2-6/).
42+
- We are currently supporting [TypeScript version 3.0](https://blogs.msdn.microsoft.com/typescript/2018/07/30/announcing-typescript-3-0/).
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ module.exports = function(grunt) {
7070
},
7171
clean: {
7272
'dist': {
73-
'src': 'dist/**'
73+
'src': 'dist/*'
7474
},
7575
temp: {
76-
'src': 'temp/**'
76+
'src': 'temp/*'
7777
}
7878
},
7979
unzip: {
80-
'temp/': 'arcgis-web-appbuilder-2.6.zip'
80+
'temp/': 'arcgis-web-appbuilder-2.9.zip'
8181
},
8282
connect: {
8383
server: {

0 commit comments

Comments
 (0)