Created
April 15, 2019 22:20
-
-
Save Hypercubed/6a2c7e5c21355bc109f0c06e6a5a62c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-/ | |
node_modules/ | |
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
"package_path": "./-/", | |
"package_root": "/-/" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<head> | |
<script src="/-/@webcomponents/[email protected]/webcomponents-bundle.js"></script> | |
<script type="module" src="/-/[email protected]/dist/es-module-shims.js"></script> | |
<script type="importmap-shim" src="/-/importmap.json"></script> | |
<script type="module-shim"> | |
import { LitElement, css } from 'lit-element@2'; | |
import { html } from 'lit-html@1'; | |
class MyElement extends LitElement { | |
static get properties() { | |
return { | |
mood: {type: String} | |
} | |
} | |
static get styles() { | |
return css`.mood { color: green; }`; | |
} | |
render() { | |
return html`Web Components are <span class="mood">${this.mood}</span>!`; | |
} | |
} | |
customElements.define('my-element', MyElement); | |
</script> | |
</head> | |
<body> | |
<my-element mood="great"></my-element> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "@swimlane/airdrop-example", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"airdrop": "airdrop add [email protected] [email protected] [email protected] @webcomponents/[email protected] --clean" | |
}, | |
"author": "", | |
"license": "MIT", | |
"devDependencies": { | |
"@swimlane/airdrop-cli": "^1.0.0-rc1.5" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment