I have the following Polymer element with the following dependencies:
box-el
andplayer-el
other Polymer elementsGameController
andKeyboardInputManager
classes that are defined in external files,game_controller.js
.
The question is, how do I package and publish this element as stand-alone, so it is legitimate for customelements.io.
<link rel="import" href="../../bower_components/polymer/polymer.html">
<polymer-element name="soko-ban">
<template>
<link rel="stylesheet" href="soko-ban.css">
<template repeat="{{box in boxes}}">
<box-el model="{{box}}"></box-el>
</template>
<player-el model="{{player}}" id="character"></player-el>
</template>
<script>
(function () {
'use strict';
Polymer({
ready: function() {
var controller = new GameController();
this.player = model.player;
this.boxes = model.boxes;
var inputManager = new KeyboardInputManager();
});
})();
</script>
</polymer-element>
Note that, I know how to publish this element, I am asking how to include the listed dependencies, namely the other Polymer elements, that I have written, and the external script files.