Converted Ghost repo into a monorepo
refs https://github.com/TryGhost/Toolbox/issues/354 - this commit turns the Ghost repo into a monorepo so we can bring our internal packages back in, which makes life easier when working on Ghost
This commit is contained in:
parent
516b527c65
commit
3d989eba23
4
.github/CODEOWNERS
vendored
4
.github/CODEOWNERS
vendored
@ -1,4 +1,4 @@
|
|||||||
# All database migrations must be reviewed by devops
|
# All database migrations must be reviewed by devops
|
||||||
|
|
||||||
/core/server/data/schema/ @daniellockyer
|
/ghost/core/core/server/data/schema/ @daniellockyer
|
||||||
/core/server/data/migrations/ @daniellockyer
|
/ghost/core/core/server/data/migrations/ @daniellockyer
|
||||||
|
3
.github/workflows/browser-tests.yml
vendored
3
.github/workflows/browser-tests.yml
vendored
@ -10,6 +10,9 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ghost/core
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
|
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
@ -17,6 +17,9 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ghost/core
|
||||||
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
||||||
name: Lint
|
name: Lint
|
||||||
steps:
|
steps:
|
||||||
@ -38,6 +41,9 @@ jobs:
|
|||||||
|
|
||||||
migrations:
|
migrations:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ghost/core
|
||||||
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -108,6 +114,9 @@ jobs:
|
|||||||
|
|
||||||
unit-tests:
|
unit-tests:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ghost/core
|
||||||
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -141,6 +150,9 @@ jobs:
|
|||||||
|
|
||||||
database-tests:
|
database-tests:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ghost/core
|
||||||
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -250,6 +262,9 @@ jobs:
|
|||||||
name: Ghost-CLI
|
name: Ghost-CLI
|
||||||
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ghost/core
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@ -269,19 +284,19 @@ jobs:
|
|||||||
- name: Clean Install
|
- name: Clean Install
|
||||||
run: |
|
run: |
|
||||||
DIR=$(mktemp -d)
|
DIR=$(mktemp -d)
|
||||||
ghost install local -d $DIR --zip $GITHUB_WORKSPACE/ghost.zip
|
ghost install local -d $DIR --zip $(pwd)/ghost.zip
|
||||||
|
|
||||||
- name: Latest Release
|
- name: Latest Release
|
||||||
run: |
|
run: |
|
||||||
DIR=$(mktemp -d)
|
DIR=$(mktemp -d)
|
||||||
ghost install local -d $DIR
|
ghost install local -d $DIR
|
||||||
ghost update -d $DIR --zip $GITHUB_WORKSPACE/ghost.zip
|
ghost update -d $DIR --zip $(pwd)/ghost.zip
|
||||||
|
|
||||||
- name: Update from latest v3
|
- name: Update from latest v3
|
||||||
run: |
|
run: |
|
||||||
DIR=$(mktemp -d)
|
DIR=$(mktemp -d)
|
||||||
ghost install v3 --local -d $DIR
|
ghost install v3 --local -d $DIR
|
||||||
ghost update -f -d $DIR --zip $GITHUB_WORKSPACE/ghost.zip
|
ghost update -f -d $DIR --zip $(pwd)/ghost.zip
|
||||||
|
|
||||||
- name: Print debug logs
|
- name: Print debug logs
|
||||||
if: failure()
|
if: failure()
|
||||||
|
63
.gitignore
vendored
63
.gitignore
vendored
@ -68,65 +68,4 @@ typings/
|
|||||||
# OSX
|
# OSX
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
# Custom ignore starts here
|
# Ghost Custom
|
||||||
|
|
||||||
b-cov
|
|
||||||
*.csv
|
|
||||||
*.dat
|
|
||||||
*.out
|
|
||||||
*.gz
|
|
||||||
|
|
||||||
!test/utils/fixtures/**/*.csv
|
|
||||||
|
|
||||||
results
|
|
||||||
|
|
||||||
package-lock.json
|
|
||||||
bower_components
|
|
||||||
.bowerrc
|
|
||||||
projectFilesBackup
|
|
||||||
|
|
||||||
# TernJS
|
|
||||||
.tern-project
|
|
||||||
|
|
||||||
# Ghost DB file
|
|
||||||
*.db
|
|
||||||
*.db-journal
|
|
||||||
|
|
||||||
.build
|
|
||||||
.dist
|
|
||||||
.tmp
|
|
||||||
|
|
||||||
/core/server/data/export/exported*
|
|
||||||
/content/tmp/*
|
|
||||||
/content/data/*
|
|
||||||
/content/logs/*
|
|
||||||
/content/settings/*
|
|
||||||
/content/apps/**/*
|
|
||||||
/content/themes/**/*
|
|
||||||
/content/images/**/*
|
|
||||||
/content/media/**/*
|
|
||||||
/content/files/**/*
|
|
||||||
/content/public/*
|
|
||||||
/content/adapters/storage/**/*
|
|
||||||
/content/adapters/scheduling/**/*
|
|
||||||
!/content/themes/casper
|
|
||||||
!/README.md
|
|
||||||
!/content/**/README.md
|
|
||||||
|
|
||||||
# Changelog, which is autogenerated, not committed
|
|
||||||
CHANGELOG.md
|
|
||||||
|
|
||||||
# Test generated files
|
|
||||||
test/functional/*.png
|
|
||||||
test/coverage
|
|
||||||
|
|
||||||
# ignore all custom json files for config
|
|
||||||
/config.*.json
|
|
||||||
|
|
||||||
# Built asset files
|
|
||||||
/core/built
|
|
||||||
/core/frontend/public/ghost.min.css
|
|
||||||
/core/server/web/admin/views/*.html
|
|
||||||
|
|
||||||
# Caddyfile - for local development with ssl + caddy
|
|
||||||
Caddyfile
|
|
||||||
|
12
.gitmodules
vendored
12
.gitmodules
vendored
@ -1,6 +1,6 @@
|
|||||||
[submodule "content/themes/casper"]
|
[submodule "ghost/core/content/themes/casper"]
|
||||||
path = content/themes/casper
|
path = ghost/core/content/themes/casper
|
||||||
url = ../../TryGhost/Casper.git
|
url = https://github.com/TryGhost/Casper/
|
||||||
[submodule "core/admin"]
|
[submodule "ghost/core/core/admin"]
|
||||||
path = core/admin
|
path = ghost/core/core/admin
|
||||||
url = ../../TryGhost/Admin.git
|
url = https://github.com/TryGhost/Admin/
|
||||||
|
132
ghost/core/.gitignore
vendored
Normal file
132
ghost/core/.gitignore
vendored
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
# Node template
|
||||||
|
|
||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|
||||||
|
# Runtime data
|
||||||
|
pids
|
||||||
|
*.pid
|
||||||
|
*.seed
|
||||||
|
*.pid.lock
|
||||||
|
|
||||||
|
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||||
|
lib-cov
|
||||||
|
|
||||||
|
# Coverage directory used by tools like istanbul
|
||||||
|
coverage
|
||||||
|
|
||||||
|
# nyc test coverage
|
||||||
|
.nyc_output
|
||||||
|
|
||||||
|
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||||
|
.grunt
|
||||||
|
|
||||||
|
# Bower dependency directory (https://bower.io/)
|
||||||
|
bower_components
|
||||||
|
|
||||||
|
# node-waf configuration
|
||||||
|
.lock-wscript
|
||||||
|
|
||||||
|
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||||
|
build/Release
|
||||||
|
|
||||||
|
# Dependency directories
|
||||||
|
node_modules/
|
||||||
|
jspm_packages/
|
||||||
|
|
||||||
|
# Typescript v1 declaration files
|
||||||
|
typings/
|
||||||
|
|
||||||
|
# Optional npm cache directory
|
||||||
|
.npm
|
||||||
|
|
||||||
|
# Optional eslint cache
|
||||||
|
.eslintcache
|
||||||
|
|
||||||
|
# Optional REPL history
|
||||||
|
.node_repl_history
|
||||||
|
|
||||||
|
# Output of 'npm pack'
|
||||||
|
*.tgz
|
||||||
|
|
||||||
|
# Yarn Integrity file
|
||||||
|
.yarn-integrity
|
||||||
|
|
||||||
|
# dotenv environment variables file
|
||||||
|
.env
|
||||||
|
|
||||||
|
# IDE
|
||||||
|
.idea/*
|
||||||
|
*.iml
|
||||||
|
*.sublime-*
|
||||||
|
.vscode/*
|
||||||
|
|
||||||
|
# OSX
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# Custom ignore starts here
|
||||||
|
|
||||||
|
b-cov
|
||||||
|
*.csv
|
||||||
|
*.dat
|
||||||
|
*.out
|
||||||
|
*.gz
|
||||||
|
|
||||||
|
!test/utils/fixtures/**/*.csv
|
||||||
|
|
||||||
|
results
|
||||||
|
|
||||||
|
package-lock.json
|
||||||
|
bower_components
|
||||||
|
.bowerrc
|
||||||
|
projectFilesBackup
|
||||||
|
|
||||||
|
# TernJS
|
||||||
|
.tern-project
|
||||||
|
|
||||||
|
# Ghost DB file
|
||||||
|
*.db
|
||||||
|
*.db-journal
|
||||||
|
|
||||||
|
.build
|
||||||
|
.dist
|
||||||
|
.tmp
|
||||||
|
|
||||||
|
/core/server/data/export/exported*
|
||||||
|
/content/tmp/*
|
||||||
|
/content/data/*
|
||||||
|
/content/logs/*
|
||||||
|
/content/settings/*
|
||||||
|
/content/apps/**/*
|
||||||
|
/content/themes/**/*
|
||||||
|
/content/images/**/*
|
||||||
|
/content/media/**/*
|
||||||
|
/content/files/**/*
|
||||||
|
/content/public/*
|
||||||
|
/content/adapters/storage/**/*
|
||||||
|
/content/adapters/scheduling/**/*
|
||||||
|
!/content/themes/casper
|
||||||
|
!/README.md
|
||||||
|
!/content/**/README.md
|
||||||
|
|
||||||
|
# Changelog, which is autogenerated, not committed
|
||||||
|
CHANGELOG.md
|
||||||
|
|
||||||
|
# Test generated files
|
||||||
|
test/functional/*.png
|
||||||
|
test/coverage
|
||||||
|
|
||||||
|
# ignore all custom json files for config
|
||||||
|
/config.*.json
|
||||||
|
|
||||||
|
# Built asset files
|
||||||
|
/core/built
|
||||||
|
/core/frontend/public/ghost.min.css
|
||||||
|
/core/server/web/admin/views/*.html
|
||||||
|
|
||||||
|
# Caddyfile - for local development with ssl + caddy
|
||||||
|
Caddyfile
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user