-
Notifications
You must be signed in to change notification settings - Fork 28
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
Sync cdp-frontend's npm commands for the app with cookiecutter-cdp-deployment's npm commands #134
Comments
cc @JacksonMaxfield |
I agree we should centralize on tooling. I think @hawkticehurst has opinions on this more than I do. To my knowledge snowpack does better treeshaking or something? I really don't know enough about JS stuff to have a say in this but agree with the idea in general. |
Oh interesting, could've sworn I aligned these months ago. But completely agree on making them the same. My vote is for using Snowpack versus With that said, if we're doing this work, I would potentially encourage we actually use Vite instead of Vite also has a This would obviously be more of an investment in time, but based on how much we've struggled with react-scripts/webpack I think it could be a really fruitful investment. |
You may have aligned the two months ago, but then I may have unaligned them when I was trying to get the cookiecutter to even deploy properly. Iirc, I just couldnt get the cookiecutter-ed repos (the actual instances) to build properly with snowpack. |
Ahhh yeah that would make sense. The long short is snowpack does bundling differently than most other web tooling today, which is something I hadn't fully realized back when I used it in CDP. It's a really cool future-proof way of building/bundling code but doesn't work super easily out of the box at times. That's also why I would recommend |
The command to build and bundle cdp-frontend as an npm package should be done by this one tooling library too. Looks like this can't be done with react-scripts? Brief glancing over the documentation for |
Oh yeah, honestly don't if |
cdp-frontend currently uses snowpack as frontend build tool, while cookiecutter-cdp-deployment use react-scripts.
The commands to start the app locally and build the app should be the same between the two repos.
Also, add CI to build the app in the PR workflow.
The text was updated successfully, but these errors were encountered: