-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6243f9d
Showing
13 changed files
with
905 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
target/ | ||
.mooncakes/ | ||
|
||
node_modules |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Oops, something went wrong.