Skip to content

Commit addc69f

Browse files
committed
update deps
1 parent 8c830e0 commit addc69f

26 files changed

+3230
-926
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
tags:
9+
- "v*.*.*"
10+
pull_request:
11+
branches:
12+
- main
13+
- master
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- run: npm install -g pnpm
21+
- run: pnpm install
22+
- run: pnpm check
23+
- run: pnpm build
24+
25+
- name: Release
26+
uses: softprops/action-gh-release@v2
27+
if: startsWith(github.ref, 'refs/tags/v')
28+
with:
29+
token: ${{ secrets.GITHUB_TOKEN }}
30+
body: |
31+
Auto-generated release
32+
prerelease: ${{ contains(github.event.ref, '-beta') }}
33+
fail_on_unmatched_files: true
34+
files: ./dist-xdc/*.xdc

.github/workflows/release-python.yml

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

.gitignore

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1-
build/
2-
*.xdc
1+
# Logs
2+
pnpm-debug.log*
3+
.pnpm-debug.log
4+
5+
node_modules
6+
dist
7+
dist-xdc
8+
9+
# Editor directories and files
10+
.vscode/*
11+
.idea
12+
.DS_Store
313
*~

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dist
2+
dist-xdc
3+
pnpm-lock.yaml
4+
package-lock.json
5+
6+
public/js

README.md

Lines changed: 42 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,55 @@ Tower building game. Place blocks by clicking, tapping or pressing the spacebar.
44

55
<img width="200" alt="stackup" src="https://user-images.githubusercontent.com/9800740/170774147-209b2293-eca3-4573-8026-917f399c7ce0.png">
66

7-
[Download .xdc from Release Assets](https://github.com/webxdc/StackUp.xdc/releases), attach to a Delta Chat group and share your highscores there!
7+
## Contributing
88

9+
### Installing Dependencies
910

10-
## Building
11+
After cloning this repo, install dependencies:
1112

12-
```sh
13-
pip3 install -r ./requirements.txt
14-
python3 ./build.py
1513
```
14+
pnpm i
15+
```
16+
17+
### Checking code format
1618

17-
The output is a file with `.xdc` extension.
19+
```
20+
pnpm check
21+
```
1822

19-
## Test
23+
### Testing the app in the browser
24+
25+
To test your work in your browser (with hot reloading!) while developing:
26+
27+
```
28+
pnpm start
29+
```
30+
31+
### Building
32+
33+
To package the WebXDC file:
34+
35+
```
36+
pnpm build
37+
```
2038

21-
After building, to debug the app in a browser, you can simply open the file `build/index.html`
39+
To package the WebXDC with developer tools inside to debug in Delta Chat, set the `NODE_ENV`
40+
environment variable to "debug":
41+
42+
```
43+
NODE_ENV=debug pnpm build
44+
```
45+
46+
The resulting optimized `.xdc` file is saved in `dist-xdc/` folder.
47+
48+
### Releasing
49+
50+
To automatically build and create a new GitHub release with the `.xdc` file:
51+
52+
```
53+
git tag -a v1.0.1
54+
git push origin v1.0.1
55+
```
2256

2357
## Credits
2458

@@ -27,9 +61,3 @@ Based on: https://codepen.io/ste-vg/pen/ppLQNW
2761
Font: https://github.com/googlefonts/comfortaa
2862

2963
Original background music taken from: https://github.com/Goggwell/stack-clone
30-
31-
## License
32-
33-
Licensed GPLv3+, see the LICENSE file for details.
34-
35-
Copyright © 2022 Asiel Díaz Benítez.

build.py

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

css/00_fonts.min.css

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

0 commit comments

Comments
 (0)