Skip to content

Commit

Permalink
TW: Pull upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Mar 16, 2024
2 parents b0f4400 + 83b8bcc commit c2def42
Show file tree
Hide file tree
Showing 6 changed files with 156 additions and 2 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy playground

on:
workflow_dispatch:
push:
branches: [master]

concurrency:
group: "deploy"
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build documentation
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Validate TypeScript
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
docs
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Scratch doesn't provide type definitions for their libraries, so we wrote our ow
This repository only contains types for the vanilla (LLK) Scratch runtime and editor. For the additional types in the TurboWarp runtimes, see [@turbowarp/types-tw](https://github.com/TurboWarp/types-tw).
A possibly more human-readable version of the TypeScript definitions can be found at: https://turbowarp.github.io/types/
|Module|Status|
|:-:|:-:|
|scratch-vm|✅|
Expand Down
106 changes: 106 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
},
"scripts": {
"test": "tsc",
"watch": "tsc -w"
"watch": "tsc -w",
"build": "typedoc types/*"
},
"repository": {
"type": "git",
Expand All @@ -24,8 +25,8 @@
"url": "https://github.com/TurboWarp/types/issues"
},
"homepage": "https://github.com/TurboWarp/types#readme",
"dependencies": {},
"devDependencies": {
"typedoc": "^0.25.12",
"typescript": "^4.7.4"
}
}

0 comments on commit c2def42

Please sign in to comment.