ractivejs / ractive

Next-generation DOM manipulation
http://ractive.js.org
MIT License
5.94k stars 396 forks source link

Rollup as only build tool #3353

Closed marcalexiei closed 3 years ago

marcalexiei commented 3 years ago

Description:

Hi Chris, Today I had some free time and decided to play with rollup to update the build system. At the moment:

Let me know if you find this approach feasible.

Fixes the following issues:

None

Is breaking:

Hopefully not!

evs-chris commented 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.

marcalexiei commented 3 years ago

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.

evs-chris commented 3 years ago

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.

marcalexiei commented 3 years ago

General overview

Gobble is no longer the main build tool of the project. Now all files are created directly by rollup.

perf folder

I 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.

Security issues

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.

marcalexiei commented 3 years ago

Hi @evs-chris,

Just re-checking 😀, do you want to make additional adjustments/changes before merging?

evs-chris commented 3 years ago

Nope, LGTM!