Skip to content

Commit

Permalink
update drone.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eikhr committed Aug 8, 2023
1 parent 9d667bd commit 0118778
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
28 changes: 27 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,17 @@ steps:
- apk --no-cache add curl
- yarn --frozen-lockfile --cache-folder /tmp/cache

- name: build_packages
image: node:16-alpine
when:
event: [push]
branch:
exclude: [build]
depends_on:
- setup
commands:
- yarn build:packages

- name: build_server
image: node:16-alpine
when:
Expand All @@ -162,6 +173,7 @@ steps:
exclude: [build]
depends_on:
- setup
- build_packages
commands:
- yarn build:server

Expand All @@ -173,6 +185,7 @@ steps:
exclude: [build]
depends_on:
- setup
- build_packages
commands:
- yarn build:client

Expand All @@ -186,6 +199,7 @@ steps:
- setup
commands:
- yarn test
- yarn test:packages

- name: lint
image: node:16-alpine
Expand All @@ -197,6 +211,7 @@ steps:
- setup
commands:
- yarn lint
- yarn lint:packages

- name: typescript
image: node:16-slim
Expand All @@ -210,6 +225,17 @@ steps:
- yarn types
failure: ignore

- name: typescript_packages
image: node:16-slim
when:
event: [ push ]
branch:
exclude: [ build ]
depends_on:
- setup
commands:
- yarn types:packages

- name: install_cypress
image: node:16-alpine
when:
Expand Down Expand Up @@ -335,6 +361,6 @@ image_pull_secrets:

---
kind: signature
hmac: 06c35cbf3b24429bab4079e5b5574ed3752fde1390d9dab94010a800b3909863
hmac: fafa6e92da6f19c099b9448c269a1cf0aee67f2b99c5a475aa0dc82c0892aaa1

...
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"ssr:staging": "API_URL=https://lego-staging.abakus.no/api/v1 BASE_URL=https://lego-staging.abakus.no WS_URL=wss://ws-staging.abakus.no CAPTCHA_KEY=1x00000000000000000000AA yarn ssr",
"ssr": "echo \"Remember that SSR does not have hot reloading, build with \"yarn build\"\" && node ./dist/server.js",
"build": "yarn build:packages && concurrently \"yarn run build:server\" \"yarn run build:client\"",
"build:packages": "yarn workspace @webkom/lego-bricks build",
"build:packages": "yarn workspaces run build",
"build:all": "concurrently \"yarn build:server\" \"yarn build:client\" \"yarn build:dll\"",
"build:client": "webpack --config config/webpack.client.js --mode=production",
"build:server": "webpack --config config/webpack.server.js --mode=production",
Expand All @@ -20,12 +20,15 @@
"test": "NODE_ENV=test jest",
"test:coverage": "yarn run test -- --coverage",
"test:watch": "yarn run test --watch",
"test:packages": "yarn workspaces run test",
"lint": "yarn run lint:js && yarn run lint:css && yarn run lint:prettier",
"lint:js": "eslint . --ignore-path .prettierignore --ignore-pattern packages --rule '@typescript-eslint/no-explicit-any: 0'",
"lint:css": "stylelint './app/**/*.css'",
"lint:prettier": "prettier '**/*.{ts,tsx,js,css,md,json}' --check",
"lint:packages": "yarn workspaces run lint",
"prettier": "prettier '**/*.{ts,tsx,js,css,md,json}' --write",
"types": "tsc"
"types": "tsc",
"types:packages": "yarn workspaces run types"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/lego-bricks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"lint:js": "eslint 'src/**/*.{js,ts,tsx}'",
"lint:prettier": "prettier '**/*.{ts,tsx,js,css,md,json}' --check",
"prettier": "prettier '**/*.{ts,tsx,js,css,md,json}' --write",
"test": "vitest",
"test:run": "vitest run",
"test": "vitest run",
"test:watch": "vitest",
"types": "tsc"
},
"peerDependencies": {
Expand Down

0 comments on commit 0118778

Please sign in to comment.