Initial commit

This commit is contained in:
Seaswimmer 2024-10-17 15:20:23 -04:00
commit f0533322d7
Signed by: CoastalCommits
GPG key ID: 7E73189F651A553F
8 changed files with 2002 additions and 0 deletions

21
.github/workflows/build.yaml vendored Normal file
View file

@ -0,0 +1,21 @@
name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: npm run build

18
.github/workflows/publish.yaml vendored Normal file
View file

@ -0,0 +1,18 @@
name: publish
on: workflow_dispatch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: git config --global user.name "${GITHUB_ACTOR}"
- run: git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
- run: git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
- run: npm ci
- run: npm run publish

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
dist
node_modules
.idea

14
gauntlet.toml Normal file
View file

@ -0,0 +1,14 @@
[gauntlet]
name = 'Template Plugin'
description = """
Template Plugin Description
"""
[[entrypoint]]
id = 'template-view'
name = 'Template view'
path = 'src/template-view.tsx'
type = 'view'
description = """
Template Plugin Entrypoint Description
"""

1901
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

17
package.json Normal file
View file

@ -0,0 +1,17 @@
{
"name": "plugin-template",
"scripts": {
"publish": "gauntlet publish",
"build": "gauntlet build",
"dev": "gauntlet dev"
},
"dependencies": {
"@project-gauntlet/api": "0.10.0",
"@project-gauntlet/deno": "0.10.0"
},
"devDependencies": {
"@project-gauntlet/tools": "0.8.0",
"@types/react": "^18.3.3",
"typescript": "^5.5.4"
}
}

16
src/template-view.tsx Normal file
View file

@ -0,0 +1,16 @@
import { ReactElement } from 'react';
import { Detail } from "@project-gauntlet/api/components";
export default function TemplateView(): ReactElement {
return (
<Detail>
<Detail.Content>
<Detail.Content.Paragraph>
Hello Gauntlet!
Deno Version: {Deno.version.deno}
</Detail.Content.Paragraph>
</Detail.Content>
</Detail>
);
};

12
tsconfig.json Normal file
View file

@ -0,0 +1,12 @@
{
"compilerOptions": {
"strict": true,
"module": "ES2022",
"esModuleInterop": true,
"target": "ES2022",
"moduleResolution": "bundler",
"jsx": "react-jsx",
"types": ["@project-gauntlet/deno"]
},
"lib": ["ES2020"]
}