Skip to content

Instantly share code, notes, and snippets.

@Hypercubed Hypercubed/.gitignore
Last active Apr 16, 2019

Embed
What would you like to do?
-/
node_modules/
package-lock.json
module.exports = {
"package_path": "./-/",
"package_root": "/-/"
}
<!doctype html>
<head>
<script type="module">
import { LitElement, css, html } from '/-/lit-element@2.1.0.bundle.js';
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>
{
"name": "@swimlane/airdrop-example",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"airdrop": "airdrop add lit-element@2.1.0 --clean --bundle"
},
"author": "",
"license": "MIT",
"devDependencies": {
"@swimlane/airdrop-cli": "^1.0.0-rc1.6"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.