Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Sitepackage builder #332

Draft
wants to merge 8 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/.idea/
/.mage/
/.vscode/
/public/base-packages/
/public/p/
/public/p2/
/public/satis/
Expand Down
4 changes: 4 additions & 0 deletions .mage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ magephp:
- ./public/packages.json
- ./stubs
- ./tests
- ./tmp
- ./tools
- ./var
- ./LICENSE
Expand All @@ -30,15 +31,18 @@ magephp:
- exec: { cmd: "echo \"APP_ENV=prod\" >> .env.local", desc: "Create .env.local" }
- composer/install: { flags: '--no-dev --no-progress --optimize-autoloader' }
on-deploy:
- exec: { cmd: 'mkdir -p tmp/base-packages', desc: 'Create tmp/base-packages folder' }
- exec: { cmd: 'mkdir -p var', desc: 'Create var folder' }
- exec: { cmd: 'mkdir -p var/satis', desc: 'Create var/satis folder' }
- exec: { cmd: 'test -d ~/site/shared/base-packages || mkdir -p ~/site/shared/base-packages', desc: 'Create shared/base-packages folder' }
- exec: { cmd: 'test -d ~/site/shared/public/satis || mkdir -p ~/site/shared/public/satis', desc: 'Create shared/public/satis folder' }
- fs/link: { from: "../../../shared/.env.local", to: ".env.local" }
- fs/link: { from: "../../../../shared/public/satis", to: "public/satis" }
- fs/link: { from: "satis/p", to: "public/p" }
- fs/link: { from: "satis/p2", to: "public/p2" }
- fs/link: { from: "satis/aliases.json", to: "public/aliases.json" }
- fs/link: { from: "satis/packages.json", to: "public/packages.json" }
- fs/link: { from: "../../../../../shared/base-packages", to: "tmp/base-packages/packages" }
- exec: { cmd: "sqlite3 ~/site/mage/current/var/gettr.db '.backup var/gettr.db'", desc: "Copy DB" }
- exec: { cmd: "php-restart", desc: "Restart PHP and reset OPcache" }
- exec: { cmd: "php ./bin/console doctrine:migrations:sync-metadata-storage --no-interaction", desc: "Synchronize DB Migrations" }
Expand Down
3 changes: 3 additions & 0 deletions cnf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ location ~ (?!^\/\.well-known)\/\. {
allow 213.144.157.127;
allow 2001:1620:c7f:111::/64;

# Allow GitHub for webhook testing
allow 140.82.115.0/24;

# Block abusing IPs
deny 212.95.122.212;

Expand Down
134 changes: 70 additions & 64 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,78 +34,84 @@
"ext-ctype": "*",
"ext-iconv": "*",
"ext-json": "*",
"ext-mbstring": "*",
"ext-sqlite3": "*",
"ext-zip": "*",
"ext-zlib": "*",
"composer/semver": "^3.3",
"doctrine/collections": "^1.6",
"doctrine/dbal": "^3.3",
"doctrine/doctrine-bundle": "^2.7",
"doctrine/doctrine-migrations-bundle": "^3.2",
"doctrine/inflector": "^2.0",
"doctrine/orm": "^2.12",
"doctrine/persistence": "^2.5",
"easycorp/easyadmin-bundle": "^4.3",
"erusev/parsedown": "^1.7",
"guzzlehttp/guzzle": "^7.4",
"guzzlehttp/promises": "^1.5",
"jms/serializer": "^3.17",
"jms/serializer-bundle": "^4.0.2",
"composer/composer": "^2.5.5",
"composer/semver": "^3.3.2",
"doctrine/collections": "^1.8",
"doctrine/dbal": "^3.6.2",
"doctrine/doctrine-bundle": "^2.9.1",
"doctrine/doctrine-migrations-bundle": "^3.2.2",
"doctrine/inflector": "^2.0.6",
"doctrine/orm": "^2.14.3",
"doctrine/persistence": "^2.5.7",
"easycorp/easyadmin-bundle": "^4.6.1",
"erusev/parsedown": "^1.7.4",
"guzzlehttp/guzzle": "^7.5.1",
"guzzlehttp/promises": "^1.5.2",
"jms/serializer": "^3.23",
"jms/serializer-bundle": "^4.2.0",
"knplabs/knp-menu": "^3.3",
"nelmio/api-doc-bundle": "^4.9",
"nelmio/cors-bundle": "^2.2",
"nelmio/security-bundle": "^2.5",
"nelmio/api-doc-bundle": "^4.11.1",
"nelmio/cors-bundle": "^2.3.1",
"nelmio/security-bundle": "^2.12",
"psr/log": "^2.0",
"symfony/asset": "^6.2",
"symfony/cache": "^6.2",
"symfony/cache-contracts": "^2.5",
"symfony/console": "^6.2",
"symfony/dependency-injection": "^6.2",
"symfony/dotenv": "^6.2",
"symfony/expression-language": "^6.2",
"symfony/flex": "^2.2",
"symfony/form": "^6.2",
"symfony/framework-bundle": "^6.2",
"symfony/http-client": "^6.2",
"symfony/http-foundation": "^6.2",
"symfony/http-kernel": "^6.2",
"symfony/intl": "^6.2",
"symfony/mailer": "^6.2",
"symfony/mime": "^6.2",
"symfony/monolog-bundle": "^3.1",
"symfony/notifier": "^6.2",
"symfony/process": "^6.2",
"symfony/property-access": "^6.2",
"symfony/property-info": "^6.2",
"symfony/proxy-manager-bridge": "^6.2",
"symfony/routing": "^6.2",
"symfony/runtime": "^6.2",
"symfony/security-bundle": "^6.2",
"symfony/security-http": "^6.2",
"symfony/serializer": "^6.2",
"symfony/translation": "^6.2",
"symfony/twig-bundle": "^6.2",
"symfony/validator": "^6.2",
"symfony/web-link": "^6.2",
"symfony/yaml": "^6.2",
"t3g/symfony-template-bundle": "^3.4",
"symfony/asset": "^6.2.7",
"symfony/cache": "^6.2.8",
"symfony/cache-contracts": "^2.5.2",
"symfony/console": "^6.2.8",
"symfony/dependency-injection": "^6.2.8",
"symfony/dotenv": "^6.2.8",
"symfony/expression-language": "^6.2.7",
"symfony/filesystem": "^6.2.7",
"symfony/finder": "^6.2.7",
"symfony/flex": "^2.2.5",
"symfony/form": "^6.2.8",
"symfony/framework-bundle": "^6.2.9",
"symfony/http-client": "^6.2.9",
"symfony/http-foundation": "^6.2.8",
"symfony/http-kernel": "^6.2.9",
"symfony/intl": "^6.2.9",
"symfony/mailer": "^6.2.8",
"symfony/mime": "^6.2.7",
"symfony/monolog-bundle": "^3.8",
"symfony/notifier": "^6.2.8",
"symfony/options-resolver": "^6.2.7",
"symfony/process": "^6.2.8",
"symfony/property-access": "^6.2.8",
"symfony/property-info": "^6.2.8",
"symfony/proxy-manager-bridge": "^6.2.7",
"symfony/routing": "^6.2.8",
"symfony/runtime": "^6.2.8",
"symfony/security-bundle": "^6.2.8",
"symfony/security-http": "^6.2.8",
"symfony/serializer": "^6.2.8",
"symfony/translation": "^6.2.8",
"symfony/twig-bundle": "^6.2.7",
"symfony/validator": "^6.2.8",
"symfony/web-link": "^6.2.7",
"symfony/yaml": "^6.2.7",
"t3g/symfony-template-bundle": "^3.5",
"t3g/symfony-usercentrics-bundle": "^1.0.2 || dev-master",
"twig/extra-bundle": "^2.12 || ^3.0",
"twig/twig": "^2.12 || ^3.0"
"twig/extra-bundle": "^2.12 || ^3.5.1",
"twig/twig": "^2.12 || ^3.5.1"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8",
"doctrine/doctrine-fixtures-bundle": "^3.4",
"ergebnis/composer-normalize": "^2.28",
"fakerphp/faker": "^1.20",
"bamarni/composer-bin-plugin": "^1.8.2",
"doctrine/doctrine-fixtures-bundle": "^3.4.3",
"ergebnis/composer-normalize": "^2.30.2",
"fakerphp/faker": "^1.21",
"roave/security-advisories": "dev-latest",
"symfony/browser-kit": "^6.2",
"symfony/css-selector": "^6.2",
"symfony/debug-bundle": "^6.2",
"symfony/maker-bundle": "^1.45",
"symfony/panther": "^2.0",
"symfony/stopwatch": "^6.2",
"symfony/var-dumper": "^6.2",
"symfony/web-profiler-bundle": "^6.2"
"symfony/browser-kit": "^6.2.7",
"symfony/css-selector": "^6.2.7",
"symfony/debug-bundle": "^6.2.7",
"symfony/maker-bundle": "^1.48",
"symfony/panther": "^2.0.1",
"symfony/stopwatch": "^6.2.7",
"symfony/var-dumper": "^6.2.8",
"symfony/web-profiler-bundle": "^6.2.7"
},
"replace": {
"paragonie/random_compat": "2.*",
Expand Down
Loading