Skip to content

Commit

Permalink
Update to TypeScript 2.0 and migrate to @types
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Sep 3, 2016
1 parent 4a12847 commit 9dff147
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 635 deletions.
2 changes: 0 additions & 2 deletions custom/intern/intern.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../../typings/modules/chai/index.d.ts" />

declare module 'intern' {
import main = require('intern/main');
export = main;
Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
"license": "BSD-3-Clause",
"repository": {
"type": "git",
"url": "https://github.com/dojo/typings"
"url": "https://github.com/dojo/typings/"
},
"typings": "index.d.ts",
"homepage": "https://www.sitepen.com/",
"dependencies": {
"@types/chai": "^3.4.32"
},
"devDependencies": {
"grunt": "^1.0.1",
"grunt-ts": "^5.3.2",
"grunt-tslint": "^3.0.3",
"tslint": "^3.5.0",
"typescript": "^1.8.2"
"grunt-tslint": "^3.2.1",
"tslint": "^3.15.1",
"typescript": "2.0.2"
}
}
70 changes: 14 additions & 56 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,21 @@
{
"version": "1.8.0",
"version": "2.0.0",
"compilerOptions": {
"baseUrl": "node_modules",
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "umd",
"moduleResolution": "classic",
"noImplicitAny": true,
"removeComments": false,
"target": "es5",
"outDir": "_build",
"moduleResolution": "classic"
"noImplicitThis": true,
"target": "es5"
},
"filesGlob": [
"dojo/**/*.ts",
"dijit/**/*.ts",
"dojox/**/*.ts",
"doh/**/*.ts",
"typings/index.d.ts"
],
"files": [
"dojo/1.11/_base.d.ts",
"dojo/1.11/cldr.d.ts",
"dojo/1.11/data.d.ts",
"dojo/1.11/date.d.ts",
"dojo/1.11/dnd.d.ts",
"dojo/1.11/dojo.d.ts",
"dojo/1.11/errors.d.ts",
"dojo/1.11/fx.d.ts",
"dojo/1.11/index.d.ts",
"dojo/1.11/io.d.ts",
"dojo/1.11/loader.d.ts",
"dojo/1.11/modules.d.ts",
"dojo/1.11/NodeList-data.d.ts",
"dojo/1.11/NodeList-dom.d.ts",
"dojo/1.11/NodeList-fx.d.ts",
"dojo/1.11/NodeList-html.d.ts",
"dojo/1.11/NodeList-manipulate.d.ts",
"dojo/1.11/NodeList-traverse.d.ts",
"dojo/1.11/on.d.ts",
"dojo/1.11/OpenAjax.d.ts",
"dojo/1.11/promise.d.ts",
"dojo/1.11/request.d.ts",
"dojo/1.11/router.d.ts",
"dojo/1.11/rpc.d.ts",
"dojo/1.11/selector.d.ts",
"dojo/1.11/store.d.ts",
"dijit/1.11/dijit.d.ts",
"dijit/1.11/form.d.ts",
"dijit/1.11/index.d.ts",
"dijit/1.11/layout.d.ts",
"dijit/1.11/modules.d.ts",
"dojox/1.11/dojox.d.ts",
"dojox/1.11/index.d.ts",
"dojox/1.11/modules.d.ts",
"dojox/1.11/widget.d.ts",
"doh/1.11/doh.d.ts",
"doh/1.11/index.d.ts",
"doh/1.11/modules.d.ts",
"typings/index.d.ts"
],
"atom": {
"rewriteTsconfig": true
}
"include": [
"./dojo/**/*.ts",
"./dijit/**/*.ts",
"./dojox/**/*.ts",
"./doh/**/*.ts",
"./typings/index.d.ts"
]
}
5 changes: 1 addition & 4 deletions typings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"name": "dojo-typings",
"main": "index.d.ts",
"devDependencies": {
"chai": "registry:npm/chai#3.5.0+20160415060238"
}
"main": "index.d.ts"
}
1 change: 0 additions & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
/// <reference path="modules/chai/index.d.ts" />
Loading

0 comments on commit 9dff147

Please sign in to comment.