bba95ce034
fixes https://github.com/TryGhost/DevOps/issues/123 - ember-auto-import supports webpack v5 and v5 supports persistent file caching - this stores a cache of built files across warm boots, so Admin built via `yarn dev` should be faster next time - also ensures that recursive `node_modules` folders are emptied upon `yarn fix`, as the webpack cache is stored in `node_modules` under `ghost/admin` - locally, this speeds up a warm build by 2x (!)
123 lines
3.5 KiB
JSON
123 lines
3.5 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/*",
|
|
"apps/*"
|
|
],
|
|
"monorepo": {
|
|
"public": false,
|
|
"internalPackages": true,
|
|
"repo": "https://github.com/TryGhost/Ghost",
|
|
"scope": "@tryghost"
|
|
},
|
|
"eslintIgnore": [
|
|
"**/node_modules/**"
|
|
],
|
|
"scripts": {
|
|
"archive": "nx run ghost:archive",
|
|
"build": "nx run-many -t build",
|
|
"build:clean": "nx reset && rimraf -g 'ghost/*/build' && rimraf -g 'ghost/*/tsconfig.tsbuildinfo'",
|
|
"dev:debug": "DEBUG_COLORS=true DEBUG=@tryghost*,ghost:* yarn dev",
|
|
"dev:admin": "node .github/scripts/dev.js --admin",
|
|
"dev:ghost": "node .github/scripts/dev.js --ghost",
|
|
"dev": "node .github/scripts/dev.js",
|
|
"fix": "yarn cache clean && rimraf -g '**/node_modules' && yarn",
|
|
"knex-migrator": "yarn workspace ghost run knex-migrator",
|
|
"setup": "yarn && git submodule update --init && NODE_ENV=development node .github/scripts/setup.js",
|
|
"reset:data": "cd ghost/core && node index.js generate-data --clear-database --quantities members:100,posts:1 --seed 123",
|
|
"docker:reset": "docker-compose -f .github/scripts/docker-compose.yml down -v && docker-compose -f .github/scripts/docker-compose.yml up -d --wait",
|
|
"lint": "nx run-many -t lint",
|
|
"test": "nx run-many -t test",
|
|
"test:unit": "nx run-many -t test:unit",
|
|
"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\"",
|
|
"prepare": "husky install .github/hooks"
|
|
},
|
|
"resolutions": {
|
|
"@elastic/elasticsearch": "8.5.0",
|
|
"@tryghost/errors": "1.2.26",
|
|
"@tryghost/logging": "2.4.8",
|
|
"moment": "2.24.0",
|
|
"moment-timezone": "0.5.23"
|
|
},
|
|
"renovate": {
|
|
"extends": [
|
|
"github>tryghost/renovate-config:quiet"
|
|
],
|
|
"rebaseWhen": "never",
|
|
"ignoreDeps": [
|
|
"got",
|
|
"intl-messageformat",
|
|
"moment",
|
|
"moment-timezone",
|
|
"simple-dom",
|
|
"ember-drag-drop",
|
|
"normalize.css",
|
|
"validator",
|
|
"codemirror",
|
|
"faker",
|
|
"ember-cli-code-coverage",
|
|
"ember-cli-terser"
|
|
],
|
|
"ignorePaths": [
|
|
"test",
|
|
"ghost/admin/lib/koenig-editor/package.json"
|
|
],
|
|
"packageRules": [
|
|
{
|
|
"groupName": "ember-basic-dropdown addons",
|
|
"packagePatterns": [
|
|
"^ember-basic",
|
|
"^ember-power"
|
|
]
|
|
},
|
|
{
|
|
"groupName": "ember core",
|
|
"packageNames": [
|
|
"ember-source",
|
|
"ember-cli",
|
|
"ember-data"
|
|
]
|
|
},
|
|
{
|
|
"groupName": "disable css",
|
|
"matchFiles": [
|
|
"ghost/admin/package.json"
|
|
],
|
|
"packagePatterns": [
|
|
"^postcss",
|
|
"^css"
|
|
],
|
|
"packageNames": [
|
|
"autoprefixer",
|
|
"ember-cli-postcss"
|
|
],
|
|
"enabled": false
|
|
}
|
|
]
|
|
},
|
|
"lint-staged": {
|
|
"*.js": "eslint"
|
|
},
|
|
"devDependencies": {
|
|
"chalk": "4.1.2",
|
|
"concurrently": "8.2.2",
|
|
"eslint": "8.44.0",
|
|
"eslint-plugin-ghost": "3.4.0",
|
|
"eslint-plugin-react": "7.33.0",
|
|
"husky": "8.0.3",
|
|
"lint-staged": "14.0.1",
|
|
"nx": "16.8.1",
|
|
"rimraf": "5.0.5",
|
|
"ts-node": "10.9.2",
|
|
"typescript": "5.3.3"
|
|
}
|
|
}
|