Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Exidex committed Jan 29, 2024
0 parents commit 8283e73
Show file tree
Hide file tree
Showing 8 changed files with 193 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -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

15 changes: 15 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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: npm ci
- run: npm run publish

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist
node_modules
.idea
8 changes: 8 additions & 0 deletions gauntlet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[gauntlet]
name = 'Template Plugin'

[[entrypoint]]
id = 'template-view'
name = 'Template view'
path = 'src/template-view.tsx'
type = 'view'
101 changes: 101 additions & 0 deletions package-lock.json

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

17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "plugin-template",
"scripts": {
"publish": "gauntlet publish",
"build": "gauntlet build",
"dev": "gauntlet dev"
},
"dependencies": {
"@project-gauntlet/api": "0.1.0",
"@project-gauntlet/deno": "0.1.0"
},
"devDependencies": {
"@project-gauntlet/tools": "0.2.0",
"@types/react": "^18.2.48",
"typescript": "^5.3.3"
}
}
16 changes: 16 additions & 0 deletions src/template-view.tsx
Original file line number Diff line number Diff line change
@@ -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 changes: 12 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"strict": true,
"module": "ES2022",
"esModuleInterop": true,
"target": "ES2022",
"moduleResolution": "bundler",
"jsx": "react-jsx",
"types": ["@project-gauntlet/deno"]
},
"lib": ["ES2020"]
}

0 comments on commit 8283e73

Please sign in to comment.