Skip to content

Commit

Permalink
use typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Nov 22, 2024
1 parent 699e297 commit 72a1338
Show file tree
Hide file tree
Showing 21 changed files with 3,538 additions and 6,433 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ on:
push:
branches:
- master
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm install
- run: npm run typecheck
- run: npm run format:check
- run: npm test
- run: npm install -g pnpm
- run: pnpm install
- run: pnpm check
- run: pnpm build
15 changes: 4 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.x

- run: npm install
- run: npm run typecheck
- run: npm run format:check
- run: npm test
- run: npm run build
- run: npm install -g pnpm
- run: pnpm install
- run: pnpm check
- run: pnpm build

- name: Release
uses: softprops/action-gh-release@v1
Expand Down
5 changes: 2 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
dist
dist-xdc
webxdc.js
webxdc.d.ts
pnpm-lock.yaml
public
public/lib
public/img
7 changes: 3 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
Expand All @@ -7,12 +7,11 @@
rel="stylesheet"
href="./node_modules/@chrisoakman/chessboardjs/dist/chessboard-1.0.0.min.css"
/>
<link rel="stylesheet" href="./css/main.css" />
<script src="webxdc.js"></script>
</head>
<body>
<div id="root"></div>
<script src="./js/jquery.min.js"></script>
<script src="./js/main.js" type="module"></script>
<script src="./lib/jquery.min.js"></script>
<script src="./src/main.ts" type="module"></script>
</body>
</html>
Loading

0 comments on commit 72a1338

Please sign in to comment.