granite-js-dependencies-grabber
A custom element to ensure that non-componentalized, mon-modularized external JavaScript libraries are loader once and only once, and in the right order
granite-js-dependency-grabber
Based on Polymer 2.x
A custom element and a mixin to ensure that non-componentalized mon-modularized external
JavaScript libraries are loader once and only once, and in the right order,
importing all the needed dependencies only if they aren't already loaded
Usage example
<granite-js-dependencies-grabber
id="granite-js-dependencies-grabber-demo"
dependencies='[{"name":"moment","url":"../moment/min/moment.min.js"},{"name":"Chart","url":"../chart.js/dist/Chart.min.js"}]'
debug></granite-js-dependencies-grabber>
Install the Polymer-CLI
First, make sure you have the Polymer CLI installed. Then run polymer serve
to serve your element locally.
Viewing Your Element
$ polymer serve
Running Tests
$ polymer test
Your application is already set up to be tested via web-component-tester. Run polymer test
to run your application's test suite locally.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Dependencies
- @polymer/polymer#^3.0.0
- Released
- 2018-05-21
- Maturity
- IMPORTED
- License
- Apache License 2.0
Compatibility
- Framework
- Polymer 3.0+
- Polymer 2.0+ in 1.0.0
- Browser
- Browser Independent
granite-js-dependencies-grabber - Vaadin Add-on Directory
A custom element to ensure that non-componentalized, mon-modularized external JavaScript libraries are loader once and only once, and in the right orderLicense
Online Demo
Documentation
View on NPM
GitHub Homepage
Issue tracker
granite-js-dependencies-grabber version 1.0.0
### Dependencies
* polymer#Polymer/polymer#^2.0.0
granite-js-dependencies-grabber version 1.1.0
### Dependencies
* polymer#Polymer/polymer#^2.0.0
granite-js-dependencies-grabber version 1.2.0
### Dependencies
* polymer#Polymer/polymer#^2.0.0
granite-js-dependencies-grabber version 1.2.1
### Dependencies
* polymer#Polymer/polymer#^2.0.0
granite-js-dependencies-grabber version 2.0.0
### Dependencies
* @polymer/polymer#^3.0.0
granite-js-dependencies-grabber version 2.0.1
### Dependencies
* @polymer/polymer#^3.0.0
granite-js-dependencies-grabber version 2.0.2
### Dependencies
* @polymer/polymer#^3.0.0
granite-js-dependencies-grabber version 2.0.3
### Dependencies
* @polymer/polymer#^3.0.0