Pipeline and build cleanup
This commit is contained in:
13
.drone.yml
13
.drone.yml
@@ -7,7 +7,7 @@ workspace:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
image: node:latest
|
image: node:20-bullseye-slim
|
||||||
environment:
|
environment:
|
||||||
YARN_VERSION: 3.5.0
|
YARN_VERSION: 3.5.0
|
||||||
commands:
|
commands:
|
||||||
@@ -46,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:
|
||||||
@@ -85,24 +85,25 @@ workspace:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Build
|
- name: Build
|
||||||
image: node:latest
|
image: node:20-bullseye-slim
|
||||||
environment:
|
environment:
|
||||||
YARN_VERSION: 3.5.0
|
YARN_VERSION: 3.5.0
|
||||||
commands:
|
commands:
|
||||||
- yarn set version stable
|
- yarn set version stable
|
||||||
- yarn install
|
- yarn install
|
||||||
- yarn build
|
- yarn build:production
|
||||||
volumes:
|
volumes:
|
||||||
- name: yarnrc
|
- name: yarnrc
|
||||||
path: /drone/auth/.yarnrc.yml
|
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 npm publish
|
- 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:
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
babel.config.*
|
babel.config.*
|
||||||
jest.config.*
|
jest.config.*
|
||||||
src
|
src
|
||||||
tsconfig.json
|
tsconfig*.json
|
||||||
tslint.json
|
tslint.json
|
||||||
|
|||||||
@@ -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/",
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
"rootDirs": ["./", "src/"],
|
"rootDirs": ["./", "src/"],
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"sourceMap": false
|
"sourceMap": true,
|
||||||
|
"removeComments": false
|
||||||
},
|
},
|
||||||
"include": ["src"]
|
"include": ["src"]
|
||||||
}
|
}
|
||||||
|
|||||||
17
tsconfig.production.json
Normal file
17
tsconfig.production.json
Normal 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"]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user