twc
twc copied to clipboard
TypeScript based, boilerplate-less, Polymer toolbox friendly Polymer Modules
I have code similar to this ``` import {IHydraResource} from 'alcaeus/types/Resources'; @CustomElement() export class AugeanConsole extends Polymer.Element { model: IHydraResource = null; } ``` The interface has no meaning in...
I'm trying to push type number into type Array using a generic component, but because any becomes object, not undefined, it is causing huge errors in the application.
When running `twc --watch` elements are regenerated only when the TypeScript files are modified. They should also be regenerated when the files used in `@style` and `@template` are modified.
It should be possible to configure a loader for custom file extensions, that was asked for #134. Could you please specify what output would you like to achieve with the...
The code is pretty messy right now. It needs to be rewritten in some parts, needs better comments (JSDoc) and better tests coverage.
Polymer itself relies on simple data binding, and does not provide expressions. TWC can fulfill those gaps, but it's not as trivial to design as one would think. There are...
While implementing #108 will be complex and require bending the language to our needs, I'm thinking that maybe a simple solution is possible by pre-processing `this.importHref`/`Polymer.importHref` so that one can...
I've just realized that with TWC it is not possible to have additional markup inside of the `` which is how `` are used: ``` html class MyElement extends Polymer.Element...
Currently when generating mixins the console reads ``` `Module` generated in 149ms `MyElement` generated in 78ms ``` It would be nice to actually put the mixin's name in the output...
I have multiple behaviors exported in same namespace: ``` ts // MixinOne.ts export namespace Example { export function MixinOne(superClass: T) { return class extends superClass { } } } //...