Skip to content

Commit

Permalink
Refactor(web-twig): Use demo package css instead of own
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Sep 19, 2023
1 parent faac0e1 commit b2547ff
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 90 deletions.
3 changes: 2 additions & 1 deletion apps/web-twig-demo/assets/styles/app.scss
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@forward '@lmc-eu/spirit-web/src/scss/';
@forward '@lmc-eu/spirit-web/src/scss';
@forward '@lmc-eu/spirit-demo/scss';
1 change: 1 addition & 0 deletions apps/web-twig-demo/docker/docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ services:
volumes:
- ./../:/srv/spirit-web-twig-demo/:delegated
- ./../../../packages/web:/srv/spirit-web/:delegated
- ./../../../packages/demo:/srv/spirit-demo/:delegated
- ./../../../packages/form-validations:/srv/spirit-form-validations/:delegated
# If you develop on Mac or Windows you can remove the node_modules/ directory
# from the bind-mount for better performance by enabling the next line:
Expand Down
1 change: 1 addition & 0 deletions apps/web-twig-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@hotwired/stimulus": "3.2.2",
"@lmc-eu/spirit-web": "1.2.0",
"@lmc-eu/spirit-form-validations": "1.0.2",
"@lmc-eu/spirit-demo": "0.0.1",
"@symfony/stimulus-bridge": "3.2.2",
"@symfony/webpack-encore": "4.4.0",
"core-js": "3.32.1",
Expand Down
86 changes: 0 additions & 86 deletions apps/web-twig-demo/public/css/demo.css

This file was deleted.

2 changes: 0 additions & 2 deletions apps/web-twig-demo/templates/layout/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap">
{{ encore_entry_link_tags('app') }}
<link rel="stylesheet" href="{{ asset('css/demo.css') }}">

{{ encore_entry_script_tags('app') }}

</head>
Expand Down
5 changes: 5 additions & 0 deletions apps/web-twig-demo/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,11 @@
resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz#b2ac626d6cb9c8718ab459166d4bb405b8ffa78b"
integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==

"@lmc-eu/[email protected]":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@lmc-eu/spirit-demo/-/spirit-demo-0.0.1.tgz#1ef098fc45d99cc64c9655b7760946d888465212"
integrity sha512-ZX6Z/mS7K6VLFRjDoACzUKkNyDdO5xNiRgOqA3MztVMGL5Ahg7kom//8AqQkM1DW4UVSkrtsHzkx9gRuYy0J4A==

"@lmc-eu/spirit-design-tokens@^0.25.5":
version "0.25.5"
resolved "https://registry.yarnpkg.com/@lmc-eu/spirit-design-tokens/-/spirit-design-tokens-0.25.5.tgz#1663518f3e07572d5c228dc72aebce3a6caa8058"
Expand Down
2 changes: 1 addition & 1 deletion packages/web-twig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ encore-install: ## Install demo dependencies
cd $(APP_DOCKER_DIR) && $(DOCKER_COMP) exec $(DOCKER_ENCORE_SERVICE) yarn install

encore-link: ## Link demo dependencies
cd $(APP_DOCKER_DIR) && $(DOCKER_COMP) exec $(DOCKER_ENCORE_SERVICE) sh -c "cd /srv/spirit-web && yarn link && cd /srv/spirit-web-twig-demo && yarn link @lmc-eu/spirit-web && cd /srv/spirit-form-validations && yarn link && cd /srv/spirit-web-twig-demo && yarn link @lmc-eu/spirit-form-validations"
cd $(APP_DOCKER_DIR) && $(DOCKER_COMP) exec $(DOCKER_ENCORE_SERVICE) sh -c "cd /srv/spirit-web && yarn link && cd /srv/spirit-web-twig-demo && yarn link @lmc-eu/spirit-web && cd /srv/spirit-form-validations && yarn link && cd /srv/spirit-web-twig-demo && yarn link @lmc-eu/spirit-form-validations && cd /srv/spirit-demo && yarn link && cd /srv/spirit-web-twig-demo && yarn link @lmc-eu/spirit-demo"

encore-build: ## Build demo assets
cd $(APP_DOCKER_DIR) && $(DOCKER_COMP) exec $(DOCKER_ENCORE_SERVICE) yarn build
Expand Down

0 comments on commit b2547ff

Please sign in to comment.