Skip to content

Commit 7891d4f

Browse files
committed
Use Vite for demo page
1 parent b99f368 commit 7891d4f

File tree

6 files changed

+840
-2
lines changed

6 files changed

+840
-2
lines changed

.github/workflows/publish-demo.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish Demo
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v2
12+
with:
13+
node-version: '16'
14+
cache: 'npm'
15+
- run: npm ci
16+
- run: npm run build
17+
- uses: peaceiris/actions-gh-pages@v3
18+
with:
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
publish_dir: ./dist

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
*.log
33
node_modules/
4+
dist/

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v16.13.2

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
# codemirror-lambda-calculus
22

33
Lambda Calculus mode for CodeMirror.
4+
5+
- `defineMode(CodeMirror)`: Define `lambdacalc` mode and MIME `text/x-lambdacalc`
6+
7+
## Development
8+
9+
Run `npm run dev` to start a local dev server.

0 commit comments

Comments
 (0)