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

A shared folder structure #102

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

eric-burel
Copy link
Contributor

@eric-burel eric-burel commented Aug 31, 2022

Idea:

  • "shared" is a folder used by "surveyform" and "dataops", and maybe the APIs
  • "surveyform" is the Next app
  • "dataops" is just a set of scripts, like the normalization script

I need to dig the experimental "externalDir" of Next.js:

I'd like to avoid as much as possible a full-fledged monorepo, because they are simply hard to setup. But maybe I am wrong, pnpm workspaces are worth investigating.

Anyway for a first version I am trying to stick with file imports. "shared" is simply a code folder, but outside of the actual app because it's used by multiple app. The "shared/package.json" is just there for development, the main app must make sure that it also includes the right dependencies, because only its package.json will be actually used during build/run.

The only other alternative is to make the Next.js app "fat" and keep scripts there, a bit like Meteor used to work.

Use cases

Resources

@netlify
Copy link

netlify bot commented Aug 31, 2022

Deploy Preview for stateofcss2021 failed.

Name Link
🔨 Latest commit b347525
🔍 Latest deploy log https://app.netlify.com/sites/stateofcss2021/deploys/630f89733f938f000802cef6

@netlify
Copy link

netlify bot commented Aug 31, 2022

Deploy Preview for stateofjs2021 failed.

Name Link
🔨 Latest commit b347525
🔍 Latest deploy log https://app.netlify.com/sites/stateofjs2021/deploys/630f8973c0c5ce00081370e9

@netlify
Copy link

netlify bot commented Aug 31, 2022

Deploy Preview for state-of-graphql canceled.

Name Link
🔨 Latest commit b347525
🔍 Latest deploy log https://app.netlify.com/sites/state-of-graphql/deploys/630f89737119690009fa85fc

@netlify
Copy link

netlify bot commented Aug 31, 2022

Deploy Preview for devographics-static canceled.

Name Link
🔨 Latest commit b347525
🔍 Latest deploy log https://app.netlify.com/sites/devographics-static/deploys/630f8973c0c5ce00081370ee

@netlify
Copy link

netlify bot commented Aug 31, 2022

Deploy Preview for stateofjs canceled.

Name Link
🔨 Latest commit b347525
🔍 Latest deploy log https://app.netlify.com/sites/stateofjs/deploys/630f89736cb8670008d910a3

@netlify
Copy link

netlify bot commented Aug 31, 2022

Deploy Preview for stateofgraphql2022 failed.

Name Link
🔨 Latest commit b347525
🔍 Latest deploy log https://app.netlify.com/sites/stateofgraphql2022/deploys/630f89739a75530008b51110

@netlify
Copy link

netlify bot commented Aug 31, 2022

Deploy Preview for devographics-graphiql-internal canceled.

Name Link
🔨 Latest commit b347525
🔍 Latest deploy log https://app.netlify.com/sites/devographics-graphiql-internal/deploys/630f8973b361450009b7a44a

@netlify
Copy link

netlify bot commented Aug 31, 2022

Deploy Preview for stateofcss canceled.

Name Link
🔨 Latest commit b347525
🔍 Latest deploy log https://app.netlify.com/sites/stateofcss/deploys/630f897349d9ce00076bcb86

@netlify
Copy link

netlify bot commented Aug 31, 2022

Deploy Preview for graphiql-devographics canceled.

Name Link
🔨 Latest commit b347525
🔍 Latest deploy log https://app.netlify.com/sites/graphiql-devographics/deploys/630f897323165f0009994fed

@gatsby-cloud
Copy link

gatsby-cloud bot commented Aug 31, 2022

Gatsby Cloud Build Report

🚩 Your build failed. See the build logs here

1 similar comment
@gatsby-cloud
Copy link

gatsby-cloud bot commented Aug 31, 2022

Gatsby Cloud Build Report

🚩 Your build failed. See the build logs here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant