Adding build system for typescript AngularJS sample

This commit is contained in:
Mads Mætzke Tandrup
2015-07-25 14:11:10 +02:00
parent bbf0ce8c80
commit 3f9b2a9678
6 changed files with 71 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
/node_modules
/typings
/client.js

View 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

View 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"
}
}

View 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"
]
}

View 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"
}
}
}

View File

@@ -14,6 +14,7 @@
"request": "^2.60.0"
},
"devDependencies": {
"tsd": "^0.6.3"
"tsd": "^0.6.3",
"typescript": "^1.5.3"
}
}