-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from teomrd/deno
Deno
- Loading branch information
Showing
124 changed files
with
5,232 additions
and
11,026 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Deploy to GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
dry-versioning: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
new_tag: ${{ steps.dry-versioning.outputs.new_tag }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
- name: Bump version | ||
uses: anothrNick/github-tag-action@1.67.0 | ||
id: dry-versioning | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WITH_V: true | ||
DEFAULT_BUMP: patch | ||
DRY_RUN: true | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- dry-versioning | ||
# These permissions are needed to interact with GitHub's OIDC Token endpoint. | ||
permissions: | ||
id-token: write | ||
contents: write | ||
env: | ||
NEW_VERSION: ${{needs.dry-versioning.outputs.new_tag}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
- name: ✌️ Set version environment variable | ||
shell: bash | ||
run: echo "NEW_VERSION=${{ env.NEW_VERSION }}" >> $GITHUB_ENV | ||
- run: make build | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./dist | ||
versioning: | ||
runs-on: ubuntu-22.04 | ||
needs: | ||
- build-and-deploy | ||
permissions: | ||
contents: write | ||
outputs: | ||
new_tag: ${{ steps.app-versioning.outputs.new_tag }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
- name: Bump version and push tag | ||
uses: anothrNick/github-tag-action@1.67.0 | ||
id: app-versioning | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WITH_V: true | ||
DEFAULT_BUMP: patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: On Pull Requests | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
quality-checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
- run: make checks | ||
- run: make build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
node_modules | ||
dev | ||
.lighthouseci | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"name": "@teomrd/miropad", | ||
"exports": "./index.js", | ||
"version": "2.15.20", | ||
"license": "GPL-3.0-only", | ||
"author": "teomrd <mironidis.gr@gmail.com>", | ||
"repository": "https://github.com/teomrd/MiroPad.git", | ||
"tasks": { | ||
"compile": "deno check src", | ||
"lint": "deno lint src/" | ||
}, | ||
"imports": { | ||
"@std/assert": "jsr:@std/assert@1", | ||
"@types/textarea-caret": "npm:@types/textarea-caret@^3.0.3", | ||
"@lhci/cli": "npm:@lhci/cli@0.14.0", | ||
"esbuild": "npm:esbuild@^0.24.0", | ||
"workbox": "npm:workbox@^0.0.0", | ||
"workbox-cli": "npm:workbox-cli@^7.3.0" | ||
}, | ||
"lint": { | ||
"include": ["src/"], | ||
"exclude": ["src/assets/", "src/css/"], | ||
"rules": { | ||
"tags": ["recommended"] | ||
} | ||
}, | ||
"fmt": { | ||
"useTabs": false, | ||
"lineWidth": 80, | ||
"indentWidth": 2, | ||
"semiColons": true, | ||
"singleQuote": false, | ||
"proseWrap": "preserve", | ||
"include": ["src/"], | ||
"exclude": ["src/assets/"] | ||
}, | ||
"exclude": [ | ||
"out/", | ||
"dist/" | ||
], | ||
"compilerOptions": { | ||
"lib": ["dom", "dom.iterable", "dom.asynciterable", "deno.ns"] | ||
} | ||
} | ||
|
Oops, something went wrong.