Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Dec 23, 2024
1 parent 5a06905 commit bd72ec2
Show file tree
Hide file tree
Showing 18 changed files with 1,806 additions and 2,450 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,34 @@
name: CI

on:
pull_request:
push:
branches:
- main
- master
tags:
- "v*.*.*"
pull_request:
branches:
- main
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm i -g pnpm
- run: pnpm i
- uses: actions/checkout@v4
- run: npm install -g pnpm
- run: pnpm install
- run: pnpm check
- run: pnpm build

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
Auto-generated release
prerelease: ${{ contains(github.event.ref, '-beta') }}
fail_on_unmatched_files: true
files: ./dist-xdc/*.xdc
26 changes: 0 additions & 26 deletions .github/workflows/release.yml

This file was deleted.

4 changes: 1 addition & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
dist
dist-xdc
webxdc.js
webxdc.d.ts
pnpm-lock.yaml
public/js
package-lock.json
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
# 2048 [![CI](https://github.com/webxdc/2048/actions/workflows/ci.yml/badge.svg)](https://github.com/webxdc/2048/actions/workflows/ci.yml) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
# 2048 [![CI](https://github.com/ArcaneCircle/2048/actions/workflows/ci.yml/badge.svg)](https://github.com/ArcaneCircle/2048/actions/workflows/ci.yml) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

[2048](https://github.com/gabrielecirulli/2048) game ported to WebXDC.

<img width=200 src=https://user-images.githubusercontent.com/9800740/170771022-11536a6d-385c-4994-819c-458bc5dc04f1.png>

[Download .xdc from Release Assets](https://github.com/webxdc/2048.xdc/releases), attach to a Delta Chat group and share your 2048 highscores there!

## Contributing

### Installing Dependencies

After cloning this repo, install dependecies:
After cloning this repo, install dependencies:

```
pnpm i
```

### Code format
### Checking code format

```
pnpm check
Expand All @@ -27,9 +25,7 @@ pnpm check
To test your work in your browser (with hot reloading!) while developing:

```
pnpm dev-mini
# Alternatively to test in a more advanced WebXDC emulator:
pnpm dev
pnpm start
```

### Building
Expand Down
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
name="viewport"
content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0, maximum-scale=1, user-scalable=no, minimal-ui"
/>
<link rel="stylesheet" href="./css/webxdc-scores.css" />
<link rel="stylesheet" href="./css/main.css" />
<script src="webxdc.js"></script>
</head>
<body style="display: none">
Expand Down Expand Up @@ -77,6 +75,6 @@ <h1 class="title">2048</h1>
</p>
</div>

<script src="js/application.js" type="module"></script>
<script src="./src/application.js" type="module"></script>
</body>
</html>
14 changes: 0 additions & 14 deletions js/application.js

This file was deleted.

20 changes: 9 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
{
"private": true,
"type": "module",
"scripts": {
"build": "vite build",
"dev-mini": "vite --port 3000",
"dev": "concurrently \"npm run dev-mini\" \"webxdc-dev run http://localhost:3000\"",
"format": "prettier --write .",
"check": "prettier --check ."
"start": "vite --port 3000",
"fix": "prettier --write .",
"check": "prettier --check .",
"build": "vite build"
},
"devDependencies": {
"concurrently": "^8.1.0",
"prettier": "^3.0.3",
"vite": "^4.3.2",
"webxdc-dev": "^0.17.0",
"webxdc-vite-plugins": "github:webxdc/webxdc-vite-plugins"
"@webxdc/vite-plugins": "latest",
"prettier": "latest",
"vite": "latest"
},
"dependencies": {
"webxdc-scores": "github:webxdc/webxdc-scores"
"@webxdc/highscores": "^5.3.0"
}
}
Loading

0 comments on commit bd72ec2

Please sign in to comment.