Skip to content

Commit

Permalink
refactor: use yarn workspace replace lerna exec --scope
Browse files Browse the repository at this point in the history
  • Loading branch information
little-buddy committed Dec 4, 2023
1 parent ebe3c1f commit a1303b9
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 2,663 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
steps.cache-cypress-binary.outputs.cache-hit != 'true'
run: |
corepack enable
yarn
yarn bootstrap
# cypress-run:
# name: Cypress run
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: |
corepack enable
yarn install --frozen-lockfile
yarn bootstrap
- name: Lint
run: |
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: |
corepack enable
yarn install --frozen-lockfile
yarn bootstrap
- name: Build electron
run: |
Expand Down
28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
nodeLinker: node-modules
npmRegistryServer: 'https://registry.npmmirror.com'

npmRegistryServer: "https://registry.npmmirror.com"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
"author": "Linkontoask",
"description": "Cross-platform copyright-free music platform",
"scripts": {
"bootstrap": "npx lerna@3.22.1 bootstrap",
"bootstrap": "yarn workspaces foreach install",
"dev": "concurrently -r \"yarn dev:api\" \"yarn generate:theme\" \"yarn dev:web\"",
"dev:web": "cross-env NODE_ENV=development vite --mode browser",
"dev:api": "lerna exec --scope @radishes/api -- yarn run dev",
"dev:api": "yarn workspace @radishes/api run dev",
"dev:electron": "concurrently -r \"yarn generate:theme\" \"electron-vite dev --mode electron.dev --outDir dist-electron\"",
"build": "cross-env NODE_ENV=production vite build --mode browser",
"build:electron": "npx electron-vite build --mode electron.build --outDir dist-electron",
"build:electron:win": "node script/build.js --win",
"build:electron:linux": "node script/build.js --linux",
"build:electron:macos": "node script/build.js --mac",
"build:api": "lerna exec --scope @radishes/api -- yarn run build",
"build:api": "yarn workspace @radishes/api run build",
"pkg": "npx rimraf dist-electron && yarn build:electron && npx electron-builder --config .electron-builder.config.js",
"test": "lerna run test --stream",
"test:unit": "vue-cli-service test:unit",
Expand All @@ -32,7 +32,7 @@
"analyze": "npx vite-bundle-visualizer",
"log": "conventional-changelog -p eslint -i CHANGELOG.md -s -r 0",
"envinfo": "npx envinfo --system --npmPackages '{vite,@vitejs/*}' --binaries --browsers",
"postinstall": "electron-builder install-app-deps && cd packages/api && yarn install",
"postinstall": "electron-builder install-app-deps",
"postuninstall": "electron-builder install-app-deps"
},
"gitHooks": {
Expand Down
Loading

0 comments on commit a1303b9

Please sign in to comment.