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

Need an easy way to link development to app-frontend (or other apps) #55

Open
haakemon opened this issue Jul 1, 2022 · 0 comments
Open
Labels
status/draft Status: When you create an issue before you have enough info to properly describe the issue.

Comments

@haakemon
Copy link
Contributor

haakemon commented Jul 1, 2022

Description

Yarn/npm link to link the package doesnt work great, since we have different react versions amongst other things.

One easy way would be to create a symlink for the dist folder. By doing that, you can just execute yarn build in DS repo, and app-frontend will get the updated package via the symlinked directory.

This can be done f.ex by;

  1. Execute yarn build to generate dist folder
  2. Remove node_modules/@altinn/altinn-design-system/dist folder in app-frontend (or in other consuming repo)
  3. Create the symlink from DS dist folder to node_modules/@altinn/altinn-design-system/dist in the repo where its used

We could perhaps create a script to simplify this process.

Additional Information

No response

Tasks

No response

Acceptance Criterias

No response

@haakemon haakemon added the status/draft Status: When you create an issue before you have enough info to properly describe the issue. label Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/draft Status: When you create an issue before you have enough info to properly describe the issue.
Projects
None yet
Development

No branches or pull requests

1 participant