vite_lucky
Version, currently main branch1 version
- main branchlatestOct 1, 2022
github.com/jwoertink/vite_lucky
No description declared in shard.yml.
3 stars
0 dependents
License: not declared
Installation
# Add this to your shard.yml
dependencies:
vite_lucky:
github: jwoertink/vite_lucky
branch: mainmain is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
1.5.0- Author
- Jeremy Woertink
- Target
appfrom src/vite_lucky.cr
Dependencies
Runtime Dependencies
- jwt~> 1.6.0github: crystal-community/jwt
- lucky~> 0.30.0github: luckyframework/lucky
- carbon~> 0.2.1github: luckyframework/carbon
- authentic~> 0.8.2github: luckyframework/authentic
- lucky_env~> 0.1.4github: luckyframework/lucky_env
- lucky_task~> 0.1.1github: luckyframework/lucky_task
- carbon_sendgrid_adapter~> 0.2.1github: luckyframework/carbon_sendgrid_adapter
Development Dependencies
- lucky_flow~> 0.7.3github: luckyframework/lucky_flowdev
README
Vite Lucky test
This repo is being used as a test for what Lucky may look like with Vite support out of the box. Also note that I'm testing against the next release of Lucky since this may get thrown in to it
Currently I'm getting this OOM error locally:
// assets | <--- JS stacktrace --->
// assets |
// assets | FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
// assets | 1: 0xafedf0 node::Abort() [/home/jeremy/.asdf/installs/nodejs/16.6.1/bin/node]
// assets | 2: 0xa1814d node::FatalError(char const*, char const*) [/home/jeremy/.asdf/installs/nodejs/16.6.1/bin/node]
// assets | 3: 0xce795e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/home/jeremy/.asdf/installs/nodejs/16.6.1/bin/node]
// assets | 4: 0xce7cd7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/home/jeremy/.asdf/installs/nodejs/16.6.1/bin/node]
// assets | 5: 0xeb16b5 [/home/jeremy/.asdf/installs/nodejs/16.6.1/bin/node]
// assets | 6: 0xeb21a4 [/home/jeremy/.asdf/installs/nodejs/16.6.1/bin/node]
// assets | 7: 0xec0617 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/home/jeremy/.asdf/installs/nodejs/16.6.1/bin/node]
// assets | 8: 0xec39cc v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/home/jeremy/.asdf/installs/nodejs/16.6.1/bin/node]
// assets | 9: 0xe862ec v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/home/jeremy/.asdf/installs/nodejs/16.6.1/bin/node]
// assets | 10: 0x11f3156 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/home/jeremy/.asdf/installs/nodejs/16.6.1/bin/node]
// assets | 11: 0x15c9ed9 [/home/jeremy/.asdf/installs/nodejs/16.6.1/bin/node]
// assets | Aborted (core dumped)
// assets | error Command failed with exit code 134.
// assets | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
// assets | error Command failed with exit code 134.
// assets | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
// assets | Done
My stack is:
❯ crystal -v
Crystal 1.5.0 [994c70b10] (2022-07-06)
LLVM: 10.0.0
Default target: x86_64-unknown-linux-gnu
❯ node -v
v16.6.1
❯ yarn -v
1.22.17
❯ uname -a
Linux pop-os 5.19.0-76051900-generic #202207312230~1660780566~22.04~9d60db1 SMP PREEMPT_DYNAMIC Thu A x86_64 x86_64 x86_64 GNU/Linux
Setup
- Clone the repo
./script/setuplucky dev
Next Steps
In order to make this a reality, we need to answer some questions
- How do I not overwrite what's already in the public directory?
- Why does the css file get rendered as
js/app.css? - How can I run a system command after this is built? I need to tell Lucky to rebuild. (This may not be needed if we tell it to locally generate files without the cache buster name)
- How do background images work in the CSS?
- Can I specify a different input for css rather than doing an import?
- How come I have to import images in to the app.js in order to have them show up in the manifest?
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
main- Seen
- Oct 1, 2022
- Crystal
1.5.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/jwoertink/vite_lucky
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1