testing moving the functionality into small modules #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "split-into-modules"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Idea:
move all the functionality currently in the
/modules
directory into npm modules, which can then be loaded statically throughA single component can also be loaded:
The benefits:
The malefits:
reposted from discord to continue discussion from there:
all in all, im down for separating it into modules, i think the benefits outweigh the malefits
i do have a few concerns we could iron out:
it would also be nice to finalize the license before we put the modules out into esm
Offline Usage
I didn't really consider offline use. Once the main site is set up, people really only need to write markdown files, local preview is not strictly mandatory after all.
But we could:
Build Your Own Tickle
This sounds like it has the potential to end up so complex it will be like using a programming language all over again.
Maybe we can still keep it manageable if we make sure to keep it simple.
Imagine:
These would be hard-coded in the Tickle App, to keep things simple-ish.
Later on, we could think of a spec config file instead, so people can add their own. It may be worth having a spec file (or at least Godot resource) from the start to avoid too much refactoring.
How it would work (Dream Implementation)
The way this could function:
Tickle App has several built-in configurations, but can also load a config from a gist, a text file online, etc.
When a configuration is picked, it specifies:
files.txt
is used or notThen, it acts as if index.html was requested, downloads all the online relevant files and caches them temporarily, so it can use them when there's no network.
But all of this is in my eyes in a far future.
Checkout
From your project repository, check out a new branch and test the changes.