Skip to content

Commit

Permalink
updated: simplify setup
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Dec 8, 2023
1 parent a91a659 commit bd5187c
Show file tree
Hide file tree
Showing 7 changed files with 3,038 additions and 1,254 deletions.
23 changes: 1 addition & 22 deletions deno/import_map.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
{
"imports": {
"riot": "./node_modules/riot/esm/riot.js",
"@riotjs/dom-bindings": "./node_modules/@riotjs/dom-bindings/dist/esm.dom-bindings.js",
"@riotjs/util/dom": "./node_modules/@riotjs/util/dom.js",
"@riotjs/util/constants": "./node_modules/@riotjs/util/constants.js",
"@riotjs/util/binding-types": "./node_modules/@riotjs/util/binding-types.js",
"@riotjs/util/expression-types": "./node_modules/@riotjs/util/expression-types.js",
"@riotjs/util/checks": "./node_modules/@riotjs/util/checks.js",
"@riotjs/util/objects": "./node_modules/@riotjs/util/objects.js",
"@riotjs/util/misc": "./node_modules/@riotjs/util/misc.js",
"@riotjs/util": "./node_modules/@riotjs/util/index.js",
"@riotjs/ssr": "./node_modules/@riotjs/ssr/src/index.js",
"linkedom/worker": "https://esm.sh/linkedom/worker.js",
"curri": "./node_modules/curri/index.next.js",
"cumpa": "./node_modules/cumpa/index.next.js",
"@riotjs/hydrate": "./node_modules/@riotjs/hydrate/src/index.js",
"@riotjs/route": "./node_modules/@riotjs/route/route.esm.js",
"erre": "./node_modules/erre/index.next.js",
"ruit": "./node_modules/ruit/index.next.js",
"bianco.attr": "./node_modules/bianco.attr/index.next.js",
"bianco.query": "./node_modules/bianco.query/index.next.js",
"bianco.dom-to-array": "./node_modules/bianco.dom-to-array/index.next.js",
"morphdom/src/specialElHandlers": "./node_modules/morphdom/src/specialElHandlers.js"
"@riotjs/ssr": "./node_modules/@riotjs/ssr/index.js"
}
}
3 changes: 0 additions & 3 deletions deno/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
window.__INITIAL_STATE__ = <%= initialState %>
</script>

<script type="importmap">
<%= importMap %>
</script>
<script type="module">
import './public/main.js'
</script>
Expand Down
3 changes: 1 addition & 2 deletions deno/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ app.use(async (ctx, next) => {
ctx.response.body = template(page)({
html,
css,
initialState: JSON.stringify(initialState),
importMap: JSON.stringify(importMap)
initialState: JSON.stringify(initialState)
})
})

Expand Down
Loading

0 comments on commit bd5187c

Please sign in to comment.