luckyframework / lucky

A full-featured Crystal web framework that catches bugs for you, runs incredibly fast, and helps you write code that lasts.
https://luckyframework.org
MIT License
2.57k stars 156 forks source link

Extract lucky_avram and remove avram dependency #1620

Closed matthewmcgarvey closed 2 years ago

matthewmcgarvey commented 2 years ago

This is one of the last parts to making Avram optional in Lucky. The code removed from here will be moved to avram https://github.com/luckyframework/avram/pull/772 The moved code will be accessible to apps by adding additional requires and the lucky_cli change can be found here https://github.com/luckyframework/lucky_cli/pull/711

This whole thing is a breaking change but in a minor way. Currently, having require "lucky" in your code pulled in all this code and also brought in avram. To get the same functionality, code will need to be updated to

require "lucky"
require "avram"
require "avram/lucky"

And then the tasks will also need to be imported in your tasks.cr file

require "avram/lucky/tasks"