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

Reboot with TDD to get this up to speed #13

Merged
merged 23 commits into from Nov 19, 2018
Merged

Reboot with TDD to get this up to speed #13

merged 23 commits into from Nov 19, 2018

Conversation

moonglum
Copy link
Member

@moonglum moonglum commented Nov 14, 2018

This contains structural improvements and tests based upon changes by @FND. Follow up after this PR:

FND and others added 8 commits November 12, 2018 17:41
this seems significantly less noisy and generally easier to scan

the implementation could likely be improved WRT elegance and efficiency
while syntactically this might look more complicated, it's actually more
explicit and thus easier to understand (less context required)
this also resulted in a `Page` rewrite

TDD FTW!
the primary purpose here was to make URIs configurable (i.e. customizing
mount points, avoiding hard-coded expectations), but this is also useful
for encapsulation and generally tying things together (notably managing
page hierarchies, but eventually also dispatching rendering)
NB: this does not yet include HTML generation and also omits both site
    metadata (which currently resides in `faucet.config.js`) and
    complate support
note that because HTML rendering is still missing, this isn't actually
usable yet
lib/generate_layout.js Outdated Show resolved Hide resolved
lib/page_renderer.js Outdated Show resolved Hide resolved
lib/site.js Outdated Show resolved Hide resolved
lib/site.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
lib/tree.js Show resolved Hide resolved
lib/html_renderer.js Outdated Show resolved Hide resolved
lib/site.js Show resolved Hide resolved
lib/generate_layout.js Outdated Show resolved Hide resolved
faucet.config.js Show resolved Hide resolved
lib/complate.js Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
faucet.config.js Outdated Show resolved Hide resolved
lib/page.js Outdated Show resolved Hide resolved
@moonglum
Copy link
Member Author

@FND Navigation is now implemented, feedback welcome.

lib/page_renderer.js Outdated Show resolved Hide resolved
lib/site.js Show resolved Hide resolved
lib/site.js Outdated Show resolved Hide resolved
lib/navigation.js Show resolved Hide resolved
@moonglum moonglum merged commit ecc1d57 into master Nov 19, 2018
@moonglum moonglum deleted the uris branch November 19, 2018 18:02
@moonglum
Copy link
Member Author

Thanks for your work and your feedback, @FND

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants