Skip to content

Commit

Permalink
Generate an index.ts file for Aurelia swagger-api#5987
Browse files Browse the repository at this point in the history
  • Loading branch information
ksm2 committed Jul 6, 2017
1 parent 9b98708 commit 69148bf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public void processOpts() {

// Set supporting files
supportingFiles.add(new SupportingFile("models.mustache", "", "models.ts"));
supportingFiles.add(new SupportingFile("index.ts.mustache", "", "index.ts"));
supportingFiles.add(new SupportingFile("Api.ts.mustache", "", "Api.ts"));
supportingFiles.add(new SupportingFile("AuthStorage.ts.mustache", "", "AuthStorage.ts"));
supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{>licenseInfo}}
export { Api } from './Api';
export { AuthStorage } from './AuthStorage';
{{#apiInfo}}
{{#apis}}
{{#operations}}
export { {{classname}} } from './{{classname}}';
{{/operations}}
{{/apis}}
{{/apiInfo}}
export {
{{#models}}
{{#model}} {{classname}},
{{/model}}
{{/models}}
} from './models';

0 comments on commit 69148bf

Please sign in to comment.