ad209f3a7d
- this commit switches our `yarn dev` workflow from heavily relying on Grunt, to using `nodemon` and `concurrently` - we're doing this to reduce reliance on Grunt, but also to fix several nits with the way `yarn dev` works in the monorepo - we now use `nodemon` to run the Ghost backend, and it should auto-refresh whenever you change a file in any of the packages (except `admin`) - we use `concurrently` to simultaneously run `ghost` and `admin` at the same time. it seems to handle process cleanup well and has nice colored prefixes to help with differentiating between log output - this commit ends up removing a handful of Grunt dependencies and reduces the functionality stored in the Gruntfile - on the whole, it should keep existing functionality but there may be some small underlying changes to get used to
106 lines
2.9 KiB
JSON
106 lines
2.9 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/*"
|
|
],
|
|
"monorepo": {
|
|
"public": false,
|
|
"internalPackages": true,
|
|
"repo": "https://github.com/TryGhost/Ghost",
|
|
"scope": "@tryghost"
|
|
},
|
|
"eslintIgnore": [
|
|
"**/node_modules/**"
|
|
],
|
|
"scripts": {
|
|
"dev:debug": "DEBUG=@tryghost*,ghost:* yarn dev",
|
|
"dev:admin": "yarn workspace ghost run dev:admin",
|
|
"dev:ghost": "nodemon -q -i ghost/admin -i ghost/core/content -i ghost/core/core/built ghost/core/index.js",
|
|
"dev": "concurrently -c \"blue,green\" --kill-others -n ghost,admin \"yarn dev:ghost\" \"yarn dev:admin\"",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"ember-drag-drop",
|
|
"normalize.css",
|
|
"validator",
|
|
"codemirror",
|
|
"faker"
|
|
],
|
|
"ignorePaths": [
|
|
"test",
|
|
"ghost/admin/lib/koenig-editor/package.json"
|
|
],
|
|
"packageRules": [
|
|
{
|
|
"packagePatterns": [
|
|
"@tryghost"
|
|
],
|
|
"groupName": "@tryghost"
|
|
},
|
|
{
|
|
"packagePatterns": [
|
|
"metascraper"
|
|
],
|
|
"groupName": "metascraper"
|
|
},
|
|
{
|
|
"groupName": "ember-basic-dropdown addons",
|
|
"packagePatterns": ["^ember-basic", "^ember-power"]
|
|
},
|
|
{
|
|
"groupName": "ember core",
|
|
"packageNames": ["ember-source", "ember-cli", "ember-data"]
|
|
},
|
|
{
|
|
"groupName": "disable css",
|
|
"packagePatterns": [
|
|
"^postcss",
|
|
"^css"
|
|
],
|
|
"packageNames": [
|
|
"autoprefixer",
|
|
"ember-cli-postcss"
|
|
],
|
|
"enabled": false
|
|
}
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"concurrently": "7.3.0",
|
|
"nodemon": "2.0.19"
|
|
}
|
|
}
|