Skip to content

Commit

Permalink
feat(babel-plugin-transform-lwc-class): Transform imported decorators (
Browse files Browse the repository at this point in the history
…#49)

* API decorator

* Fix all the tests

* Use single file instead of several visitors

* Migrate all the decorators to the new infra structure

* Add back labels

* Update tests

* Fix all the integration tests

* Fix benchmark imports

* Move constants missing class properties

* Fix wire service tests

* Rename Raptor to LWC

* Change decorator visitor function name

* Fix misc typos

* Store in decorator data structure field type

* Fix review bug

* Restrict usage of other decorators in the compiler

* Fix transform tester

* Rename test to pluginTest for readability purposes

* Fix nitpick
  • Loading branch information
pmdartus authored Feb 2, 2018
1 parent 1618199 commit 172c75b
Show file tree
Hide file tree
Showing 77 changed files with 1,363 additions and 1,053 deletions.
4 changes: 2 additions & 2 deletions packages/babel-plugin-transform-lwc-class/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# babel-plugin-transform-ratpr-class
# babel-plugin-transform-lwc-class

This babel plugin does the following transform:
* Global decorator transform:
* Transform `@api` decorator to `publicPorperties` and `publicMethods` static properties.
* Transform `@wire` decorator to `wire` static property.
* Transform `@track` decorator to `track` static property.
* Raptor component class sugar syntax:
* LWC component class sugar syntax:
* Check for misspelled lifecycle hooks.
* Import and inject `render` from a collocated template if a component class doesn't already implement a `render` method.
* Optimization:
Expand Down
Loading

0 comments on commit 172c75b

Please sign in to comment.