Skip to content

Commit 15fc466

Browse files
committed
Migrate to TypeScript
1 parent 52bed3e commit 15fc466

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+143
-114
lines changed

.babelrc.karma

Lines changed: 0 additions & 11 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
artifacts
33
build
44
node_modules
5+
/typings
56
npm-debug.log

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ before_install:
2020

2121
install:
2222
- npm install gulp --global
23+
- npm install typings --global
2324
- npm install codecov --global
2425

2526
before_script:
2627
- npm install
28+
- typings install
2729

2830
script:
2931
- gulp lint

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
"sass-loader": "^4.0.2",
5959
"sinon": "^1.17.5",
6060
"style-loader": "^0.13.1",
61+
"typescript": "^2.0.0",
6162
"url-loader": "^0.5.7",
6263
"webpack": "^1.13.2",
63-
"webpack-combine-loaders": "^2.0.0",
6464
"webpack-dev-server": "^1.15.2"
6565
},
6666
"dependencies": {
@@ -73,6 +73,7 @@
7373
"bootstrap-sass": "^3.3.7",
7474
"express": "^4.14.0",
7575
"faker": "^3.1.0",
76-
"lodash": "^4.15.0"
76+
"lodash": "^4.15.0",
77+
"ts-loader": "^0.8.2"
7778
}
7879
}

src/app.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/app.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/// <reference path="./typings/angular-messages.d.ts" />
2+
/// <reference path="./typings/require.d.ts" />
3+
4+
import './style.scss';
5+
6+
import * as angular from 'angular';
7+
import bootstrap from './app/bootstrap';
8+
9+
angular.injector(['ng'])
10+
.invoke(bootstrap);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import angular from 'angular';
1+
import * as angular from 'angular';
22
import states from './states/config';
33
import uiRouter from 'angular-ui-router';
44

Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import template from './template.html';
2-
31
export default {
42
name: 'about',
53

6-
template,
4+
template: require('./template.html'),
75
url: '/about'
86
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as angular from 'angular';
12
import { expect } from 'chai';
23
import module from '../../module';
34

0 commit comments

Comments
 (0)