Added yarn setup to root scripts

- we had this working in the Ghost repo before switching to a monorepo
- this commit adds a `setup` script to the root package.json so we can
  maintain the functionality
This commit is contained in:
Daniel Lockyer 2022-07-24 12:46:07 +02:00
parent 184149492d
commit 57d47a79f9
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD
2 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,7 @@
"start": "node index",
"dev": "grunt dev",
"dev:debug": "DEBUG=ghost:* grunt dev",
"setup": "yarn install && knex-migrator init && grunt symlink && grunt init || (exit 0)",
"setup": "knex-migrator init && grunt symlink && grunt init || (exit 0)",
"main": "grunt shell:main && grunt subgrunt:init",
"build": "grunt build",
"test": "yarn test:unit",

View File

@ -18,6 +18,7 @@
"fix:backend": "yarn cache clean && rm -rf node_modules && yarn",
"fix": "yarn fix:admin && yarn fix:backend",
"lint": "yarn workspaces run lint",
"setup": "yarn && yarn workspace ghost run setup",
"start": "yarn workspace ghost run start",
"test": "yarn workspaces run test",
"main": "git pull && yarn && yarn workspace ghost run main"