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

Feat monorepo #614

Merged
merged 51 commits into from
Mar 6, 2023
Merged

Feat monorepo #614

merged 51 commits into from
Mar 6, 2023

Conversation

like-a-bause
Copy link
Collaborator

@like-a-bause like-a-bause commented Feb 28, 2023

Description

  • uses workspaces to create a monorepo.
  • adds https://turbo.build/repo to define dependencies between elements / examples and builds accordingly

You may have to delete the different node_modules folders/ package-lock.json to get this working.

If you don't run on M1 you have to install turbo globally:

npm install turbo --global

Implementation

Tests

Todos

Additional context

@like-a-bause like-a-bause marked this pull request as draft February 28, 2023 14:45
@like-a-bause like-a-bause marked this pull request as ready for review March 1, 2023 13:18
@like-a-bause
Copy link
Collaborator Author

I implemented 2 workspaces. One top level, including examples/ and frontend/ and on in frontend/. The second one is only for use in the Docker build process, because the Dockerfile can only access ./ but not ../ so we need a package.json in ./

As @bjoern-m suggested, we could move the examples into the frontend folder to reduce the complexity here.
What do you think?

examples/react/src/HankoAuth.tsx Outdated Show resolved Hide resolved
examples/react/src/HankoAuth.tsx Outdated Show resolved Hide resolved
examples/svelte/src/lib/Login.svelte Outdated Show resolved Hide resolved
examples/svelte/src/lib/Login.svelte Outdated Show resolved Hide resolved
examples/vue/src/components/HankoAuth.vue Outdated Show resolved Hide resolved
examples/vue/src/components/HankoAuth.vue Outdated Show resolved Hide resolved
frontend/elements/src/index.ts Outdated Show resolved Hide resolved
quickstart/public/html/index.html Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

ENOENT: no such file or directory, lstat 'node_modules/@teamhanko/frontend-sdk'
3 participants