Skip to content

Commit

Permalink
Chore(demo): Add missing links for missing modules
Browse files Browse the repository at this point in the history
  * fixing `cannot find module error`
  • Loading branch information
literat committed Jan 10, 2024
1 parent fd456b4 commit 0cb5617
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
2 changes: 2 additions & 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,8 @@ services:
volumes:
- ./../:/srv/spirit-web-twig-demo/:delegated
- ./../../../packages/web:/srv/spirit-web/:delegated
- ./../../../packages/common:/srv/spirit-common/:delegated
- ./../../../packages/design-tokens:/srv/spirit-design-tokens/: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
Expand Down
29 changes: 27 additions & 2 deletions packages/web-twig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,33 @@ 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 /srv/spirit-demo && yarn link && cd /srv/spirit-web-twig-demo && yarn link @lmc-eu/spirit-demo"

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 && \
\
cd /srv/spirit-design-tokens && \
yarn link && \
cd /srv/spirit-web-twig-demo/node_modules/@lmc-eu/spirit-web && \
yarn link @lmc-eu/spirit-design-tokens && \
\
cd /srv/spirit-common && \
yarn link && \
cd /srv/spirit-web-twig-demo/node_modules/@lmc-eu/spirit-web && \
yarn link @lmc-eu/spirit-common && \
cd /srv/spirit-web-twig-demo/node_modules/@lmc-eu/spirit-form-validations && \
yarn link @lmc-eu/spirit-common"
encore-build: ## Build demo assets
cd $(APP_DOCKER_DIR) && $(DOCKER_COMP) exec $(DOCKER_ENCORE_SERVICE) yarn build

Expand Down

0 comments on commit 0cb5617

Please sign in to comment.