Skip to content

Commit 403049c

Browse files
authored
Merge pull request #46 from kcl-lang/feat-wasm
feat: impl wasm backend, run, fmt and share features
2 parents 2c74f03 + 129799a commit 403049c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+521
-8454
lines changed

.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
1-
name: CI
1+
name: build
22
on:
33
pull_request:
4-
branches:
4+
branches:
55
- main
66
push:
7-
branches:
7+
branches:
88
- main
9-
109
jobs:
11-
test:
12-
name: Test
10+
build:
1311
runs-on: ubuntu-latest
14-
container:
15-
image: plutolang/pluto
1612
steps:
17-
- name: Check out code
18-
uses: actions/checkout@v4
19-
- name: Install dependencies
20-
run: |
21-
apt update
22-
apt install lsof
23-
npm install
24-
python3 -m pip install -r requirements.txt
25-
python3 -m pip install pytest
26-
- name: Build web
27-
run: cd web && npm install && npm run build
28-
- name: Test
29-
run: ./scripts/test.sh
13+
- name: Git checkout
14+
uses: actions/checkout@v2
15+
16+
- name: NPM install
17+
env:
18+
NODE_OPTIONS: "--max_old_space_size=4096"
19+
run: npm install
20+
- name: NPM build
21+
env:
22+
NODE_OPTIONS: "--max_old_space_size=4096"
23+
run: npm run build

.github/workflows/release.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.gitignore

Lines changed: 196 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,198 @@
1-
*.db
2-
vendor
3-
4-
*.a
5-
*.o
6-
*.so
7-
8-
*.exe
9-
*.lib
10-
*.dll
11-
12-
a.out*
13-
zz_*
14-
/_build*
15-
*.dylib
16-
*.lock
17-
.kclvm
18-
19-
**/target/
20-
**/.DS_Store
21-
**/.vscode
22-
node_modules
1+
# Created by https://www.toptal.com/developers/gitignore/api/node
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=node
3+
4+
### Node ###
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
lerna-debug.log*
2312
package-lock.json
2413

25-
# pluto
26-
.pluto/**/*
27-
__pycache__
14+
# Diagnostic reports (https://nodejs.org/api/report.html)
15+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
16+
17+
# Runtime data
18+
pids
19+
*.pid
20+
*.seed
21+
*.pid.lock
22+
23+
# Directory for instrumented libs generated by jscoverage/JSCover
24+
lib-cov
25+
26+
# Coverage directory used by tools like istanbul
27+
coverage
28+
*.lcov
29+
30+
# nyc test coverage
31+
.nyc_output
32+
33+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
34+
.grunt
35+
36+
# Bower dependency directory (https://bower.io/)
37+
bower_components
38+
39+
# node-waf configuration
40+
.lock-wscript
41+
42+
# Compiled binary addons (https://nodejs.org/api/addons.html)
43+
build/Release
44+
45+
# Dependency directories
46+
node_modules/
47+
jspm_packages/
48+
49+
# TypeScript v1 declaration files
50+
typings/
51+
52+
# TypeScript cache
53+
*.tsbuildinfo
54+
55+
# Optional npm cache directory
56+
.npm
57+
58+
# Optional eslint cache
59+
.eslintcache
60+
61+
# Microbundle cache
62+
.rpt2_cache/
63+
.rts2_cache_cjs/
64+
.rts2_cache_es/
65+
.rts2_cache_umd/
66+
67+
# Optional REPL history
68+
.node_repl_history
69+
70+
# Output of 'npm pack'
71+
*.tgz
72+
73+
# Yarn Integrity file
74+
.yarn-integrity
75+
76+
# dotenv environment variables file
77+
.env
78+
.env.test
79+
80+
# parcel-bundler cache (https://parceljs.org/)
81+
.cache
82+
83+
# Next.js build output
84+
.next
85+
86+
# Nuxt.js build / generate output
87+
.nuxt
88+
dist
89+
90+
# Gatsby files
91+
.cache/
92+
# Comment in the public line in if your project uses Gatsby and not Next.js
93+
# https://nextjs.org/blog/next-9-1#public-directory-support
94+
# public
95+
96+
# vuepress build output
97+
.vuepress/dist
98+
99+
# Serverless directories
100+
.serverless/
101+
102+
# FuseBox cache
103+
.fusebox/
104+
105+
# DynamoDB Local files
106+
.dynamodb/
107+
108+
# TernJS port file
109+
.tern-port
110+
111+
# Stores VSCode versions used for testing VSCode extensions
112+
.vscode-test
113+
114+
# End of https://www.toptal.com/developers/gitignore/api/node
115+
116+
# Created by https://www.toptal.com/developers/gitignore/api/macos
117+
# Edit at https://www.toptal.com/developers/gitignore?templates=macos
118+
119+
### macOS ###
120+
# General
121+
.DS_Store
122+
.AppleDouble
123+
.LSOverride
124+
125+
# Icon must end with two
126+
Icon
127+
128+
129+
# Thumbnails
130+
._*
131+
132+
# Files that might appear in the root of a volume
133+
.DocumentRevisions-V100
134+
.fseventsd
135+
.Spotlight-V100
136+
.TemporaryItems
137+
.Trashes
138+
.VolumeIcon.icns
139+
.com.apple.timemachine.donotpresent
140+
141+
# Directories potentially created on remote AFP share
142+
.AppleDB
143+
.AppleDesktop
144+
Network Trash Folder
145+
Temporary Items
146+
.apdisk
147+
148+
### macOS Patch ###
149+
# iCloud generated files
150+
*.icloud
151+
152+
# End of https://www.toptal.com/developers/gitignore/api/macos
153+
154+
# Created by https://www.toptal.com/developers/gitignore/api/windows
155+
# Edit at https://www.toptal.com/developers/gitignore?templates=windows
156+
157+
### Windows ###
158+
# Windows thumbnail cache files
159+
Thumbs.db
160+
Thumbs.db:encryptable
161+
ehthumbs.db
162+
ehthumbs_vista.db
163+
164+
# Dump file
165+
*.stackdump
166+
167+
# Folder config file
168+
[Dd]esktop.ini
169+
170+
# Recycle Bin used on file shares
171+
$RECYCLE.BIN/
172+
173+
# Windows Installer files
174+
*.cab
175+
*.msi
176+
*.msix
177+
*.msm
178+
*.msp
179+
180+
# Windows shortcuts
181+
*.lnk
182+
183+
# End of https://www.toptal.com/developers/gitignore/api/windows
184+
185+
#Added by cargo
186+
187+
/target
188+
Cargo.lock
189+
190+
.pnp.*
191+
.yarn/*
192+
!.yarn/patches
193+
!.yarn/plugins
194+
!.yarn/releases
195+
!.yarn/sdks
196+
!.yarn/versions
197+
198+
*.node
File renamed without changes.

Dockerfile

Lines changed: 0 additions & 14 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 11 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,24 @@
44

55
## Dependencies
66

7-
+ Docker
8-
+ Python 3.7+
97
+ Node.js
108

119
## Quick Start
1210

1311
```shell
14-
python3 -m pip install -U -r ./requirements.txt
1512
npm install
16-
npm install -g pluto
17-
make
1813
```
1914

2015
## Run
2116

2217
```shell
23-
pluto run
18+
npm run start
2419
```
2520

26-
## Deploy
21+
## Build
2722

2823
```shell
29-
pluto deploy
24+
npm run build
3025
```
3126

3227
## Screenshot

0 commit comments

Comments
 (0)