-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Expand file tree
/
Copy pathpackage.json
More file actions
138 lines (138 loc) · 5.8 KB
/
package.json
File metadata and controls
138 lines (138 loc) · 5.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"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/*",
"e2e",
"apps/*"
],
"monorepo": {
"public": false,
"internalPackages": true,
"repo": "https://github.com/TryGhost/Ghost",
"scope": "@tryghost"
},
"eslintIgnore": [
"**/node_modules/**"
],
"scripts": {
"archive": "nx run ghost:archive",
"build:production": "nx run ghost:build:tsc && nx run ghost:build:assets && nx run @tryghost/admin:build",
"build": "nx run-many -t build",
"build:clean": "nx reset && rimraf -g 'ghost/*/build' && rimraf -g 'ghost/*/tsconfig.tsbuildinfo'",
"clean:hard": "node ./.github/scripts/clean.js",
"dev": "nx run ghost-monorepo:docker:dev",
"dev:mailgun": "DEV_COMPOSE_FILES='-f compose.dev.mailgun.yaml' nx run ghost-monorepo:docker:dev",
"dev:lexical": "EDITOR_URL=http://localhost:2368/ghost/assets/koenig-lexical/ yarn dev",
"dev:analytics": "DEV_COMPOSE_FILES='-f compose.dev.analytics.yaml' nx run ghost-monorepo:docker:dev",
"dev:storage": "DEV_COMPOSE_FILES='-f compose.dev.storage.yaml' nx run ghost-monorepo:docker:dev",
"dev:stripe": "./docker/stripe/with-stripe.sh nx run ghost-monorepo:docker:dev",
"dev:all": "DEV_COMPOSE_FILES='-f compose.dev.analytics.yaml -f compose.dev.storage.yaml' ./docker/stripe/with-stripe.sh nx run ghost-monorepo:docker:dev",
"fix": "yarn cache clean && rimraf -g '**/node_modules' && yarn && yarn nx reset",
"knex-migrator": "yarn workspace ghost run knex-migrator",
"setup": "yarn && git submodule update --init --recursive",
"reset:data": "docker exec ghost-dev bash -c 'cd /home/ghost/ghost/core && node index.js generate-data --clear-database --quantities members:1000,posts:100 --seed 123'",
"reset:data:empty": "docker exec ghost-dev bash -c 'cd /home/ghost/ghost/core && node index.js generate-data --clear-database --quantities members:0,posts:0 --seed 123'",
"reset:data:xxl": "docker exec ghost-dev bash -c 'cd /home/ghost/ghost/core && node index.js generate-data --clear-database --quantities members:2000000,posts:0,emails:0,members_stripe_customers:0,members_login_events:0,members_status_events:0 --seed 123'",
"docker:build": "docker compose -f compose.dev.yaml ${DEV_COMPOSE_FILES} build",
"docker:clean": "docker compose -f compose.dev.yaml ${DEV_COMPOSE_FILES} --profile all down -v --remove-orphans --rmi local",
"docker:down": "docker compose -f compose.dev.yaml ${DEV_COMPOSE_FILES} down",
"lint": "nx run-many -t lint",
"test": "nx run-many -t test",
"test:unit": "nx run-many -t test:unit",
"test:browser": "node ghost/core/test/scripts/browser-test-runner.js --",
"test:e2e": "yarn workspace @tryghost/e2e test",
"test:e2e:analytics": "yarn workspace @tryghost/e2e test:analytics",
"test:e2e:all": "yarn workspace @tryghost/e2e test:all",
"test:e2e:debug": "DEBUG=@tryghost/e2e:* yarn test:e2e",
"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\"",
"prepare": "husky install .github/hooks",
"tb": "tb local start && cd ghost/core/core/server/data/tinybird && tb dev",
"tb:install": "curl https://tinybird.co | sh",
"data:analytics:generate": "node ghost/core/core/server/data/tinybird/scripts/docker-analytics-manager.js generate",
"data:analytics:clear": "node ghost/core/core/server/data/tinybird/scripts/docker-analytics-manager.js clear"
},
"resolutions": {
"@tryghost/errors": "^1.3.7",
"@tryghost/logging": "2.5.0",
"jackspeak": "2.3.6",
"moment": "2.24.0",
"moment-timezone": "0.5.45",
"nwsapi": "2.2.12"
},
"lint-staged": {
"*.js": "eslint"
},
"devDependencies": {
"@actions/core": "1.11.1",
"chalk": "4.1.2",
"chokidar": "3.6.0",
"concurrently": "8.2.2",
"eslint": "8.57.1",
"eslint-plugin-ghost": "3.5.0",
"eslint-plugin-react": "7.37.5",
"husky": "8.0.3",
"inquirer": "8.2.7",
"jsonc-parser": "3.3.1",
"lint-staged": "15.5.2",
"nx": "22.0.4",
"rimraf": "5.0.10",
"typescript": "5.8.3"
},
"dependencies": {},
"nx": {
"includedScripts": [],
"targets": {
"docker:up": {
"executor": "nx:run-commands",
"options": {
"command": "docker compose -f compose.dev.yaml ${DEV_COMPOSE_FILES} up -d --force-recreate --wait"
},
"dependsOn": [
"docker:build"
]
},
"docker:down": {
"executor": "nx:run-commands",
"options": {
"command": "docker compose -f compose.dev.yaml ${DEV_COMPOSE_FILES} down"
}
},
"docker:build": {
"executor": "nx:run-commands",
"options": {
"command": "docker compose -f compose.dev.yaml ${DEV_COMPOSE_FILES} build"
}
},
"docker:dev": {
"continuous": true,
"executor": "nx:run-commands",
"options": {
"command": "trap 'docker compose -f compose.dev.yaml ${DEV_COMPOSE_FILES} down' EXIT; docker compose -f compose.dev.yaml ${DEV_COMPOSE_FILES} logs -f"
},
"dependsOn": [
"docker:up",
{
"target": "dev",
"projects": [
"@tryghost/admin",
"@tryghost/portal",
"@tryghost/comments-ui",
"@tryghost/signup-form",
"@tryghost/sodo-search",
"@tryghost/announcement-bar",
"@tryghost/parse-email-address"
]
}
]
}
}
}
}