Browse Source

refactor: project scripts

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
5069c8be28
  1. 14
      package.json

14
package.json

@ -33,21 +33,15 @@
},
"scripts": {
"bootstrap": "pnpm --filter=nocodb-sdk install --ignore-scripts && pnpm --filter=nocodb-sdk run build && pnpm --filter=nocodb --filter=nc-gui install",
"start:frontend": "pnpm --filter=nc-gui run dev",
"start:backend": "pnpm --filter=nocodb run start",
"lint:staged:playwright": "cd ./tests/playwright; npx lint-staged; cd -",
"build:common": "cd ./packages/nocodb-sdk; pnpm install; pnpm run build",
"install:common": "cd packages/nocodb-legacy; pnpm install ../nocodb-sdk; cd ../nc-gui; pnpm install ../nocodb-sdk",
"start:web": "pnpm run build:common ; cd ./packages/nc-gui; pnpm install ../nocodb-sdk; pnpm install; ANT_MESSAGE_DURATION=0.5 pnpm run dev",
"test:travis": "git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna run test:travis --since",
"lerna:install": "git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna bootstrap --ignore nc-cli --since",
"updated:xc-migrator": "lerna run publish --scope xc-migrator && lerna run xc && lerna publish && pnpm install -f xc-cli",
"doc": "lerna run doc",
"install:local:dep": "cd packages/nc-lib-gui;pnpm uninstall -S xc-lib;rm package-lock.json; pnpm i ../../../xc-lib-private; cd ../xc-instant;pnpm uninstall -S xc-lib xc-lib-gui;pnpm i ../../../xc-lib-private;pnpm i ../xc-lib-gui",
"install:pnpm:dep": "cd packages/nc-lib-gui;pnpm uninstall -S xc-lib; pnpm i -S xc-lib@latest; cd ../xc-instant;pnpm uninstall -S xc-lib xc-lib-gui;pnpm i -S xc-lib@latest xc-lib-gui@latest;pnpm i ../xc-lib-gui",
"prepare": "husky install",
"start:mysql": "docker-compose -f ./tests/playwright/scripts/docker-compose-mysql-playwright.yml up -d",
"stop:mysql": "docker-compose -f ./tests/playwright/scripts/docker-compose-mysql-playwright.yml down",
"start:pg": "docker-compose -f ./tests/playwright/scripts/docker-compose-pg.yml up -d",
"stop:pg": "docker-compose -f ./tests/playwright/scripts/docker-compose-pg.yml down",
"prepare": "husky install",
"preinstall": "npx only-allow pnpm",
"install:local-sdk": "node scripts/installLocalSdk.js"
},
"dependencies": {

Loading…
Cancel
Save