mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-20 22:07:15 +00:00
chore: add postinstall script
This commit is contained in:
parent
f2d9b29baa
commit
4e73882bf1
4
.github/workflows/extension-test.yml
vendored
4
.github/workflows/extension-test.yml
vendored
@ -25,8 +25,6 @@ jobs:
|
|||||||
cache-dependency-path: "frontend/extension/pnpm-lock.yaml"
|
cache-dependency-path: "frontend/extension/pnpm-lock.yaml"
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
working-directory: frontend/extension
|
working-directory: frontend/extension
|
||||||
- run: pnpm type-gen
|
|
||||||
working-directory: frontend/extension
|
|
||||||
- name: Run eslint check
|
- name: Run eslint check
|
||||||
run: pnpm lint
|
run: pnpm lint
|
||||||
working-directory: frontend/extension
|
working-directory: frontend/extension
|
||||||
@ -45,8 +43,6 @@ jobs:
|
|||||||
cache-dependency-path: "frontend/extension/pnpm-lock.yaml"
|
cache-dependency-path: "frontend/extension/pnpm-lock.yaml"
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
working-directory: frontend/extension
|
working-directory: frontend/extension
|
||||||
- run: pnpm type-gen
|
|
||||||
working-directory: frontend/extension
|
|
||||||
- name: Run extension build
|
- name: Run extension build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
working-directory: frontend/extension
|
working-directory: frontend/extension
|
||||||
|
4
.github/workflows/frontend-test.yml
vendored
4
.github/workflows/frontend-test.yml
vendored
@ -25,8 +25,6 @@ jobs:
|
|||||||
cache-dependency-path: "frontend/web/pnpm-lock.yaml"
|
cache-dependency-path: "frontend/web/pnpm-lock.yaml"
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
working-directory: frontend/web
|
working-directory: frontend/web
|
||||||
- run: pnpm type-gen
|
|
||||||
working-directory: frontend/web
|
|
||||||
- name: Run eslint check
|
- name: Run eslint check
|
||||||
run: pnpm lint
|
run: pnpm lint
|
||||||
working-directory: frontend/web
|
working-directory: frontend/web
|
||||||
@ -45,8 +43,6 @@ jobs:
|
|||||||
cache-dependency-path: "frontend/web/pnpm-lock.yaml"
|
cache-dependency-path: "frontend/web/pnpm-lock.yaml"
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
working-directory: frontend/web
|
working-directory: frontend/web
|
||||||
- run: pnpm type-gen
|
|
||||||
working-directory: frontend/web
|
|
||||||
- name: Run frontend build
|
- name: Run frontend build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
working-directory: frontend/web
|
working-directory: frontend/web
|
||||||
|
@ -6,7 +6,7 @@ COPY . .
|
|||||||
|
|
||||||
WORKDIR /frontend-build/frontend/web
|
WORKDIR /frontend-build/frontend/web
|
||||||
|
|
||||||
RUN corepack enable && pnpm i --frozen-lockfile && pnpm type-gen
|
RUN corepack enable && pnpm i --frozen-lockfile
|
||||||
|
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"package": "plasmo package",
|
"package": "plasmo package",
|
||||||
"lint": "eslint --ext .js,.ts,.tsx, src",
|
"lint": "eslint --ext .js,.ts,.tsx, src",
|
||||||
"lint-fix": "eslint --ext .js,.ts,.tsx, src --fix",
|
"lint-fix": "eslint --ext .js,.ts,.tsx, src --fix",
|
||||||
"type-gen": "cd ../../proto && buf generate"
|
"postinstall": "cd ../../proto && buf generate"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": "^11.11.3",
|
"@emotion/react": "^11.11.3",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"serve": "vite preview",
|
"serve": "vite preview",
|
||||||
"lint": "eslint --ext .js,.ts,.tsx, src",
|
"lint": "eslint --ext .js,.ts,.tsx, src",
|
||||||
"lint-fix": "eslint --ext .js,.ts,.tsx, src --fix",
|
"lint-fix": "eslint --ext .js,.ts,.tsx, src --fix",
|
||||||
"type-gen": "cd ../../proto && buf generate"
|
"postinstall": "cd ../../proto && buf generate"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": "^11.11.3",
|
"@emotion/react": "^11.11.3",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user