Skip to content
This repository was archived by the owner on Sep 7, 2018. It is now read-only.

Commit d79b23c

Browse files
committed
Update dependencies
1 parent 5d1aa1b commit d79b23c

File tree

6 files changed

+34
-27
lines changed

6 files changed

+34
-27
lines changed

at-angular-resource.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ module at {
2121
public static remove: () => Resource;
2222
public static save: () => Resource;
2323
public static delete: () => Resource;
24-
constructor(model?: any) { combineResource(this, model); }
2524
public $get: (params?: Object) => angular.IPromise<this>;
2625
public $query: (params?: Object) => angular.IPromise<angular.resource.IResourceArray<this>>;
2726
public $remove: (params?: Object) => angular.IPromise<this>;
@@ -32,14 +31,15 @@ module at {
3231
public toJSON: () => {
3332
[index: string]: any;
3433
};
34+
constructor(model?: any) { combineResource(this, model); }
3535
}
3636

3737
/* istanbul ignore next */
3838
export class ResourceWithUpdate extends Resource {
39-
constructor(model?: any) { super(model); }
4039
public static update: () => ResourceWithUpdate;
4140
public $update: () => angular.IPromise<this>;
4241
public $promise : angular.IPromise<this>;
42+
constructor(model?: any) { super(model); }
4343
}
4444

4545
export interface IResourceAnnotation {

bower.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,9 @@
2424
"AngularJS"
2525
],
2626
"license": "WTFPL",
27-
"main": [
28-
"at-angular.ts",
29-
"at-angular-resource.ts"
30-
],
27+
"main": "at-angular.ts",
3128
"repository": {
3229
"type": "git",
3330
"url": "git://github.com/ulfryk/angular-typescript.git"
3431
}
35-
}
32+
}

gulp/karma.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = function (config) {
1212
'../test/*.coffee'
1313
],
1414
exclude: [],
15-
reporters: ['dots', 'coverage'],
15+
reporters: ['mocha', 'coverage'],
1616
port: 9876,
1717
runnerPort: 9100,
1818
colors: true,
@@ -24,6 +24,7 @@ module.exports = function (config) {
2424
'karma-coffee-preprocessor',
2525
'karma-coverage',
2626
'karma-chrome-launcher',
27+
'karma-mocha-reporter',
2728
'karma-phantomjs-launcher'
2829
],
2930
preprocessors: {

package.json

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
"type": "git",
77
"url": "git://github.com/ulfryk/angular-typescript.git"
88
},
9+
"scripts": {
10+
"postinstall": "bower install",
11+
"build": "gulp ts",
12+
"test": "gulp",
13+
"karma": "gulp karma-ci"
14+
},
915
"keywords": [
1016
"TypeScript",
1117
"AngularJS"
@@ -14,23 +20,25 @@
1420
"license": "WTFPL",
1521
"dependencies": {},
1622
"devDependencies": {
17-
"coveralls": "2.11.6",
18-
"del": "2.2.0",
19-
"gulp": "3.9.0",
20-
"gulp-tslint": "4.2.2",
21-
"gulp-typescript": "2.10.0",
23+
"bower": "1.7.9",
24+
"coveralls": "2.11.9",
25+
"del": "2.2.1",
26+
"gulp": "3.9.1",
27+
"gulp-tslint": "5.0.0",
28+
"gulp-typescript": "2.13.6",
2229
"jasmine-core": "2.4.1",
23-
"karma": "0.13.16",
24-
"karma-chrome-launcher": "0.2.2",
25-
"karma-coffee-preprocessor": "0.3.0",
26-
"karma-coverage": "0.5.3",
27-
"karma-jasmine": "0.3.6",
28-
"karma-phantomjs-launcher": "0.2.2",
30+
"karma": "1.1.0",
31+
"karma-chrome-launcher": "1.0.1",
32+
"karma-coffee-preprocessor": "1.0.0",
33+
"karma-coverage": "1.0.0",
34+
"karma-jasmine": "1.0.2",
35+
"karma-mocha-reporter": "2.0.4",
36+
"karma-phantomjs-launcher": "1.0.1",
2937
"merge-stream": "1.0.0",
30-
"phantomjs": "1.9.19",
38+
"phantomjs-prebuilt": "2.1.7",
3139
"require-dir": "0.3.0",
32-
"run-sequence": "1.1.5",
33-
"tslint": "3.2.1",
34-
"typescript": "1.7.5"
40+
"run-sequence": "1.2.1",
41+
"tslint": "3.12.1",
42+
"typescript": "1.8.10"
3543
}
3644
}

test/directive.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ module test {
1212
// Static fields hold directive configuration
1313
public static controller: string = 'TestComponentCtrl as ctrl';
1414

15+
public static restrict: string = 'E';
16+
1517
public static link: angular.IDirectiveLinkFn = (
1618
scope: IFirstComponentScope,
1719
element: angular.IAugmentedJQuery,
@@ -21,15 +23,15 @@ module test {
2123
ctrl.setCtrlName('FAKE_CTRL_NAME');
2224
};
2325

24-
public static restrict: string = 'E';
25-
2626
public static template: angular.IDirectiveCompileFn = (tElement: angular.IAugmentedJQuery) => {
2727
tElement.addClass('test-component');
2828
return '<span>{{ name }}</span><span>{{ ctrl.name }}</span>';
2929
};
3030

3131
// And the rest are simple Ctrl instance members
32+
/* tslint:disable:member-ordering */
3233
public name: string;
34+
/* tslint:enable:member-ordering */
3335

3436
constructor(
3537
@inject('$scope') $scope: IFirstComponentScope,

ts/tslint.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"no-eval": true,
4747
"no-string-literal": true,
4848
"no-switch-case-fall-through": true,
49-
"no-trailing-comma": true,
5049
"no-trailing-whitespace": true,
5150
"no-unused-expression": true,
5251
"no-unused-variable": true,
@@ -91,4 +90,4 @@
9190
"check-type",
9291
"check-typecast"
9392
]
94-
}
93+
}

0 commit comments

Comments
 (0)