-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed XML, basic support for now; Re-enabled and modernized resources compilation! Removed undocumented assignment detection; Fixes, anonymous classes, etc
- Loading branch information
Showing
34 changed files
with
3,378 additions
and
739 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
/vendor | ||
composer.lock | ||
package-lock.json | ||
*.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,43 @@ | ||
# `cd .` is because it sometimes solves https://github.com/docker/compose/issues/7899 | ||
DOCKER_COMPOSE = cd . && docker compose | ||
|
||
DOCKER = cd . && DOCKER_UID=$(shell id -u) DOCKER_GID=$(shell id -g) docker compose | ||
|
||
console: | ||
$(DOCKER_COMPOSE) run php bash | ||
$(DOCKER) run php bash | ||
|
||
|
||
sh: | ||
make console | ||
|
||
|
||
build: | ||
$(DOCKER_COMPOSE) up -d | ||
$(DOCKER) up -d | ||
make test | ||
$(DOCKER_COMPOSE) run php composer build # see composer.json -> "scripts" section | ||
$(DOCKER) run php composer build # see composer.json -> "scripts" section | ||
|
||
|
||
test: | ||
$(DOCKER_COMPOSE) run php pest | ||
$(DOCKER) run php pest | ||
|
||
|
||
update-test-snapshots: | ||
$(DOCKER_COMPOSE) run php pest -d --update-snapshots | ||
$(DOCKER) run php pest -d --update-snapshots | ||
|
||
|
||
|
||
nuke-docker: | ||
@# Help: Nuclear option to force-remove all docker images, volumes and containers | ||
-$(DOCKER) down --volumes | ||
-$(DOCKER) rm --force --stop --volumes | ||
-docker kill $$(docker ps -q) | ||
-docker volume rm $$(docker volume ls -q) | ||
-docker rmi --force $$(docker images -a -q) | ||
# the above is always enough, but the following command would do all of that | ||
# (and more!) and prune ALL cached images so they will have to be re-downloaded: | ||
# -docker system prune -f | ||
|
||
|
||
|
||
down-for-good: | ||
@# Help: Stop docker and delete its volumes | ||
-$(DOCKER) rm --force --stop --volumes | ||
-$(DOCKER) down --volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
services: | ||
# php53: | ||
# build: docker/php53 | ||
# working_dir: /var/www/ | ||
# volumes: | ||
# - ./:/var/www | ||
# extra_hosts: | ||
# - "host.docker.internal:host-gateway" # docker on mac lacks `host-gateway` | ||
# environment: | ||
# PHP_IDE_CONFIG: serverName=localhost # For Xdebug to work: PhpStorm ⇛ Settings ⇛ PHP ⇛ Servers ⇛ Name | ||
# php53: | ||
# build: docker/php53 | ||
# working_dir: /var/www/ | ||
# volumes: | ||
# - ./:/var/www | ||
# extra_hosts: | ||
# - "host.docker.internal:host-gateway" # docker on mac lacks `host-gateway` | ||
# environment: | ||
# PHP_IDE_CONFIG: serverName=localhost # For Xdebug to work: PhpStorm ⇛ Settings ⇛ PHP ⇛ Servers ⇛ Name | ||
php: | ||
build: docker | ||
build: | ||
context: docker | ||
args: | ||
- DOCKER_UID | ||
working_dir: /var/www/ | ||
volumes: | ||
- ./:/var/www | ||
extra_hosts: | ||
- "host.docker.internal:host-gateway" # docker on mac lacks `host-gateway` | ||
user: | ||
"${DOCKER_UID:-1000}:${DOCKER_GID:-1000}" | ||
environment: | ||
PHP_IDE_CONFIG: serverName=localhost # For Xdebug to work: PhpStorm ⇛ Settings ⇛ PHP ⇛ Servers ⇛ Name | ||
PHP_IDE_CONFIG: serverName=localhost # For Xdebug to work: PhpStorm ⇛ Settings ⇛ PHP ⇛ Servers ⇛ Name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
{ | ||
"private": true, | ||
"devDependencies": { | ||
"npm-watch": "^0", | ||
"sass": "^1", | ||
"uglify-js": "^3" | ||
}, | ||
"watch": { | ||
"compile-js": "resources/base.js", | ||
"compile-css": "resources/css/*.scss" | ||
}, | ||
"scripts": { | ||
"build:js": "uglifyjs resources/base.js -cm --toplevel --mangle-props --warn > resources/compiled/sage.js" | ||
"sass-dev": "sass --watch --update --no-source-map --style=expanded resources/css/themes/:resources/compiled/", | ||
"sass-dev-c": "sass --watch --update --no-source-map --style=compressed resources/css/themes/:resources/compiled/", | ||
"compile-css": "sass --style=compressed --no-source-map resources/css/themes/:resources/compiled/", | ||
"compile-js": "uglifyjs resources/js/base.js -cm --toplevel --mangle-props -o resources/compiled/sage.js", | ||
"watch": "npm-watch", | ||
"build": "npm run compile-js; npm run compile-css" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.