Skip to content

Commit e130471

Browse files
authored
Initial commit
0 parents  commit e130471

13 files changed

+867
-0
lines changed

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
calcit.cirru -diff linguist-generated
3+
yarn.lock -diff linguist-generated
4+
LICENSE -diff linguist-generated

.github/workflows/check.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: install
16+
run: |
17+
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash
18+
echo "$HOME/.moon/bin" >> $GITHUB_PATH
19+
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: "yarn"
24+
25+
- name: moon check
26+
run: moon update && moon check
27+
28+
# - name: moon info
29+
# run: |
30+
# moon info
31+
# git diff --exit-code
32+
33+
- name: moon test
34+
run: |
35+
moon build --target js --debug
36+
37+
- name: "compiles to js"
38+
run: yarn && yarn vite build --base=./
39+
40+
# - name: moon bundle
41+
# run: moon bundle
42+
43+
# - name: check core size
44+
# run: ls -alh `find ./target/bundle -name *.core`
45+
46+
# - name: format diff
47+
# run: |
48+
# moon fmt
49+
# git diff
50+
51+
- name: Deploy to server
52+
id: deploy
53+
uses: Pendect/[email protected]
54+
env:
55+
DEPLOY_KEY: ${{secrets.rsync_private_key}}
56+
with:
57+
flags: "-avzr --progress"
58+
options: ""
59+
ssh_options: ""
60+
src: "dist/*"
61+
dest: "[email protected]:/web-assets/repo/${{ github.repository }}"
62+
63+
- name: Display status from deploy
64+
run: echo "${{ steps.deploy.outputs.status }}"

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
target/
2+
.mooncakes/
3+
4+
node_modules

LICENSE

+202
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Boilerplate project for Respo
2+
3+
```bash
4+
yarn build
5+
```
6+
7+
## License
8+
9+
Apache License 2.0

index.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Respo Moonbit</title>
5+
<style>
6+
body {
7+
margin: 0;
8+
}
9+
10+
body * {
11+
box-sizing: border-box;
12+
}
13+
</style>
14+
</head>
15+
<body>
16+
<!-- <script src="./main.mjs" type="module"></script> -->
17+
<div class="app"></div>
18+
<script
19+
src="./target/js/debug/build/main/main.js"
20+
type="module"
21+
defer
22+
></script>
23+
</body>
24+
</html>

moon.mod.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "tiye/respo-workflow",
3+
"version": "0.1.0",
4+
"deps": {
5+
"tiye/respo": "0.0.17",
6+
"tiye/dom-ffi": "0.0.6"
7+
},
8+
"readme": "README.md",
9+
"repository": "",
10+
"license": "Apache-2.0",
11+
"keywords": [],
12+
"description": "",
13+
"source": "src"
14+
}

package.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "mbt.respo",
3+
"version": "0.1.0",
4+
"main": "index.js",
5+
"repository": "[email protected]:Respo/respo.mbt.git",
6+
"author": "tiye <[email protected]>",
7+
"license": "MIT",
8+
"scripts": {
9+
"watch-mbt": "moon build --target wasm-gc --debug --watch"
10+
},
11+
"devDependencies": {
12+
"vite": "^5.4.8"
13+
}
14+
}

0 commit comments

Comments
 (0)