Commit Graph
14 Commits
Author SHA1 Message Date
Yoshua Wuyts bddcfbe838 choo components (#639)
* add components

* example: componentize header

* fix choo SSR

* example: componentize footer

* example: fix footer

* update component cache asserts

* componentize todos

* reorder example dir

* fix example tests

* fix dep check test

* Add garbage collection of unused components

* Apply args when calling identity

* update to new component preview

* update nanocomponent

* fix cache err name

* remove static methods from example

* restore app.emit() function

* public API tests

* offset component cache iteration by 2

* whitelist contents of component folder (#643)

* allow lru number arg

* fix lint typo
2018-03-30 18:19:06 +02:00
Renée Kooi bfb31f475b Add gitignore inside example/ (#641)
* Add gitignore inside example/

`"example"` is in the `"files"` key in our package.json, which overrides
the root .gitignore and ends up including the entire examples folder,
including its dist/ and node_modules/. That means a fresh install of
choo comes in at over 100MB of unused code.

Nested .gitignores still apply to folders that are specified in the
`files` key, so this pushes choo back down to a <500KB installed size :)
The example code itself is still included so folks can use it as
offline documentation.

* also ignore package-lock.json
2018-03-08 23:31:31 +01:00
Renée Kooi 6bee7086bc Use new mount() functionality in example (#630)
No more mucking around with `module.parent` ✌️
2018-02-23 19:39:28 +01:00
Marc Bachmann 5a6bf802ce Fix TodoMVC example (#618)
In choo-devtools@2.0.0 there were some conflicting methods.
On https://github.com/choojs/choo-devtools/blob/v2.0.0/index.js#L37
`window.choo.log` was set, which was a getter defined in
https://github.com/choojs/choo-devtools/blob/v2.0.0/lib/log.js#L21

This basically broke the whole app.
2018-01-15 20:06:59 +01:00
Yoshua Wuyts 4cc3d2eff6 bump devtools (#588) 2017-10-21 01:48:01 +02:00
Yoshua Wuyts a3c2e0cae0 update example (#583) 2017-10-18 14:07:57 +02:00
Yoshua Wuyts 5d2104963c remove default route, parse qs (#521) 2017-06-29 17:20:00 +02:00
Yoshua Wuyts eb9b7fd59f v6 beta branch (#489)
* become prototype based

upgrade to new nanobus

remove nanohistory

add nanotiming

remove nanomount

move newTree to next tick

upgrade timing API

add more node warnings to .start/.mount

add morph timing

pass app instance to .use()

self-clearing async-timing

clean up timings

better mount error

fix mount bug

de-prototype helper functions

update to latest nanotiming

upgrade to nanotiming 5

update nanotiming

add toString asserts

more assertions

add event based tracing

expose createlocation

assert return types from render to always be the same

add navigate event

expose route on state

expose events

update uglify

use scroll-to-anchor

update nanobus

document events

update docs

more docs

changelog v6

upgrade nanomorph

fixup! neatify morph assertions

update bel dep

add popstate docs to changelog

* expose events on state

* upgrade deps
2017-06-28 15:53:37 +02:00
Yoshua Wuyts 357d7d14b5 fix example line length nit 2017-04-26 04:09:55 +02:00
Yoshua Wuyts 16d15d0e88 optimize example further (#462) 2017-04-02 01:19:59 +02:00
Yoshua Wuyts 96c0d1bc29 remove deopts from example (#460) 2017-04-01 17:51:27 +02:00
Yoshua Wuyts 4ef1f411b5 add timing API support (#448)
* add timing API support

* fixup! bump package.json
2017-03-29 10:43:42 +02:00
Byron Hulcher 5602bc039b Fixes for example code (#433)
* Added bel,  choo-persist, and choo-log to dependencies

* Fixed bug in example code where deletes were not updating active/done lists correctly
2017-03-22 00:49:21 +01:00
Yoshua Wuyts 8e8e870d45 implement choo v5 API (#425)
* implement choo v5 API

* fix tests

* 5.0.0-3

* 4kb now

* bump nanomorph

* 5.0.0-4

* fix missing deps stuff

* 5.0.0-5

* fix travis

* fixup! oops standard

* chooexpose

* fix state passing

* fixup! update example

* fixup! incorporate feedback

* fixup! more docs

* fixup! even more docs
2017-03-21 03:00:45 +01:00