-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzotero-plugin.config.ts
More file actions
36 lines (34 loc) · 925 Bytes
/
zotero-plugin.config.ts
File metadata and controls
36 lines (34 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import {defineConfig} from 'zotero-plugin-scaffold';
import fs from 'fs';
import path from 'path';
function copyFile(source, destination) {
fs.mkdirSync(path.dirname(destination), {recursive: true});
fs.copyFileSync(source, destination);
}
export default defineConfig({
name: 'kysely-dialect-dummy-plugin',
id: 'kysely-dialect-dummy-plugin',
namespace: 'kysely-dialect-dummy-plugin',
updateURL: 'https://example.com/update.json',
dist: 'build',
build: {
define: {
author: 'sneakers-the-rat',
},
makeManifest: {
enable: false,
},
hooks: {
'build:copyAssets': () => {
copyFile('test/plugin/manifest.json', 'build/addon/manifest.json');
copyFile('test/plugin/bootstrap.js', 'build/addon/bootstrap.js');
},
},
},
test: {
entries: ['test/'],
abortOnFail: false,
exitOnFinish: true,
waitForPlugin: '() => Zotero.Dummy',
},
});