Added a new build pipeline

This commit is contained in:
Nicolai Ort 2020-12-13 19:17:10 +01:00
parent 251bf1034c
commit e40f174241

View File

@ -3,7 +3,7 @@
"description": "A lib to interact with https://git.odit.services/lfk/backend", "description": "A lib to interact with https://git.odit.services/lfk/backend",
"version": "0.0.1", "version": "0.0.1",
"license": "CC-BY-NC-SA-4.0", "license": "CC-BY-NC-SA-4.0",
"main": "./dist/index.ts", "main": "./dist/index.js",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://git.odit.services/lfk/lib" "url": "git+https://git.odit.services/lfk/lib"
@ -19,8 +19,22 @@
"package.json", "package.json",
"README.md" "README.md"
], ],
"scripts": {
"build": "npm run build:prepare && npm run build:lib && npm run build:compile && npm run build:cleanup",
"build:prepare": "rimraf ./lib ./dist",
"build:lib": "openapi --input ./openapi.json --output ./lib --client node",
"build:compile": "tsc",
"build:cleanup": "rimraf ./lib"
},
"bugs": { "bugs": {
"url": "https://git.odit.services/lfk/lib/issues" "url": "https://git.odit.services/lfk/lib/issues"
}, },
"homepage": "https://git.odit.services/lfk/lib/" "homepage": "https://git.odit.services/lfk/lib/",
} "devDependencies": {
"@types/node": "^14.14.13",
"form-data": "^3.0.0",
"node-fetch": "^2.6.1",
"openapi-typescript-codegen": "^0.7.0",
"rimraf": "^3.0.2"
}
}