Automatic and manual license collection 📖 #62

Merged
niggl merged 13 commits from feature/59-license_collection into dev 2020-12-31 17:02:10 +00:00
6 changed files with 13695 additions and 10 deletions

View File

@ -37,11 +37,23 @@ steps:
tags: tags:
- dev - dev
registry: registry.odit.services registry: registry.odit.services
when: - name: run full license export
branch: depends_on: ["clone"]
- dev image: node:alpine
event: commands:
- push - yarn
- yarn licenses:export
- name: push new licenses file to repo
depends_on: ["run full license export"]
image: appleboy/drone-git-push
settings:
branch: dev
commit: true
commit_message: new license file version [CI SKIP]
author_email: bot@odit.services
remote: git@git.odit.services:lfk/backend.git
ssh_key:
from_secret: GITLAB_SSHKEY
trigger: trigger:
branch: branch:

3
.gitignore vendored
View File

@ -133,4 +133,5 @@ build
*.sqlite *.sqlite
*.sqlite-jurnal *.sqlite-jurnal
/docs /docs
lib lib
/oss-attribution

8288
LICENSES.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@ -48,6 +48,7 @@
"validator": "^13.5.2" "validator": "^13.5.2"
}, },
"devDependencies": { "devDependencies": {
"@odit/license-exporter": "^0.0.6",
"@types/cors": "^2.8.8", "@types/cors": "^2.8.8",
"@types/csvtojson": "^1.1.5", "@types/csvtojson": "^1.1.5",
"@types/express": "^4.17.9", "@types/express": "^4.17.9",
@ -74,7 +75,8 @@
"test:watch": "jest --watchAll", "test:watch": "jest --watchAll",
"test:ci": "start-server-and-test dev http://localhost:4010/api/docs/openapi.json test", "test:ci": "start-server-and-test dev http://localhost:4010/api/docs/openapi.json test",
"seed": "ts-node ./node_modules/typeorm/cli.js schema:sync && ts-node ./node_modules/typeorm-seeding/dist/cli.js seed", "seed": "ts-node ./node_modules/typeorm/cli.js schema:sync && ts-node ./node_modules/typeorm-seeding/dist/cli.js seed",
"openapi:export": "ts-node src/openapi_export.ts" "openapi:export": "node scripts/openapi_export.js",
"licenses:export": "license-exporter --md"
}, },
"nodemonConfig": { "nodemonConfig": {
"ignore": [ "ignore": [

View File

@ -4,9 +4,9 @@ import fs from "fs";
import "reflect-metadata"; import "reflect-metadata";
import { createExpressServer, getMetadataArgsStorage } from "routing-controllers"; import { createExpressServer, getMetadataArgsStorage } from "routing-controllers";
import { routingControllersToSpec } from 'routing-controllers-openapi'; import { routingControllersToSpec } from 'routing-controllers-openapi';
import { config } from './config'; import { config } from '../src/config';
import authchecker from "./middlewares/authchecker"; import authchecker from "../src/middlewares/authchecker";
import { ErrorHandler } from './middlewares/ErrorHandler'; import { ErrorHandler } from '../src/middlewares/ErrorHandler';
const CONTROLLERS_FILE_EXTENSION = process.env.NODE_ENV === 'production' ? 'js' : 'ts'; const CONTROLLERS_FILE_EXTENSION = process.env.NODE_ENV === 'production' ? 'js' : 'ts';
createExpressServer({ createExpressServer({

5382
tmp.json Normal file

File diff suppressed because it is too large Load Diff