Skip to content

Commit

Permalink
getting ready for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Nelson committed Dec 31, 2023
1 parent ea3d7e3 commit 7ffe2f2
Show file tree
Hide file tree
Showing 6 changed files with 731 additions and 3,041 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Simple workflow for deploying static content to GitHub Pages
name: Run tests

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
# Single deploy job since we're just deploying
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v2
- name: install npms
run: npm install
- name: Run tests
run: npm test
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish npm package

on:
push:
tags:
- v*

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
29 changes: 0 additions & 29 deletions importmap.json

This file was deleted.

42 changes: 42 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<html>
<head>
<script async src="https://ga.jspm.io/npm:[email protected]/dist/es-module-shims.js" crossorigin="anonymous"></script>
<script type="importmap">
{
"imports": {
"phx-live-state": "https://ga.jspm.io/npm:[email protected]/build/src/index.js",
"templize/templize.js": "https://ga.jspm.io/npm:[email protected]/templize.js"
},
"scopes": {
"https://ga.jspm.io/": {
"@launchscout/wc-context": "https://ga.jspm.io/npm:[email protected]/core.js",
"element-props": "https://ga.jspm.io/npm:[email protected]/element-props.js",
"json-joy/esm/json-patch": "https://ga.jspm.io/npm:[email protected]/esm/json-patch/index.js",
"phoenix": "https://ga.jspm.io/npm:[email protected]/priv/static/phoenix.mjs",
"process": "https://ga.jspm.io/npm:@jspm/[email protected]/nodelibs/browser/process.js",
"reflect-metadata": "https://ga.jspm.io/npm:[email protected]/Reflect.js",
"sube": "https://ga.jspm.io/npm:[email protected]/sube.js",
"subscript": "https://ga.jspm.io/npm:[email protected]/subscript.js",
"subscript/parse.js": "https://ga.jspm.io/npm:[email protected]/parse.js",
"template-parts": "https://ga.jspm.io/npm:[email protected]/template-parts.js"
}
}
}
</script>
<script type="module">
import './src/live-template.js'
</script>
</head>
<body>
<live-template url="ws://localhost:4000/live_state" topic="todo:all">
<ul>
<li :each="{{todo in todos}}">{{todo}}</li>
</ul>
<form onsubmit={{send('add-todo')}}>
<label>Todo item</label>
<input name="todo" />
<button>Add todo</button>
</form>
</live-template>
</body>
</html>
Loading

0 comments on commit 7ffe2f2

Please sign in to comment.