|
3 | 3 | "version": "5.0.0-beta.3", |
4 | 4 | "description": "Angular REST API client generator from Swagger YAML or JSON file with camel case settings", |
5 | 5 | "homepage": "https://github.com/flowup/api-client-generator/blob/master/README.md", |
6 | | - "main": "./dist/src/main.js", |
| 6 | + "main": "./dist/main.js", |
7 | 7 | "author": { |
8 | 8 | "name": "FlowUp", |
9 | 9 | |
10 | 10 | "url": "https://flowup.cz" |
11 | 11 | }, |
12 | 12 | "bin": { |
13 | | - "api-client-generator": "./dist/src/main.js" |
| 13 | + "api-client-generator": "./dist/main.js" |
14 | 14 | }, |
15 | 15 | "bugs": { |
16 | 16 | "url": "https://github.com/flowup/api-client-generator/issues" |
|
51 | 51 | "license": "MIT", |
52 | 52 | "scripts": { |
53 | 53 | "generate": "node ./dist/main.js", |
54 | | - "build": "npm run lint && rimraf dist && tsc", |
55 | | - "lint": "tslint -p tsconfig.json -c tslint.json src/**/*.ts", |
| 54 | + "build": "npm run lint && rimraf dist && tsc --build src", |
| 55 | + "lint": "tslint -p src/tsconfig.json -c tslint.json src/**/*.ts", |
56 | 56 | "gen": "ts-node --files ./src/main.ts", |
57 | 57 | "gen:all": "npm run gen-custom && npm run gen-custom-without-guards && npm run gen-esquare && npm run gen-gcloud-firestore && npm run gen-github && npm run gen-filtered-api && npm run gen-pet-store && npm run gen-with-all-tags", |
58 | 58 | "gen:all:parallel": "concurrently --kill-others-on-fail \"npm:gen-*\"", |
59 | | - "gen-custom": "rimraf ./tests/custom/api && ts-node --files ./src/main.ts -s ./tests/custom/swagger.yaml -o ./tests/custom/api", |
60 | | - "gen-custom-without-guards": "rimraf ./tests/custom-without-guards/api && ts-node --files ./src/main.ts -s ./tests/custom/swagger.yaml -o ./tests/custom-without-guards/api -g", |
61 | | - "gen-esquare": "rimraf ./tests/esquare/api && ts-node --files ./src/main.ts -s ./tests/esquare/swagger.yaml -o ./tests/esquare/api", |
62 | | - "gen-gcloud-firestore": "rimraf ./tests/gcloud-firestore/api && ts-node --files ./src/main.ts -s ./tests/gcloud-firestore/swagger.yaml -o ./tests/gcloud-firestore/api", |
63 | | - "gen-github": "rimraf ./tests/github/api && ts-node --files ./src/main.ts -s ./tests/github/swagger.yaml -o ./tests/github/api -t all", |
64 | | - "gen-filtered-api": "rimraf ./tests/filtered-api/api && ts-node --files ./src/main.ts -s ./tests/filtered-api/swagger.json -o ./tests/filtered-api/api -t DummySelector,Project,NonExistingTag -m", |
65 | | - "gen-pet-store": "rimraf ./tests/pet-store/api && ts-node --files ./src/main.ts --verbose -s ./tests/pet-store/swagger.yaml -o ./tests/pet-store/api", |
66 | | - "gen-with-all-tags": "rimraf ./tests/with-all-tags/api && ts-node --files ./src/main.ts -s ./tests/with-all-tags/swagger.json -o ./tests/with-all-tags/api -t all", |
| 59 | + "gen-custom": "rimraf ./tests/custom/api && npm run gen -- -s ./tests/custom/swagger.yaml -o ./tests/custom/api", |
| 60 | + "gen-custom-without-guards": "rimraf ./tests/custom-without-guards/api && npm run gen -- -s ./tests/custom/swagger.yaml -o ./tests/custom-without-guards/api -g", |
| 61 | + "gen-esquare": "rimraf ./tests/esquare/api && npm run gen -- -s ./tests/esquare/swagger.yaml -o ./tests/esquare/api", |
| 62 | + "gen-gcloud-firestore": "rimraf ./tests/gcloud-firestore/api && npm run gen -- -s ./tests/gcloud-firestore/swagger.yaml -o ./tests/gcloud-firestore/api", |
| 63 | + "gen-github": "rimraf ./tests/github/api && npm run gen -- -s ./tests/github/swagger.yaml -o ./tests/github/api -t all", |
| 64 | + "gen-filtered-api": "rimraf ./tests/filtered-api/api && npm run gen -- -s ./tests/filtered-api/swagger.json -o ./tests/filtered-api/api -t DummySelector,Project,NonExistingTag -m", |
| 65 | + "gen-pet-store": "rimraf ./tests/pet-store/api && npm run gen -- --verbose -s ./tests/pet-store/swagger.yaml -o ./tests/pet-store/api", |
| 66 | + "gen-with-all-tags": "rimraf ./tests/with-all-tags/api && npm run gen -- -s ./tests/with-all-tags/swagger.json -o ./tests/with-all-tags/api -t all", |
67 | 67 | "release": "npm run tests && npm run build && standard-version --tag-prefix=''", |
68 | 68 | "test": "jest", |
69 | | - "intg-tests:gen-all-tags": "rimraf tests/test-angular-project/src/api-all-tags && npm run gen -- src/main.ts -s tests/test-angular-project/swagger.yaml -o tests/test-angular-project/src/api-all-tags -t all", |
70 | | - "intg-tests:gen-no-tag": "rimraf tests/test-angular-project/src/api-no-tags && npm run gen -- src/main.ts -s tests/test-angular-project/swagger.yaml -o tests/test-angular-project/src/api-no-tags", |
| 69 | + "test--showConfig ": "jest --showConfig ", |
| 70 | + "intg-tests:gen-all-tags": "rimraf tests/test-angular-project/src/api-all-tags && npm run gen -- -s tests/test-angular-project/swagger.yaml -o tests/test-angular-project/src/api-all-tags -t all", |
| 71 | + "intg-tests:gen-no-tag": "rimraf tests/test-angular-project/src/api-no-tags && npm run gen -- -s tests/test-angular-project/swagger.yaml -o tests/test-angular-project/src/api-no-tags", |
71 | 72 | "intg-tests:clear-gen": "rimraf tests/test-angular-project/src/api-no-tags && rimraf tests/test-angular-project/src/api-all-tags", |
72 | 73 | "intg-tests:run-tests": "cd tests/test-angular-project && npm run test", |
73 | 74 | "intg-tests:run-build": "cd tests/test-angular-project && npm run build", |
|
119 | 120 | "jest": { |
120 | 121 | "preset": "jest-preset-typescript", |
121 | 122 | "setupFilesAfterEnv": [ |
122 | | - "<rootDir>/setupJest.ts" |
| 123 | + "<rootDir>/setupJest.ts", |
| 124 | + "<rootDir>/src/typings.d.ts" |
123 | 125 | ], |
124 | 126 | "testRegex": "^\\/src\\/.*|\\.tests?\\.ts$", |
125 | 127 | "modulePaths": [ |
|
0 commit comments