Skip to content
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

Alpine.js? #95

Closed
nelsonic opened this issue Jun 7, 2022 · 2 comments
Closed

Alpine.js? #95

nelsonic opened this issue Jun 7, 2022 · 2 comments
Assignees
Labels
discuss Share your constructive thoughts on how to make progress with this issue enhancement New feature or enhancement of existing functionality help wanted If you can help make progress with this issue, please comment! priority-2 Second highest priority, should be worked on as soon as the Priority-1 issues are finished question A question needs to be answered before progress can be made on this issue technical A technical issue that requires understanding of the code, infrastructure or dependencies

Comments

@nelsonic
Copy link
Member

nelsonic commented Jun 7, 2022

Alpine.js is the "A" in PETAL Stack: #87
It's a way to add interaction enhancements like transitions on the client-side
https://alpinejs.dev/start-here
image

The biggest advantages are:

  1. Tiny API: 18 Directives
    x-data
    x-init
    x-show
    x-bind
    x-on
    x-text
    x-html
    x-model
    x-modelable
    x-for
    x-transition
    x-effect
    x-ignore
    x-ref
    x-cloak
    x-teleport
    x-if
    x-id
  2. Declarative in-line code so all enhancements are in the HTML (.heex) Template so we don't have to look in multiple places to understand the code.

There is also a component library: https://alpinejs.dev/components
image
image

It't $129:
image
This seems perfectly reasonable if its mobile-first and fully responsive. 📱

Crucially there are already quite a few people using in the Phoenix LiveView space.
e.g: https://petal.build/
image
https://petal.build/#pricing
image
quite a lot more expensive than the Alpine.js Components above ...
but again, offers a lot more for the money. 💭

Not going to spend anymore time on this right now.
My only "concern" is the testing ... but will need to read into this more later.

@nelsonic nelsonic added enhancement New feature or enhancement of existing functionality help wanted If you can help make progress with this issue, please comment! question A question needs to be answered before progress can be made on this issue discuss Share your constructive thoughts on how to make progress with this issue technical A technical issue that requires understanding of the code, infrastructure or dependencies labels Jun 7, 2022
@nelsonic nelsonic mentioned this issue Jun 7, 2022
7 tasks
@nelsonic nelsonic self-assigned this Jun 10, 2022
@nelsonic nelsonic added the priority-2 Second highest priority, should be worked on as soon as the Priority-1 issues are finished label Jun 10, 2022
@nelsonic
Copy link
Member Author

Stopwatch: https://dwyl.github.io/learn-alpine.js/stopwatch.html ⏱️ 🚀

@nelsonic
Copy link
Member Author

@SimonLab can you please take a look at https://github.com/dwyl/learn-alpine.js and provide feedback. 🙏
Our objective is just to have an intro to the topic for now. Just enough for us to understand how to use it. 💭
If you can extend it even better. 🤞

@nelsonic nelsonic removed their assignment Aug 17, 2022
@prplmg prplmg closed this as completed May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Share your constructive thoughts on how to make progress with this issue enhancement New feature or enhancement of existing functionality help wanted If you can help make progress with this issue, please comment! priority-2 Second highest priority, should be worked on as soon as the Priority-1 issues are finished question A question needs to be answered before progress can be made on this issue technical A technical issue that requires understanding of the code, infrastructure or dependencies
Projects
None yet
Development

No branches or pull requests

3 participants