amberframework / amber

A Crystal web framework that makes building applications fast, simple, and enjoyable. Get started with quick prototyping, less bugs, and blazing fast performance.
https://amberframework.org
MIT License
2.57k stars 204 forks source link

Feature Adding AssetPipeline & ImportMaps #1358

Open crimson-knight opened 7 months ago

crimson-knight commented 7 months ago

Description of the Change

This is a big step forward in modern JS for Amber!

This change adds the new import maps feature and the asset_pipeline shard for new apps by default. This also has some minimal updates to get the existing client_reload feature working and get the

Benefits

Possible Drawbacks

Using module-based JS does require a different approach than what most backend devs are probably comfortable with. If you're accustomed to the standard of just putting plain JS into a file and it executes on it own, this is going to be a bit different.