hoichi / chops Goto Github PK
View Code? Open in Web Editor NEWA watchful static site builder (work in progress)
License: MIT License
A watchful static site builder (work in progress)
License: MIT License
Implement a proper non-watch mode, that is. Free resources and exit.
Recent example: path
. fsWatcher
parses source path into an object, but if a converter reads yfm and it has a property named path
, it gets fucked over.
Of course, the core engine is supposed to be very flexible, so your should be able to override most anything, but maybe we should at least validate the data critical for the core components themselves.
indexBy
for collections defaults to el => el.toString
, which as ofted as not gives you [object Object]
. Which, with the current implementation, makes the dictionary too short to ever reach expected length, so the emit never happens.
Gotta think of something when we properly implement the reaction to change
.
Not sure we want to block execution and make subscribing to every output channel obligatory, but there’s a nagging suspicion we could lose shit if someone subscribes too late.
Possible solutions:
'template'
channel on Renderer
).Maybe it was just me playing with file names but I should probably check if that’s the only case.
It should be installable with npm/yarn at least from this repo.
Say you send page
instead of {action: 'change', page}
. And then nothing. Just the faint rustle of files not being written.
In theory, abstracting the event system should take care of that, but, you know. Lest we forget.
Changed a markdown just now, and it seems like the changed is fired over and over.
Reproduce, locate, exterminate.
Here’s a simple example: /index.html
, which now simply gets written to the root (of the current volume). Since we allow a user to do that with .convert()
, we should check after her.
See also #6
Say,
5|
6| block header
> 7| ======
8| h1= page.title
9| ======
10|
Unexpected token ===
Should write the error to console and maybe even to the html but not just crash like an idiot.
Allow it to be set up by consumer script, I guess.
And maybe add simple slice()
for rss in the same stride.
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.