Skip to content

Commit 158d87f

Browse files
committed
init from template
0 parents  commit 158d87f

File tree

11 files changed

+305
-0
lines changed

11 files changed

+305
-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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
target/
2+
.mooncakes/
3+
.DS_Store

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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Calcit Embed
2+
3+
TODO

moon.mod.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "tiye/calcit-embed",
3+
"version": "0.1.0",
4+
"readme": "README.md",
5+
"repository": "",
6+
"license": "Apache-2.0",
7+
"keywords": [],
8+
"description": "",
9+
"source": "src"
10+
}

src/lib/dsl.mbt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
///|
2+
pub fn hello() -> String {
3+
"Hello, world!"
4+
}

src/lib/dsl_test.mbt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
///|
2+
test "hello" {
3+
if @lib.hello() != "Hello, world!" {
4+
fail!("@lib.hello() != \"Hello, world!\"")
5+
}
6+
}

src/lib/moon.pkg.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

src/main/main.mbt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
///|
2+
fn main {
3+
println(@lib.hello())
4+
}

0 commit comments

Comments
 (0)