Skip to content

Commit

Permalink
Set typescript compiler to compile down to one source file
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhenry committed Jun 30, 2015
1 parent 3bff8ed commit 1d80213
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 26 deletions.
22 changes: 21 additions & 1 deletion dist/ngJwtAuth.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
/// <reference path="../typings/lodash/lodash.d.ts" />
/// <reference path="../typings/angularjs/angular.d.ts" />
/// <reference path="ngJwtAuthInterfaces.d.ts" />
declare module NgJwtAuth {
interface INgJwtAuthService {
isLoginMethod(url: string, subString: string): boolean;
getUser(): Object;
getPromisedUser(): ng.IPromise<Object>;
processNewToken(rawToken: string): boolean;
clearToken(): boolean;
authenticate(username: string, password: string): ng.IPromise<Object>;
exchangeToken(token: string): ng.IPromise<Object>;
requireLogin(): ng.IPromise<Object>;
}
interface INgJwtAuthServiceProvider {
setApiEndpoints(config: IEndpointDefinition): NgJwtAuthServiceProvider;
}
interface IEndpointDefinition {
base?: string;
login?: string;
tokenExchange?: string;
refresh?: string;
}
}
declare module NgJwtAuth {
class NgJwtAuthServiceProvider implements ng.IServiceProvider, INgJwtAuthServiceProvider {
apiEndpoints: IEndpointDefinition;
Expand Down
2 changes: 1 addition & 1 deletion dist/ngJwtAuth.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 0 additions & 21 deletions dist/ngJwtAuthInterfaces.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/ngJwtAuthInterfaces.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/ngJwtAuthInterfaces.js.map

This file was deleted.

7 changes: 6 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ gulp.task('js:app', function () {


return gulp.src(sources.app.ts)
.pipe(plugins.tsc({ sourceMap: true, declaration: true, keepTree: false}))
.pipe(plugins.tsc({
sourceMap: true,
declaration: true,
keepTree: false,
out: path.basename(bowerJson.main)
}))
.pipe(gulp.dest(destinations.app))
;

Expand Down

0 comments on commit 1d80213

Please sign in to comment.