Created
July 12, 2019 15:17
-
-
Save matthewp/d59b2680e840c1bb2944c65ebbeb4a47 to your computer and use it in GitHub Desktop.
haunted example
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/ | |
build/ |
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
import {html} from "lit-html"; | |
import {component} from "haunted"; // was: import {component} from "haunted"; | |
const App = () => html`test`; | |
customElements.define('my-app', component(App)); |
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> | |
<html lang="en"> | |
<title>Test app</title> | |
<meta charset="utf-8"> | |
<script type="module" src="./bundle.js"></script> | |
<my-app></my-app> |
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": "haunted-app", | |
"version": "1.0.0", | |
"description": "Haunted app", | |
"main": "app.js", | |
"scripts": { | |
"build": "rollup -c rollup.config.js", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "", | |
"license": "BSD-2-Clause", | |
"devDependencies": { | |
"haunted": "^4.5.1", | |
"lit-html": "^1.1.1", | |
"rollup": "^1.16.6", | |
"rollup-plugin-commonjs": "^10.0.1", | |
"rollup-plugin-node-resolve": "^5.2.0" | |
} | |
} |
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
import commonjs from 'rollup-plugin-commonjs'; | |
import nodeResolve from 'rollup-plugin-node-resolve'; | |
export default { | |
input: 'app.js', | |
output: { | |
file: 'bundle.js', | |
format: 'es' | |
}, | |
plugins: [ | |
nodeResolve({}), | |
commonjs({}) | |
] | |
}; | |
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
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | |
# yarn lockfile v1 | |
"@types/[email protected]": | |
version "0.0.39" | |
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" | |
"@types/node@*", "@types/node@^12.0.10": | |
version "12.0.12" | |
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.0.12.tgz#cc791b402360db1eaf7176479072f91ee6c6c7ca" | |
"@types/[email protected]": | |
version "0.0.8" | |
resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-0.0.8.tgz#f26074d238e02659e323ce1a13d041eee280e194" | |
dependencies: | |
"@types/node" "*" | |
acorn@^6.1.1: | |
version "6.2.0" | |
resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.2.0.tgz#67f0da2fc339d6cfb5d6fb244fd449f33cd8bbe3" | |
builtin-modules@^3.1.0: | |
version "3.1.0" | |
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.1.0.tgz#aad97c15131eb76b65b50ef208e7584cd76a7484" | |
estree-walker@^0.6.1: | |
version "0.6.1" | |
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.6.1.tgz#53049143f40c6eb918b23671d1fe3219f3a1b362" | |
haunted@^4.5.1: | |
version "4.5.1" | |
resolved "https://registry.yarnpkg.com/haunted/-/haunted-4.5.1.tgz#c0652ac3ec41cc666e1d0380cacab3e73066514a" | |
dependencies: | |
lit-html "^1.0.0" | |
is-module@^1.0.0: | |
version "1.0.0" | |
resolved "https://registry.yarnpkg.com/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591" | |
is-reference@^1.1.2: | |
version "1.1.2" | |
resolved "https://registry.yarnpkg.com/is-reference/-/is-reference-1.1.2.tgz#01cf91517d21db66a34642287ed6e70d53dcbe5c" | |
dependencies: | |
"@types/estree" "0.0.39" | |
lit-html@^1.0.0, lit-html@^1.1.1: | |
version "1.1.1" | |
resolved "https://registry.yarnpkg.com/lit-html/-/lit-html-1.1.1.tgz#186ed6abcc70c0d24e1132b37411c3b2645ed1aa" | |
magic-string@^0.25.2: | |
version "0.25.3" | |
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.3.tgz#34b8d2a2c7fec9d9bdf9929a3fd81d271ef35be9" | |
dependencies: | |
sourcemap-codec "^1.4.4" | |
path-parse@^1.0.6: | |
version "1.0.6" | |
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" | |
resolve@^1.11.0, resolve@^1.11.1: | |
version "1.11.1" | |
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.11.1.tgz#ea10d8110376982fef578df8fc30b9ac30a07a3e" | |
dependencies: | |
path-parse "^1.0.6" | |
rollup-plugin-commonjs@^10.0.1: | |
version "10.0.1" | |
resolved "https://registry.yarnpkg.com/rollup-plugin-commonjs/-/rollup-plugin-commonjs-10.0.1.tgz#fbfcadf4ce2e826068e056a9f5c19287d9744ddf" | |
dependencies: | |
estree-walker "^0.6.1" | |
is-reference "^1.1.2" | |
magic-string "^0.25.2" | |
resolve "^1.11.0" | |
rollup-pluginutils "^2.8.1" | |
rollup-plugin-node-resolve@^5.2.0: | |
version "5.2.0" | |
resolved "https://registry.yarnpkg.com/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-5.2.0.tgz#730f93d10ed202473b1fb54a5997a7db8c6d8523" | |
dependencies: | |
"@types/resolve" "0.0.8" | |
builtin-modules "^3.1.0" | |
is-module "^1.0.0" | |
resolve "^1.11.1" | |
rollup-pluginutils "^2.8.1" | |
rollup-pluginutils@^2.8.1: | |
version "2.8.1" | |
resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.1.tgz#8fa6dd0697344938ef26c2c09d2488ce9e33ce97" | |
dependencies: | |
estree-walker "^0.6.1" | |
rollup@^1.16.6: | |
version "1.16.6" | |
resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.16.6.tgz#0d979e3edd14a27e5436a145c7f1fcef35e0083b" | |
dependencies: | |
"@types/estree" "0.0.39" | |
"@types/node" "^12.0.10" | |
acorn "^6.1.1" | |
sourcemap-codec@^1.4.4: | |
version "1.4.6" | |
resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.6.tgz#e30a74f0402bad09807640d39e971090a08ce1e9" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment