Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit e8a7083

Browse files
test(typescript): Add tests for typescript 2.2-2.6 compatibility
1 parent 5a1a518 commit e8a7083

22 files changed

+159
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818
- CORE_BRANCH=master
1919
- CORE_BRANCH=master UPSTREAM_PKGS=@uirouter/core DOWNSTREAM_PKGS=sample-app-angularjs
2020
- DOWNSTREAM_PKGS=sample-app-angularjs
21+
- DOWNSTREAM_PKGS=typescript2.2,typescript2.3,typescript2.4,typescript2.5,typescript2.6
2122

2223
matrix:
2324
fast_finish: true

downstream_projects.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"sample-app-angularjs": "https://github.com/ui-router/sample-app-angularjs.git"
2+
"sample-app-angularjs": "https://github.com/ui-router/sample-app-angularjs.git",
3+
"typescript2.2": "./test/typescript2.2",
4+
"typescript2.3": "./test/typescript2.3",
5+
"typescript2.4": "./test/typescript2.4",
6+
"typescript2.5": "./test/typescript2.5",
7+
"typescript2.6": "./test/typescript2.6"
38
}

test/typescript2.2/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

test/typescript2.2/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { UIRouter } from '@uirouter/angularjs';
2+
console.log(UIRouter);

test/typescript2.2/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "@uirouter/angularjs-test-typescript2.2",
3+
"version": "1.0.0",
4+
"description": "Test against Typescript 2.2",
5+
"scripts": {
6+
"test": "tsc"
7+
},
8+
"author": "",
9+
"license": "MIT",
10+
"dependencies": {
11+
"@types/angular": "1.5.14",
12+
"@types/jquery": "2",
13+
"@uirouter/angularjs": "latest",
14+
"typescript": "2.2"
15+
},
16+
"devDependencies": {}
17+
}

test/typescript2.2/tsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"moduleResolution": "node",
4+
"module": "commonjs",
5+
"lib": [ "es6", "dom" ],
6+
"noImplicitAny": true,
7+
"noEmit": true,
8+
"target": "es5",
9+
"typeRoots": ["node_modules/@types"]
10+
},
11+
"files": [ "index.ts" ]
12+
}

test/typescript2.3/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

test/typescript2.3/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { UIRouter } from '@uirouter/angularjs';
2+
console.log(UIRouter);

test/typescript2.3/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@uirouter/angularjs-test-typescript2.3",
3+
"version": "1.0.0",
4+
"description": "Test against Typescript 2.3",
5+
"scripts": {
6+
"test": "tsc"
7+
},
8+
"author": "",
9+
"license": "MIT",
10+
"dependencies": {
11+
"@uirouter/angularjs": "latest",
12+
"typescript": "2.3"
13+
},
14+
"devDependencies": {}
15+
}

test/typescript2.3/tsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"moduleResolution": "node",
4+
"module": "commonjs",
5+
"lib": [ "es6", "dom" ],
6+
"noImplicitAny": true,
7+
"noEmit": true,
8+
"target": "es5",
9+
"typeRoots": ["node_modules/@types"]
10+
},
11+
"files": [ "index.ts" ]
12+
}

0 commit comments

Comments
 (0)