Last active
April 16, 2019 16:22
-
-
Save Hypercubed/ca40630fa6317183d1d8e1f9cdcfdcb3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 hidden or 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 hidden or 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 type="module"> | |
import { LitElement, css, html } from '/-/[email protected]'; | |
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 hidden or 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] --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