Releases were built and signed in CI, which meant AMO credentials had to live on the runner. Move the whole flow local: builds and Firefox signing happen on the maintainer's machine and only the finished artifacts are published. Add `ext:pack:firefox` and `ext:pack:chrome` (production builds; the Firefox one is signed via `web-ext sign` unlisted with credentials read from the GNOME Keyring through `secret-tool`, the Chrome one is zipped) and wire them to the `version` lifecycle: - `preversion` runs lint and tests. - `version` builds and signs into `web-ext-artifacts/`. - `postversion` pushes the bump commit and tag, then uploads both artifacts to the Gitea release and publishes it if still a draft. Switch the plain `ext:build:*` scripts to production and add `ext:build:dev:*` for development builds; `ext:dev` is unchanged. The build manifest now takes its version from package.json and drops the "(dev)" name suffix when `DASHTAB_RELEASE=1`. Because packaging needs a production build, relax the AGENTS.md production-build restriction to allow it for packaging and releasing.
118 lines
4.4 KiB
JSON
118 lines
4.4 KiB
JSON
{
|
|
"name": "dashtab",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"description": "Small description for dashtab goes here",
|
|
"repository": "",
|
|
"license": "MIT",
|
|
"author": "",
|
|
"directories": {
|
|
"doc": "doc",
|
|
"test": "tests"
|
|
},
|
|
"scripts": {
|
|
"build": "vite build",
|
|
"preversion": "pnpm lint && pnpm test",
|
|
"version": "pnpm ext:pack",
|
|
"postversion": "node scripts/release/publish.mjs",
|
|
"ext:build": "pnpm ext:build:firefox",
|
|
"ext:build:chrome": "DASHTAB_EXT=1 DASHTAB_EXT_TARGET=chrome vite build",
|
|
"ext:build:firefox": "DASHTAB_EXT=1 DASHTAB_EXT_TARGET=firefox vite build",
|
|
"ext:build:dev:chrome": "DASHTAB_EXT=1 DASHTAB_EXT_TARGET=chrome vite build --mode development",
|
|
"ext:build:dev:firefox": "DASHTAB_EXT=1 DASHTAB_EXT_TARGET=firefox vite build --mode development",
|
|
"ext:dev": "concurrently -k \"DASHTAB_EXT=1 DASHTAB_EXT_TARGET=firefox vite build --mode development --watch\" \"wait-on extension/build/firefox/manifest.json && pnpm ext:serve\"",
|
|
"ext:lint": "web-ext lint --source-dir=extension/build/firefox",
|
|
"ext:pack": "pnpm ext:pack:firefox && pnpm ext:pack:chrome",
|
|
"ext:pack:chrome": "DASHTAB_RELEASE=1 pnpm ext:build:chrome && node scripts/release/pack-chrome.mjs",
|
|
"ext:pack:firefox": "DASHTAB_RELEASE=1 pnpm ext:build:firefox && node scripts/release/sign-firefox.mjs",
|
|
"ext:serve": "web-ext run --source-dir=extension/build/firefox --start-url about:newtab",
|
|
"format": "prettier . --cache --write",
|
|
"lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\" --prefixColors auto",
|
|
"lint:css": "stylelint \"**/*.css\"",
|
|
"lint:css:fix": "concurrently \"pnpm:lint:css -- --fix\"",
|
|
"lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\" --prefixColors auto && pnpm format",
|
|
"lint:format": "prettier . --cache --check",
|
|
"lint:hbs": "ember-template-lint .",
|
|
"lint:hbs:fix": "ember-template-lint . --fix",
|
|
"lint:js": "eslint . --cache",
|
|
"lint:js:fix": "eslint . --fix",
|
|
"start": "vite",
|
|
"test": "vite build --mode development && ember test --path dist"
|
|
},
|
|
"exports": {
|
|
"./tests/*": "./tests/*",
|
|
"./*": "./app/*"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.29.7",
|
|
"@babel/eslint-parser": "^7.29.9",
|
|
"@babel/plugin-transform-runtime": "^7.29.7",
|
|
"@babel/runtime": "^7.29.7",
|
|
"@ember/optional-features": "^3.0.0",
|
|
"@ember/string": "^4.0.1",
|
|
"@ember/test-helpers": "^5.5.2",
|
|
"@ember/test-waiters": "^4.1.2",
|
|
"@embroider/compat": "^4.1.25",
|
|
"@embroider/config-meta-loader": "^1.0.0",
|
|
"@embroider/core": "^4.6.7",
|
|
"@embroider/legacy-inspector-support": "^0.1.3",
|
|
"@embroider/macros": "^1.21.1",
|
|
"@embroider/router": "^3.0.6",
|
|
"@embroider/vite": "^1.7.13",
|
|
"@eslint/js": "^9.39.5",
|
|
"@glimmer/component": "^2.1.1",
|
|
"@rollup/plugin-babel": "^7.1.0",
|
|
"@sockethub/client": "5.0.0-beta.0",
|
|
"@tailwindcss/vite": "^4.3.3",
|
|
"@tailwindplus/elements": "^1.0.22",
|
|
"babel-plugin-ember-template-compilation": "^4.0.0",
|
|
"concurrently": "^10.0.5",
|
|
"cors-anywhere": "^0.4.4",
|
|
"decorator-transforms": "^2.4.0",
|
|
"ember-auto-import": "^2.13.1",
|
|
"ember-cli": "~7.3.0",
|
|
"ember-cli-babel": "^8.3.2",
|
|
"ember-cli-deprecation-workflow": "^4.0.1",
|
|
"ember-load-initializers": "^3.0.1",
|
|
"ember-modifier": "^4.3.0",
|
|
"ember-page-title": "^9.0.3",
|
|
"ember-qunit": "^9.2.0",
|
|
"ember-resolver": "^13.2.0",
|
|
"ember-source": "~7.3.0",
|
|
"ember-template-lint": "^7.9.3",
|
|
"eslint": "^9.39.5",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-ember": "^13.6.0",
|
|
"eslint-plugin-n": "^18.4.0",
|
|
"eslint-plugin-qunit": "^8.2.6",
|
|
"globals": "^17.13.0",
|
|
"localforage": "^1.10.0",
|
|
"node-forge": "^1.4.0",
|
|
"postcss": "^8.5.28",
|
|
"prettier": "^3.9.9",
|
|
"prettier-plugin-ember-template-tag": "^2.1.8",
|
|
"qunit": "^3.0.0",
|
|
"qunit-dom": "^3.6.0",
|
|
"socket.io-client": "^4.8.4",
|
|
"stylelint": "^17.15.0",
|
|
"stylelint-config-standard": "^40.0.0",
|
|
"tailwindcss": "^4.3.3",
|
|
"testem": "^3.21.2",
|
|
"tracked-built-ins": "^4.1.2",
|
|
"vite": "^8.3.1",
|
|
"wait-on": "^9.5.1",
|
|
"web-ext": "^10.7.0"
|
|
},
|
|
"engines": {
|
|
"node": ">= 22.13"
|
|
},
|
|
"ember": {
|
|
"edition": "octane"
|
|
},
|
|
"packageManager": "pnpm@11.22.0+sha512.1ff870c4c6133dfd88fb2afc46dd13d47f09c9794b438c6fdb47ca98caf3bc16381ee0be93a091b8e3824cf01f889f46d7d9e20910fb0be1ab0fb5baa80dd621",
|
|
"dependencies": {
|
|
"@noble/curves": "^2.4.0",
|
|
"@noble/hashes": "^2.4.0"
|
|
}
|
|
}
|