Haha!
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
2023-05-24 12:35:37 -04:00
parent 35b89062e4
commit 8e5092b943
6 changed files with 489 additions and 444 deletions

View File

@@ -7,9 +7,15 @@ workspace:
steps: steps:
- name: yarn install - name: yarn install
image: node:latest image: node:20-bullseye-slim
environment:
YARN_VERSION: 3.5.0
commands: commands:
- yarn set version stable
- yarn install - yarn install
volumes:
- name: yarnrc
path: /drone/auth/.yarnrc.yml
- name: Code Style Checks - name: Code Style Checks
image: node:latest image: node:latest
commands: commands:
@@ -40,7 +46,7 @@ steps:
- name: Build - name: Build
image: node:latest image: node:latest
commands: commands:
- yarn build - yarn build:production
- name: Send Build Status Notifications - name: Send Build Status Notifications
image: plugins/webhook image: plugins/webhook
settings: settings:
@@ -57,6 +63,11 @@ steps:
- success - success
- failure - failure
volumes:
- name: yarnrc
host:
path: /volume1/docker/.yarnrc.yml
trigger: trigger:
branch: branch:
- main - main
@@ -74,18 +85,25 @@ workspace:
steps: steps:
- name: Build - name: Build
image: node:latest image: node:20-bullseye-slim
environment:
YARN_VERSION: 3.5.0
commands: commands:
- yarn set version stable
- yarn install - yarn install
- yarn build - yarn build:production
volumes:
- name: yarnrc
path: /drone/auth/.yarnrc.yml
- name: Publish NPM - name: Publish NPM
image: node:20-alpine image: node:20-bullseye-slim
failure: ignore
commands: commands:
- yarn publish -t ${DRONE_TAG} - yarn npm publish
volumes: volumes:
- name: npmrc - name: npmrc
path: /drone/auth/.npmrc path: /drone/auth/.npmrc
- name: yarnrc
path: /drone/auth/.yarnrc.yml
- name: Report NPM Publish Status - name: Report NPM Publish Status
image: plugins/webhook image: plugins/webhook
settings: settings:
@@ -106,6 +124,9 @@ volumes:
- name: npmrc - name: npmrc
host: host:
path: /volume1/docker/beethoven/labs-auth/.npmrc path: /volume1/docker/beethoven/labs-auth/.npmrc
- name: yarnrc
host:
path: /volume1/docker/.yarnrc.yml
depends_on: depends_on:
- Test Pipeline - Test Pipeline

View File

@@ -1,6 +1,7 @@
.build.yarnrc.yml .build.yarnrc.yml
.drone.yml .drone.yml
.prettierrc .eslintrc*
.prettierrc*
.yarnrc.yml .yarnrc.yml
babel.config.* babel.config.*
jest.config.* jest.config.*

View File

@@ -5,7 +5,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"build:production": "tsc -p .", "build:production": "tsc -p ./tsconfig.production.json",
"format": "prettier:fix && lint:fix", "format": "prettier:fix && lint:fix",
"lint": "eslint --ext .ts,.tsx src/", "lint": "eslint --ext .ts,.tsx src/",
"lint:fix": "eslint --fix --ext .ts,.tsx src/", "lint:fix": "eslint --fix --ext .ts,.tsx src/",
@@ -47,5 +47,6 @@
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.mifi.dev/mifi/auth-db.git" "url": "https://git.mifi.dev/mifi/auth-db.git"
} },
"packageManager": "yarn@3.5.1"
} }

View File

@@ -2,11 +2,16 @@
"extends": "@tsconfig/node16/tsconfig.json", "extends": "@tsconfig/node16/tsconfig.json",
"compilerOptions": { "compilerOptions": {
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"declaration": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"noImplicitAny": true, "noImplicitAny": true,
"outDir": "./lib/", "outDir": "lib/",
"rootDirs": ["src"], "rootDirs": ["./", "src/"],
"sourceMap": true "strict": true,
} "esModuleInterop": true,
"sourceMap": true,
"removeComments": false
},
"include": ["src"]
} }

17
tsconfig.production.json Normal file
View File

@@ -0,0 +1,17 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noImplicitAny": true,
"outDir": "lib/",
"rootDirs": ["./", "src/"],
"strict": true,
"esModuleInterop": true,
"sourceMap": false,
"removeComments": true
},
"include": ["src"]
}

860
yarn.lock

File diff suppressed because it is too large Load Diff