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

Workspace setup #4533

Merged
merged 27 commits into from
Aug 28, 2023
Merged

Workspace setup #4533

merged 27 commits into from
Aug 28, 2023

Conversation

sdvg
Copy link
Member

@sdvg sdvg commented Aug 4, 2023

Änderungen in diesem PR:

  • pnpm workspaces aktiviert: Dependencies zwischen den Paketen werden so durch Symlinks aufgelöst.
  • NX aktiviert: Mit lerna ausgeführte Tasks (z.B. npx lerna run build) führen so Tasks, die Abhängigkeiten darstellen, automatisch aus (Beispiel: Build von Designer stellt sicher, dass zuvor der Build von Components ausgeführt wurde.) Builds werden dabei gecached.
  • Components: Task dev als kleine Hilfe hinzugefügt (siehe unten).

Der Workflow kann jetzt z.B. so aussehen:

Erstes Terminal

cd packages/components
npm run dev

(baut die Components bei jeder Änderung neu)

Zweites Terminal:

cd packages/samples/react
npm start

Änderungen an Komponenten werden jetzt automatisch im React-Beispiel sichtbar.


Das gleiche ist im Prinzip mit Themes möglich, allerdings gibt es bei unpack noch keinen Watch-Mode. Dieser ist aber geplant. Im Moment muss man npm run build nach Änderungen manuell ausführen.

@sdvg
Copy link
Member Author

sdvg commented Aug 4, 2023

Die CI-Pipeline hat gerade noch ein Problem, das ich lokal nicht vollziehen kann. 🧐
Davon abgesehen ist der PR bereit für ein erstes Review.

@sdvg sdvg marked this pull request as ready for review August 4, 2023 13:41
laske185
laske185 previously approved these changes Aug 9, 2023
@laske185
Copy link
Contributor

Es werden verschiedene Prettier-Versionen verwendet. Vielleicht hilft ein downgrade auf Version 2 mit anschließendem Re-Formatieren.

@deleonio
Copy link
Contributor

@sdvg - Achtung, ich muss noch einmal den Konflikt lösen. Bitte warten.

@deleonio deleonio marked this pull request as draft August 22, 2023 09:38
@deleonio deleonio added feature New feature or request and removed Do not merge! labels Aug 22, 2023
@laske185 laske185 marked this pull request as ready for review August 23, 2023 11:59
@laske185 laske185 requested a review from deleonio August 23, 2023 12:00
@laske185
Copy link
Contributor

laske185 commented Aug 23, 2023

Das lint aus dem designer entfernt, da es hier zu Problemen kommt. Dies wird im Ticket #4830 wieder eingeführt.

@laske185 laske185 changed the title Add basic workspace setup workspace setup Aug 23, 2023
@laske185 laske185 changed the title workspace setup Workspace setup Aug 23, 2023
@deleonio deleonio changed the base branch from main to develop August 23, 2023 18:06
Copy link
Contributor

@deleonio deleonio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@laske185 - Kannst Du bitte die Konflikte noch beseitigen. Danke

@deleonio deleonio merged commit 8404c67 into develop Aug 28, 2023
@deleonio deleonio deleted the workspaces branch August 28, 2023 13:43
@github-actions github-actions bot locked and limited conversation to collaborators Aug 28, 2023
@deleonio deleonio restored the workspaces branch August 29, 2023 04:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants