forked from loafle/openapi-generator-original
Adding build system for typescript AngularJS sample
This commit is contained in:
3
samples/client/petstore/typescript-angular/.gitignore
vendored
Normal file
3
samples/client/petstore/typescript-angular/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/node_modules
|
||||
/typings
|
||||
/client.js
|
||||
14
samples/client/petstore/typescript-angular/README.md
Normal file
14
samples/client/petstore/typescript-angular/README.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# SwaggerClient
|
||||
|
||||
Sample of TypeScript AngularJS petstore client
|
||||
|
||||
## Testing the generated code
|
||||
|
||||
```
|
||||
npm install
|
||||
npm test
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
mads@maetzke-tandrup.dk
|
||||
19
samples/client/petstore/typescript-angular/package.json
Normal file
19
samples/client/petstore/typescript-angular/package.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "petstore-typescript-node-sample",
|
||||
"version": "1.0.0",
|
||||
"description": "Sample of generated TypeScript petstore client",
|
||||
"main": "api.js",
|
||||
"scripts": {
|
||||
"postinstall": "tsd reinstall",
|
||||
"test": "tsc"
|
||||
},
|
||||
"author": "Mads M. Tandrup",
|
||||
"license": "Apache 2.0",
|
||||
"dependencies": {
|
||||
"angular": "^1.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tsd": "^0.6.3",
|
||||
"typescript": "^1.5.3"
|
||||
}
|
||||
}
|
||||
18
samples/client/petstore/typescript-angular/tsconfig.json
Normal file
18
samples/client/petstore/typescript-angular/tsconfig.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"noImplicitAny": true,
|
||||
"out": "client.js"
|
||||
},
|
||||
"files": [
|
||||
"API/Client/Category.ts",
|
||||
"API/Client/Pet.ts",
|
||||
"API/Client/StoreApi.ts",
|
||||
"API/Client/User.ts",
|
||||
"API/Client/api.d.ts",
|
||||
"API/Client/Order.ts",
|
||||
"API/Client/PetApi.ts",
|
||||
"API/Client/Tag.ts",
|
||||
"API/Client/UserApi.ts",
|
||||
"typings/tsd.d.ts"
|
||||
]
|
||||
}
|
||||
15
samples/client/petstore/typescript-angular/tsd.json
Normal file
15
samples/client/petstore/typescript-angular/tsd.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"version": "v4",
|
||||
"repo": "borisyankov/DefinitelyTyped",
|
||||
"ref": "master",
|
||||
"path": "typings",
|
||||
"bundle": "typings/tsd.d.ts",
|
||||
"installed": {
|
||||
"angularjs/angular.d.ts": {
|
||||
"commit": "f6c8ca47193fb67947944a3170912672ac3e908e"
|
||||
},
|
||||
"jquery/jquery.d.ts": {
|
||||
"commit": "f6c8ca47193fb67947944a3170912672ac3e908e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14,6 +14,7 @@
|
||||
"request": "^2.60.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tsd": "^0.6.3"
|
||||
"tsd": "^0.6.3",
|
||||
"typescript": "^1.5.3"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user