
* refactor: add dev server and fix `update-beta.json` bug
* chore: add renovate config
* feat: release plugin to GitHub release via action
* chore: update vsc settings
* Cancel release by action
* docs: update readme
* Update README.md
* Update README.md
fix format
* Update README.md
* Update README.md
fix hint
* tweak
* Merge #81
* Fix indent
* Merge ade49628ff
* Revent delete env
* tweak
* feat: release via GitHub action
* docs: update readme
* Update README.md
* style: fix prettier
* add: stdout log to file
* Update README.md
fix typo
* Update release.yml
fix typo
* write Zotero log to `logs/zotero.log`
* do not provide update-beta.json default
* fix prettier in readme
* tweak
* fix wrong link in readme
* Move 3rd package config to package.json
---------
Co-authored-by: windingwind <33902321+windingwind@users.noreply.github.com>
136 lines
3.5 KiB
JSON
136 lines
3.5 KiB
JSON
{
|
|
"name": "zotero-addon-template",
|
|
"version": "1.0.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",
|
|
"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.11"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.10.4",
|
|
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
|
"@typescript-eslint/parser": "^6.13.2",
|
|
"chokidar": "^3.5.3",
|
|
"compressing": "^1.10.0",
|
|
"esbuild": "^0.19.8",
|
|
"eslint": "^8.55.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"prettier": "^3.1.0",
|
|
"release-it": "^16.3.0",
|
|
"replace-in-file": "^7.0.2",
|
|
"typescript": "^5.3.3",
|
|
"zotero-types": "^1.3.7"
|
|
},
|
|
"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": [
|
|
"**/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",
|
|
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
|
|
}
|
|
}
|
|
}
|