Skip to content

Commit

Permalink
feat: import code
Browse files Browse the repository at this point in the history
  • Loading branch information
secona committed Jul 12, 2024
0 parents commit c8eb9cc
Show file tree
Hide file tree
Showing 289 changed files with 2,123 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
on:
workflow_dispatch:
push:
branches:
- 'main'

defaults:
run:
working-directory: belalang_web

jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: checkout
uses: actions/checkout@v4

- name: install node.js
uses: actions/setup-node@v4
with:
node-version: 21

- name: install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: build wasm
run: wasm-pack build --release

- name: install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: install dependencies
run: pnpm install

- name: build project
run: pnpm build

- name: publish to cloudflare pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
projectName: ${{ secrets.CF_PROJECT_NAME }}
directory: dist
workingDirectory: belalang_web

25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

169 changes: 169 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "belalang_playground"
version = "0.1.0"
edition = "2021"
publish = false
license = "Apache-2.0"

[lib]
crate-type = ["cdylib"]

[dependencies]
belalang_core = { git = "https://github.com/secona/belalang", rev = "678d9ade46d66eb8259083324cfea584cb7a2f25" }
belalang_eval = { git = "https://github.com/secona/belalang", rev = "678d9ade46d66eb8259083324cfea584cb7a2f25" }
wasm-bindgen = "0.2.92"
Loading

0 comments on commit c8eb9cc

Please sign in to comment.