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

Dumber and monorepo #73

Closed
simonfox opened this issue Apr 5, 2022 · 6 comments
Closed

Dumber and monorepo #73

simonfox opened this issue Apr 5, 2022 · 6 comments

Comments

@simonfox
Copy link

simonfox commented Apr 5, 2022

A quick question about recommendation for monorepo and the dumber template.

We've got a large v1 app that uses dumber successfully and we are very happy with it. I am starting to look at v2, and one thing we are wanting to change is to move to a monorepo (our application is broken up into plugins which each live in a separate repo currently). We have no interest in going down the webpack path.

I've had a look at npm workspace with typescript project references and build mode and it seems like a nice clean approach. One issue I currently see with respect to the dumber template is the lack of build mode support in gulp-typescript.

Do you have any thoughts or recommendations on what we could use to get around this?

@3cp
Copy link
Member

3cp commented Apr 5, 2022

I have not used workspace, but dumber should work in that environment.

Your question is about incremental build in gulp?
Dumber doesn't provide over-all solution, it left big chunk of work to gulp ecosystem. It's not what we can control.

For a fast incremental build in dev mode, other bundlers provide much better experience.
We are going to ship Aurela2 Parcel2 integration very soon (in few days). Parcel2 got excellent incremental watch mode, and it's fast as it moved many slow parts into rust (they wrote sourcemap and css processors in rust, and reuse swc transpiler which is in rust). You might want to take a look later.

For gulp+dumber, I have tried https://github.com/konclave/gulp-swc, it works well but I have not used it in any large scale production build. Swc is damn fast. You can try swc with dumber.

@simonfox
Copy link
Author

simonfox commented Apr 5, 2022

Thanks @3cp that answers my question. Will take a look at swc in the mean time.

Will the parcel2 integration be added as an option to this makes scaffolding?

@3cp
Copy link
Member

3cp commented Apr 5, 2022

Will the parcel2 integration be added as an option to this makes scaffolding?

Yes. Personally I would also like it to replace webpack as the default one. Because the setup is very clean.

@simonfox
Copy link
Author

simonfox commented Apr 5, 2022

Looking forward to it! Thank you.

@simonfox simonfox closed this as completed Apr 5, 2022
@3cp
Copy link
Member

3cp commented Apr 6, 2022

Probably more than few days. Getting into trouble with parcel2 with our router loading.

@3cp
Copy link
Member

3cp commented Apr 8, 2022

Parcel skeleton is kind of playable now.
Jest works with Parcel right now. Other testing libs are not there yet.
#74

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

No branches or pull requests

2 participants