This repository has been archived by the owner on Mar 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): add support for --typescript option
Uses grunt-tsd to retrieve an initial set of typescript definitions. Adds templates for typescript versions of angular items. Based upon commit 'refs/pull/539/head' of github.com:yeoman/generator-angular
- Loading branch information
1 parent
8a9a8af
commit e579df9
Showing
24 changed files
with
478 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.coffee | ||
*.coffee | ||
*.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"version": "v4", | ||
"repo": "borisyankov/DefinitelyTyped", | ||
"ref": "master", | ||
"path": "typings", | ||
"bundle": "typings/tsd.d.ts", | ||
"installed": { | ||
"jquery/jquery.d.ts": { | ||
"commit": "f3244190e20af6901e865f4cc58127d19216baa1" | ||
}, | ||
"angularjs/angular.d.ts": { | ||
"commit": "f3244190e20af6901e865f4cc58127d19216baa1" | ||
}, | ||
"angularjs/angular-resource.d.ts": { | ||
"commit": "aadd63ecae3feb76ea2d4be80511e266b5c2c4a7" | ||
}, | ||
"angularjs/angular-route.d.ts": { | ||
"commit": "f23cd55e319a0f67362ca0dbc4cf3e2ec1339f4e" | ||
}, | ||
"angularjs/angular-mocks.d.ts": { | ||
"commit": "f23cd55e319a0f67362ca0dbc4cf3e2ec1339f4e" | ||
}, | ||
"angularjs/angular-cookies.d.ts": { | ||
"commit": "f23cd55e319a0f67362ca0dbc4cf3e2ec1339f4e" | ||
}, | ||
"angularjs/angular-sanitize.d.ts": { | ||
"commit": "f23cd55e319a0f67362ca0dbc4cf3e2ec1339f4e" | ||
}, | ||
"jasmine/jasmine.d.ts": { | ||
"commit": "f23cd55e319a0f67362ca0dbc4cf3e2ec1339f4e" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/// <reference path="../../typings/angularjs/angular.d.ts" /><% if (ngCookies) { %> | ||
/// <reference path="../../typings/angularjs/angular-cookies.d.ts" /><% } %><% if (ngResource) { %> | ||
/// <reference path="../../typings/angularjs/angular-resource.d.ts" /><% } %><% if (ngSanitize) { %> | ||
/// <reference path="../../typings/angularjs/angular-sanitize.d.ts" /><% } %><% if (ngRoute) { %> | ||
/// <reference path="../../typings/angularjs/angular-route.d.ts" /><% } %> | ||
|
||
'use strict'; | ||
|
||
angular.module('<%= scriptAppName %>', [<%= angularModules %>])<% if (ngRoute) { %> | ||
.config(($routeProvider:ng.route.IRouteProvider) => { | ||
$routeProvider | ||
.when('/', { | ||
templateUrl: 'views/main.html', | ||
controller: 'MainCtrl' | ||
}) | ||
.otherwise({ | ||
redirectTo: '/' | ||
}); | ||
})<% } %>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/// <reference path="../app.ts" /> | ||
|
||
'use strict'; | ||
|
||
module <%= scriptAppName %> { | ||
export interface I<%= classedName %>Scope extends ng.IScope { | ||
awesomeThings: any[]; | ||
} | ||
|
||
export class <%= classedName %>Ctrl { | ||
|
||
constructor (private $scope: I<%= classedName %>Scope) { | ||
$scope.awesomeThings = [ | ||
'HTML5 Boilerplate', | ||
'AngularJS', | ||
'Karma' | ||
]; | ||
} | ||
} | ||
} | ||
|
||
angular.module('<%= scriptAppName %>') | ||
.controller('<%= classedName %>Ctrl', <%= scriptAppName %>.<%= classedName %>Ctrl); |
Oops, something went wrong.