Skip to content

Commit

Permalink
split a demo out from respo
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Oct 13, 2024
0 parents commit 6243f9d
Show file tree
Hide file tree
Showing 13 changed files with 905 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

calcit.cirru -diff linguist-generated
yarn.lock -diff linguist-generated
LICENSE -diff linguist-generated
64 changes: 64 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: check

on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: install
run: |
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash
echo "$HOME/.moon/bin" >> $GITHUB_PATH
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"

# - name: moon check
# run: moon check

# - name: moon info
# run: |
# moon info
# git diff --exit-code

- name: moon test
run: |
moon build --target js --debug
- name: "compiles to js"
run: yarn && yarn vite build --base=./

# - name: moon bundle
# run: moon bundle

# - name: check core size
# run: ls -alh `find ./target/bundle -name *.core`

# - name: format diff
# run: |
# moon fmt
# git diff

- name: Deploy to server
id: deploy
uses: Pendect/[email protected]
env:
DEPLOY_KEY: ${{secrets.rsync_private_key}}
with:
flags: "-avzr --progress"
options: ""
ssh_options: ""
src: "dist/*"
dest: "[email protected]:/web-assets/repo/${{ github.repository }}"

- name: Display status from deploy
run: echo "${{ steps.deploy.outputs.status }}"
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
target/
.mooncakes/

node_modules
202 changes: 202 additions & 0 deletions LICENSE

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

9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Boilerplate project for Respo

```bash
yarn build
```

## License

Apache License 2.0
24 changes: 24 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title>Respo Moonbit</title>
<style>
body {
margin: 0;
}

body * {
box-sizing: border-box;
}
</style>
</head>
<body>
<!-- <script src="./main.mjs" type="module"></script> -->
<div class="app"></div>
<script
src="./target/js/debug/build/main/main.js"
type="module"
defer
></script>
</body>
</html>
15 changes: 15 additions & 0 deletions moon.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "tiye/respo-workflow",
"version": "0.1.0",
"deps": {
// "tiye/respo": "0.0.2",
"tiye/respo": { "path": "/Users/chenyong/repo/moon/respo" },
"tiye/dom-ffi": { "path": "/Users/chenyong/repo/moon/dom-ffi" }
},
"readme": "README.md",
"repository": "",
"license": "Apache-2.0",
"keywords": [],
"description": "",
"source": "src"
}
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "mbt.respo",
"version": "0.1.0",
"main": "index.js",
"repository": "[email protected]:Respo/respo.mbt.git",
"author": "tiye <[email protected]>",
"license": "MIT",
"scripts": {
"watch-mbt": "moon build --target wasm-gc --debug --watch"
},
"devDependencies": {
"vite": "^5.4.8"
}
}
Loading

0 comments on commit 6243f9d

Please sign in to comment.