c376587288
- since we've turned the repo into a monorepo, the `yarn main` scripts have lived in their original place under `ghost/core` package.json and Gruntfile.js - for one, we want to remove grunt because it's terribly old and our use is hacked together - secondly, `yarn main` applies to the monorepo + submodules as a whole, and not just the Ghost core folder - this commit extracts the functionality into yarn scripts in the top-level and removes the dependency that was required
62 lines
1.8 KiB
JSON
62 lines
1.8 KiB
JSON
{
|
|
"name": "ghost-monorepo",
|
|
"version": "0.0.0-private",
|
|
"description": "The professional publishing platform",
|
|
"private": true,
|
|
"repository": "https://github.com/TryGhost/Ghost",
|
|
"author": "Ghost Foundation",
|
|
"license": "MIT",
|
|
"workspaces": [
|
|
"ghost/*"
|
|
],
|
|
"eslintIgnore": [
|
|
"**/node_modules/**"
|
|
],
|
|
"scripts": {
|
|
"dev": "yarn workspace ghost run dev",
|
|
"fix:admin": "yarn cache clean && cd ghost/core/core/admin && rm -rf node_modules tmp dist && yarn && cd ../../../..",
|
|
"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": "yarn main:monorepo && yarn main:submodules",
|
|
"main:monorepo": "git checkout main && git pull ${GHOST_UPSTREAM:-origin} main && yarn && yarn workspace ghost run grunt subgrunt:init",
|
|
"main:submodules": "git submodule sync && git submodule update && git submodule foreach \"git checkout main && git pull ${GHOST_UPSTREAM:-origin} main && yarn\""
|
|
},
|
|
"resolutions": {
|
|
"@tryghost/logging": "2.2.3",
|
|
"moment": "2.24.0",
|
|
"moment-timezone": "0.5.23"
|
|
},
|
|
"renovate": {
|
|
"extends": [
|
|
"@tryghost:quietJS",
|
|
"@tryghost:disableTryGhostAutomerge",
|
|
"@tryghost:groupTestLint",
|
|
"@tryghost:groupCSS",
|
|
"@tryghost:groupBuildTools"
|
|
],
|
|
"ignoreDeps": [
|
|
"got",
|
|
"intl-messageformat",
|
|
"moment",
|
|
"moment-timezone",
|
|
"oembed-parser",
|
|
"simple-dom"
|
|
],
|
|
"ignorePaths": [
|
|
"test"
|
|
],
|
|
"packageRules": [
|
|
{
|
|
"packagePatterns": [
|
|
"metascraper"
|
|
],
|
|
"groupName": "metascraper"
|
|
}
|
|
]
|
|
}
|
|
}
|