0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-04 02:01:58 -05:00

Improved functionality of yarn setup

- we need to initialize the submodules in case they weren't done when
  cloning, otherwise Casper will be missing
- we can avoid doing an initial build because it'll get wiped when we do
  `yarn dev` anyway
This commit is contained in:
Daniel Lockyer 2022-08-12 09:36:48 +02:00
parent ea39ee3269
commit 5f514a7d1b
No known key found for this signature in database
GPG key ID: D21186F0B47295AD
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@
"license": "MIT",
"scripts": {
"start": "node index",
"setup": "knex-migrator init && grunt symlink && yarn build || (exit 0)",
"setup": "knex-migrator init && grunt symlink || (exit 0)",
"build": "yarn workspace ghost-admin run build",
"test": "yarn test:unit",
"test:single": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js --timeout=60000",

View file

@ -26,7 +26,7 @@
"fix": "yarn cache clean && rm -rf node_modules && yarn",
"knex-migrator": "yarn workspace ghost run knex-migrator",
"lint": "yarn workspaces run lint",
"setup": "yarn && yarn workspace ghost run setup",
"setup": "yarn && yarn workspace ghost run setup && git submodule update --init",
"start": "yarn workspace ghost run start",
"test": "yarn workspaces run test",
"main": "yarn main:monorepo && yarn main:submodules",