adamshone / es6-webcomponent-scaffold Goto Github PK
View Code? Open in Web Editor NEWA framework for an application built from Polymer web components written in ES6, transpiled to ES5 using Traceur.
A framework for an application built from Polymer web components written in ES6, transpiled to ES5 using Traceur.
At the moment the three web components are listed by name in the traceur block of the gruntfile:
files:{
'app/scripts/es5/transpiled/app.js': ['app/scripts/es6/app.js'],
'app/elements/demo-receiver/script/es5/transpiled/demo-receiver.js' : ['app/elements/demo-receiver/script/es6/demo-receiver.js'],
'app/elements/demo-transmitter/script/es5/transpiled/demo-transmitter.js' : ['app/elements/demo-transmitter/script/es6/demo-transmitter.js']
}
It's annoying having to remember to change the build file every time you create or rename a web component, would be better if it could pick them all up with better paths and wildcards.
After running grunt build
, the resulting version of the app in the dist folder does not work.
Getting 404s for the two demo web components, looks like it's expecting the elements folder to be copied to the dist folder. Also 404 for a built version of Emitr, and System (part of Polymer) is not defined.
Ideally the grunt build process would include the transpiled web components in the concatenated/minified JS files etc, probably easier just to make the grunt build copy the web components into the dist directory manually as a first step.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.