Skip to content

Commit 451daae

Browse files
authored
Initialize try-28
0 parents  commit 451daae

File tree

13 files changed

+887
-0
lines changed

13 files changed

+887
-0
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
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

Lines changed: 64 additions & 0 deletions
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: 22
23+
cache: "yarn"
24+
25+
- name: moon check
26+
run: moon update && moon check --target js
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/action-rsyncer@v2.0.0
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: "rsync-user@tiye.me:/web-assets/repo/${{ github.repository }}"
62+
63+
- name: Display status from deploy
64+
run: echo "${{ steps.deploy.outputs.status }}"

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
target/
2+
.mooncakes/
3+
4+
node_modules

LICENSE

Lines changed: 202 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Boilerplate project for Respo
2+
3+
```bash
4+
moon build --target js --debug --watch
5+
6+
yarn
7+
yarn vite
8+
```
9+
10+
To build the project, run:
11+
12+
```bash
13+
moon build --target js
14+
yarn
15+
yarn vite build --base ./
16+
```
17+
18+
## License
19+
20+
Apache License 2.0

index.html

Lines changed: 24 additions & 0 deletions
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

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

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "mbt.respo",
3+
"version": "0.1.0",
4+
"main": "index.js",
5+
"repository": "git@github.com:Respo/respo.mbt.git",
6+
"author": "tiye <jiyinyiyong@gmail.com>",
7+
"license": "MIT",
8+
"scripts": {
9+
"watch-mbt": "moon build --target wasm-gc --debug --watch"
10+
},
11+
"devDependencies": {
12+
"vite": "^6.2.2"
13+
},
14+
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
15+
}

0 commit comments

Comments
 (0)