Added plugin testing suite
This commit is contained in:
1041
package-lock.json
generated
1041
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "takerofnotes-plugin-sdk",
|
||||
"name": "@takerofnotes/plugin-sdk",
|
||||
"version": "0.1.0",
|
||||
"description": "SDK to create a storage plugin for Taker of Notes",
|
||||
"type": "module",
|
||||
@@ -21,13 +21,15 @@
|
||||
"scripts": {
|
||||
"build": "tsup src/index.ts --format esm --dts",
|
||||
"dev": "tsup src/index.ts --format esm --dts --watch",
|
||||
"test": "vitest",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"author": "nicwands",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"tsup": "^8.5.1",
|
||||
"typescript": "^5.9.3"
|
||||
"typescript": "^5.9.3",
|
||||
"vitest": "^3.2.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"zod": "^4.3.6"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
export { BaseNotesAdapter } from './BaseNotesAdapter'
|
||||
export { definePlugin } from './definePlugin'
|
||||
export { validatePlugin, SUPPORTED_API_VERSION } from './validatePlugin'
|
||||
export { runPluginTests, createTestNote } from './testPlugin'
|
||||
export type { NotesPlugin, ConfigField } from './types'
|
||||
export type { TestNote, TestPluginOptions } from './testPlugin'
|
||||
|
||||
@@ -15,3 +15,5 @@ export interface NotesPlugin {
|
||||
configSchema: ConfigField[]
|
||||
createAdapter(config: any): any
|
||||
}
|
||||
|
||||
export type { BaseNotesAdapter } from './BaseNotesAdapter'
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"strict": true,
|
||||
"moduleResolution": "Node",
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true
|
||||
"skipLibCheck": true,
|
||||
"types": ["vitest/globals"]
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user