Commit graph

10 commits

Author SHA1 Message Date
15683cb1d1 fix: dont require config file
Fixes a couple of issues with config files in websnacks projects.

First, config files are no longer required and the dev and build
commands will no longer error out if a websnacks.ts/js file doesn't
exist.

Second, all optional user config params are now actually optional -
before some parameters were assumed to exist and would error out if not
present (e.g. the "watch" parameter).

Finally, e2e tests were added to prevent regressions on these issues
and test helpers were extracted to a separate file.
2020-06-10 12:39:54 -07:00
cb9c4342de fix: dev cmd didn't watch files due to import mangling
Appearently the esModuleInterop flag in TypeScript is not compatible
with node-watch, and the import helper was mangling the import as a
result and causing an error in the dev command that resulted in files
not being watched.

This fixes that import issue and adds an e2e test to help prevent a
regression of this issue in the future.
2020-06-09 13:56:11 -07:00
f773d79b91 feat: provide Fragment component
Adds a new Fragment component that provides the same functionality as
React.Fragment. See issue #9 for details.

closes issue #9
2020-06-04 11:25:34 -07:00
cbd80f381c fix: type signature of Component too narrow 2020-06-03 17:27:12 -07:00
7b80d2f324 feat: support rendering array elements 2020-06-02 16:39:44 -07:00
3304958b01 test: show stack of thrown errors 2020-06-02 15:46:24 -07:00
bda8e216e2 fix: support number elements in jsx templates 2020-06-02 15:38:39 -07:00
0a609a4539 test: fix false-pos in runner due to exit code 2020-06-01 23:44:33 -07:00
dcbc07021d chore: resolve linting errors & warnings 2020-06-01 23:29:59 -07:00
7e9bed9d56 test: add testing framework 2020-05-30 11:41:23 -07:00