16 Commits

Author SHA1 Message Date
Michael Rawlings
c6a2bf2819
Deprecation warnings (#1073)
* update complain
* use fallback location for deprecation if node does not have a position
2018-07-02 14:20:47 -07:00
Michael Rawlings
e2fd5b63da
dynamic tag (#1057) 2018-06-19 17:11:54 -07:00
Michael Rawlings
0f5e639775 Format + lint (#1016)
* add prettierignore

* switch to eslint:recommended + eslint-config-prettier

* fix eslint violations

* remove more .jshintrc files

* better conditional structure

* add prettier and update prettier ignore

* add precommit hook to run prettier

* add lint check to precommit and format check to ci

* format all the things

* add generated files

* let npm do it's thing with package.json
2018-03-09 10:02:11 -08:00
Michael Rawlings
645c05338c
Hydrate refactor (#929)
* expose component id in metadata and require components to be registered (no dynamic loading that is coupled to lasso)

* add init/hyrdrate/boot code as a template dependency. lasso specific atm.

* decouple metadata from lasso and make it just data (not AST nodes)

* add semicolon

* update compile test snapshots

* fix regression related to initializing components from getRenderedWidgets

* don't fail on writeToDisk

* don't use Object.values

* fix deprecated page tests

* support node 4/6

* fix tests
2017-11-21 13:20:24 -08:00
Michael Rawlings
eddbaaad86 revert master - these changes are on a separate branch 2017-11-11 12:00:14 -08:00
Patrick Steele-Idem
71c10bf74d Allow PascalCase tag to be used for non-pascal-case tag 2017-11-07 10:01:10 -08:00
Michael Rawlings
c96eca1c70 Custom elements support (#860)
* support rendering into a shadow root

* only lowercase the first letter of an event when camel style is used

* Don't use let.  Allow ShadowRoot in jshint.

* for backwards compat, lowercase the entire event when using camel style

* define a custom elements's import as a dependency when it is used in a template

* when rendering on the server, generate a script tag to assign custom-element properties.

* assign attributes to custom-element as properties when actualizing/morphing

* add basic test for rendering a custom-element and assigning properties

* use flag to mark custom elements

* fix brittle version test
2017-09-26 17:37:25 -07:00
Patrick Steele-Idem
2b2ff0b7ca Fixes #854 - Make every .marko file a UI component 2017-09-22 12:12:42 -06:00
Patrick Steele-Idem
2be98636ea Fixes #817 - Support dynamic root elements
[Optimizations] Simplified bookkeeping for component tree
A component stack is no longer used

Small API improvements

Improved how component boundaries are managed

Assign keys to all HTML elements and custom tags for better diffing

Checking in progress

Just build the src when calculating size
2017-09-08 12:32:17 -06:00
Austin Kelleher
42e66c1512 Fixes #778 - Fix Marko compiler generating incorrect path for requires on Windows. 2017-08-14 10:52:49 -04:00
Gleb Ryshkov
d887870f1e Used shortcut for escapeAtTags; 2017-08-08 13:50:56 -07:00
Gleb Ryshkov
228a2a014e Added escapeAtTags options in order to render <@tags> as they are; 2017-08-08 10:29:05 -07:00
Patrick Steele-Idem
5dc43913a6 Fixes #693 - [SSR] Improved handling of top-level UI components with renderBody func 2017-05-30 10:41:38 -06:00
Patrick Steele-Idem
6598f3b98b Build fixes related to compiler 2017-05-19 21:41:53 -06:00
Patrick Steele-Idem
6348a92231 Merge branch '695-xml-unrecognized-tags' of https://github.com/marko-js/marko 2017-05-19 21:12:48 -06:00
Patrick Steele-Idem
a602f3cd46 Introduced src/ and dist/ folders 2017-05-19 14:35:33 -06:00