-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chris Nelson
committed
Dec 31, 2023
1 parent
ea3d7e3
commit 7ffe2f2
Showing
6 changed files
with
731 additions
and
3,041 deletions.
There are no files selected for viewing
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
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 |
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
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 }} |
This file was deleted.
Oops, something went wrong.
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
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> |
Oops, something went wrong.