noahlh / celestite Goto Github PK
View Code? Open in Web Editor NEWBeautifully reactive, server-side rendered Svelte apps w/ a Crystal backend
License: MIT License
Beautifully reactive, server-side rendered Svelte apps w/ a Crystal backend
License: MIT License
In an Amber project, each time a recompile happens a new directory gets added to /public/celestite
. In dev mode, need to clear out that directory after each restart.
Will find example and paste here, but after running the same project for a while the buffer fills up and causes the connection to be reset.
Several have suggested this and it's a good idea: We should add an option to celestite_render()
to allow for a static render in production, which is to say, avoid a r/t to the Node server.
This will be for certain pages whose content we can reliably expect to be static / pre-rendered. If there's no crystal variables being sent (eg no DB calls, etc.) and no server-side node requirements, then we can simply serve up the pre-rendered HTML.
I am looking to use this with Lucky. Has anyone used this with Lucky? Is there a checklist to work through to get this to work with Lucky?
On very first load (before there's a /build directory). Doesn't seem to cause an actual issue, but should be fixed nonetheless.
Unhandled exception in spawn: Unable to get info for "public/dist/cvue.main.js": No such file or directory (Errno)
from /usr/local/Cellar/crystal/0.27.0/src/file.cr:122:37 in 'info'
from /usr/local/Cellar/crystal/0.27.0/src/file.cr:121:3 in 'info'
from lib/amber/src/amber/support/client_reload.cr:47:7 in 'get_timestamp'
from lib/amber/src/amber/support/client_reload.cr:53:9 in 'scan_files'
from lib/amber/src/amber/support/client_reload.cr:16:9 in 'run'
from lib/amber/src/amber/support/client_reload.cr:11:7 in '->'
from /usr/local/Cellar/crystal/0.27.0/src/fiber.cr:255:3 in 'run'
from /usr/local/Cellar/crystal/0.27.0/src/fiber.cr:75:34 in '->'
node-server to be refactored to use webpack-dev-middleware & webpack-hot-middleware, both of which are required for HMR to work properly.
The entire celestite/node project should be configurable within the calling app, including all dependencies (in package.json) and the webpack config file.
This is needed so additional packages can be added to the node project without burdening the core celestite project with additional project-specific dependencies.
I added
celestite:
github: noahlh/celestite
version: ~> 0.1.2
and I also tried
celestite:
github: noahlh/celestite
the result is always
# shards update
...
Fetching https://github.com/noahlh/celestite.git
Failed git ls-tree -r --full-tree --name-only v0.1.1 -- shard.yml (). Maybe a commit, branch or file doesn't exist?
Is there a solution?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.