136 lines
3.4 KiB
JSON
136 lines
3.4 KiB
JSON
{
|
|
"name": "zotero-addon-template",
|
|
"version": "1.1.2",
|
|
"description": "Zotero Addon Template",
|
|
"config": {
|
|
"addonName": "Zotero Addon Template",
|
|
"addonID": "addontemplate@euclpts.com",
|
|
"addonRef": "addontemplate",
|
|
"addonInstance": "AddonTemplate",
|
|
"prefsPrefix": "extensions.zotero.addontemplate",
|
|
"releasePage": "https://github.com/windingwind/zotero-addon-template/releases",
|
|
"updateJSON": "https://raw.githubusercontent.com/windingwind/zotero-addon-template/main/update.json"
|
|
},
|
|
"main": "src/index.ts",
|
|
"scripts": {
|
|
"start": "node scripts/server.mjs",
|
|
"build": "tsc --noEmit && node scripts/build.mjs production",
|
|
"stop": "node scripts/stop.mjs",
|
|
"lint": "prettier --write . && eslint . --ext .ts --fix",
|
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
"release": "release-it --only-version --preReleaseId=beta",
|
|
"update-deps": "npm update --save"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/windingwind/zotero-addon-template.git"
|
|
},
|
|
"author": "windingwind",
|
|
"license": "AGPL-3.0-or-later",
|
|
"bugs": {
|
|
"url": "https://github.com/windingwind/zotero-addon-template/issues"
|
|
},
|
|
"homepage": "https://github.com/windingwind/zotero-addon-template#readme",
|
|
"dependencies": {
|
|
"zotero-plugin-toolkit": "^2.3.29"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.12.8",
|
|
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
"@typescript-eslint/parser": "^7.8.0",
|
|
"chokidar": "^3.6.0",
|
|
"compressing": "^1.10.0",
|
|
"esbuild": "^0.20.2",
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"prettier": "^3.2.5",
|
|
"release-it": "^17.2.1",
|
|
"replace-in-file": "^7.1.0",
|
|
"typescript": "^5.4.5",
|
|
"zotero-types": "^1.3.24"
|
|
},
|
|
"eslintConfig": {
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"root": true,
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"prettier"
|
|
],
|
|
"overrides": [],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"rules": {
|
|
"@typescript-eslint/ban-ts-comment": [
|
|
"warn",
|
|
{
|
|
"ts-expect-error": "allow-with-description",
|
|
"ts-ignore": "allow-with-description",
|
|
"ts-nocheck": "allow-with-description",
|
|
"ts-check": "allow-with-description"
|
|
}
|
|
],
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
"@typescript-eslint/no-explicit-any": [
|
|
"off",
|
|
{
|
|
"ignoreRestArgs": true
|
|
}
|
|
],
|
|
"@typescript-eslint/no-non-null-assertion": "off"
|
|
},
|
|
"ignorePatterns": [
|
|
"**/.vscode/**",
|
|
"**/build/**",
|
|
"**/logs/**",
|
|
"**/dist/**",
|
|
"**/node_modules/**",
|
|
"**/scripts/**",
|
|
"**/*.js",
|
|
"**/*.bak"
|
|
]
|
|
},
|
|
"prettier": {
|
|
"printWidth": 80,
|
|
"tabWidth": 2,
|
|
"endOfLine": "lf",
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"*.xhtml"
|
|
],
|
|
"options": {
|
|
"htmlWhitespaceSensitivity": "css"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"release-it": {
|
|
"git": {
|
|
"tagName": "v${version}"
|
|
},
|
|
"npm": {
|
|
"publish": false
|
|
},
|
|
"github": {
|
|
"release": false,
|
|
"assets": [
|
|
"build/*.xpi"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"before:init": "npm run lint",
|
|
"after:bump": "npm run build"
|
|
}
|
|
}
|
|
}
|