Closed marcalexiei closed 3 years ago
This is absolutely on the list of things to fix! Replacing gobble would clean up 99% of our old deps issues, possibly along with moving from buble to something like sucrase. I like rollup as the main replacement, and if there are a few weird corners it can't cover, bash scripts can fill in those gaps.
this will be a much better replacement for #3350
Do you want to have this PR merged on dev?
Can you make the swap to node 12 or 14 here too?
At the moment this branch is based on 2.0 branch which already have Node 12 (commit reference) in order to use ESlint. I don't see any blocker for update to Node 14.
Ah, I missed the target branch. In that case, no, the other build pr will suffice for dev for now. Good to know that 2.0 will have saner build machinery, though.
Gobble is no longer the main build tool of the project. Now all files are created directly by rollup.
rollup.{config}.js
file located in the root of the projectrollup.utils.js
perf
folderI noticed that there’s a gobble task to serve content inside these folder. I migrated this task to rollup as well, but it seems that the page is not working. After a brief investigation, the issue seems to occur also on dev branch. The tests use an old Ractive Syntax, which may be causing the issue.
We have fewer security issues: before (dev): 354 vulnerabilities (257 low, 5 moderate, 92 high) now (ts + rollup): 251 vulnerabilities (176 low, 3 moderate, 72 high)
I think that this PR can be merged. Let me know if there is something that needs to be changed.
Hi @evs-chris,
Just re-checking 😀, do you want to make additional adjustments/changes before merging?
Nope, LGTM!
Description:
Hi Chris, Today I had some free time and decided to play with rollup to update the build system. At the moment:
I am able to serve dev build and server for sandbox (without hot reload)
bundle:dev
andbundle:release
now are fully based on rollupbundle: test
is not convertedLet me know if you find this approach feasible.
Fixes the following issues:
None
Is breaking:
Hopefully not!