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

add skeletal next app sharing code with the rest of the stack #2028

Merged
merged 1 commit into from
Jan 17, 2018

Conversation

jamesgorrie
Copy link
Contributor

Reference #2027

A skeletal next.js app, sharing common code with our stack.
I propose that we use this time to tidy up some bits and bobs.

- common => code that is shared across webapps
- server => code that relates to the shared web-server

As with this example, we can move the actual shared code into common, then import it into the concept of filters, which is going to ⚰️. This will then open us up to be able to treat things as functions, and thus test them.

@wellcomecollection <= up for changing this, but auto complete help here.

There is some work going on in next to allow us to make this more streamlined, I've basically replicated the work until it's in a release. See here

I would have liked to have used yarn's workspaces but because of good ol' node's module resolving this starting becoming tricker than it needed to be.

img_20180116_163651

}
});
config.resolve.symlinks = false;
return config
Copy link
Contributor Author

Choose a reason for hiding this comment

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

+;

@morgs32
Copy link

morgs32 commented Apr 10, 2018

@jamesgorrie I'm desperate to make it work with yarn workspaces too. Any suggestions for direction?

@jamesgorrie
Copy link
Contributor Author

@morgs32 well we use:
https://www.npmjs.com/package/@weco/next-plugin-transpile-modules

I haven't had another attempt as this worked, and the mono-repo work I think is on the roadmap for the next.js team.

I might have another stab at it.

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.

None yet

2 participants