-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fc8aaa3
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
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,20 @@ | ||
# valaxy-addon-template | ||
|
||
## Usage | ||
|
||
```bash | ||
npm i valaxy-addon-template | ||
``` | ||
|
||
### 加载插件 | ||
|
||
```ts | ||
import { defineValaxyConfig } from 'valaxy' | ||
import { addonTemplate } from 'valaxy-addon-template' | ||
|
||
export default defineValaxyConfig({ | ||
addons: [ | ||
addonTemplate(), | ||
], | ||
}) | ||
``` |
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 @@ | ||
export * from './node' |
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,8 @@ | ||
import { defineValaxyAddon } from 'valaxy' | ||
import pkg from '../package.json' | ||
|
||
export const addonHitokoto = defineValaxyAddon(options => ({ | ||
name: pkg.name, | ||
enable: true, | ||
options, | ||
})) |
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,13 @@ | ||
{ | ||
"name": "valaxy-addon-hitokoto", | ||
"version": "0.0.1", | ||
"description": "Template for Valaxy Addon.", | ||
"repository": "https://github.com/valaxyjs/valaxy-addon-hitokoto", | ||
"keywords": [ | ||
"valaxy", | ||
"addon", | ||
"valaxy-addon", | ||
"hitokoto" | ||
], | ||
"main": "index.ts" | ||
} |