mirror of
https://github.com/project-gauntlet/gauntlet.git
synced 2025-12-23 10:35:53 +00:00
More plugin examples. Clipboard, promise helpers, environment
This commit is contained in:
parent
affeccceb1
commit
417ed8a13a
27 changed files with 812 additions and 1 deletions
2
example_plugins/plugins/command_environment/.gitignore
vendored
Normal file
2
example_plugins/plugins/command_environment/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
dist
|
||||
node_modules
|
||||
13
example_plugins/plugins/command_environment/gauntlet.toml
Normal file
13
example_plugins/plugins/command_environment/gauntlet.toml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[gauntlet]
|
||||
name = 'Docs Command Environment'
|
||||
description = ''
|
||||
|
||||
# docs-code-segment:start environment
|
||||
[[entrypoint]]
|
||||
id = 'environment'
|
||||
name = 'Environment'
|
||||
path = 'src/environment.tsx'
|
||||
type = 'command'
|
||||
description = ''
|
||||
|
||||
# docs-code-segment:end
|
||||
17
example_plugins/plugins/command_environment/package.json
Normal file
17
example_plugins/plugins/command_environment/package.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"name": "@project-gauntlet/docs-command-environment",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "gauntlet build",
|
||||
"dev": "gauntlet dev"
|
||||
},
|
||||
"dependencies": {
|
||||
"@project-gauntlet/api": "file:../../js/api"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "*",
|
||||
"@types/deno": "*",
|
||||
"@project-gauntlet/tools": "*",
|
||||
"typescript": "*"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import { Environment } from "@project-gauntlet/api/helpers";
|
||||
|
||||
export default function Command() {
|
||||
console.log(Environment.gauntletVersion)
|
||||
console.log(Environment.isDevelopment)
|
||||
console.log(Environment.pluginDataDir)
|
||||
console.log(Environment.pluginCacheDir)
|
||||
}
|
||||
11
example_plugins/plugins/command_environment/tsconfig.json
Normal file
11
example_plugins/plugins/command_environment/tsconfig.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
"module": "ES2022",
|
||||
"esModuleInterop": true,
|
||||
"target": "ES2022",
|
||||
"moduleResolution": "bundler",
|
||||
"jsx": "react-jsx"
|
||||
},
|
||||
"lib": ["ES2020"]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue