feat(dev): automate build zip creation

This commit is contained in:
David Ralph
2023-03-15 11:20:01 +00:00
parent 5665370b93
commit b8eabc8717
4 changed files with 86 additions and 26 deletions

View File

@@ -37,6 +37,7 @@
"@commitlint/config-conventional": "^17.4.4",
"@eartharoid/deep-merge": "^0.0.2",
"@vitejs/plugin-react-swc": "^3.2.0",
"adm-zip": "^0.5.10",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.7.0",
"eslint-config-react-app": "^7.0.1",
@@ -56,8 +57,6 @@
"dev:host": "vite --host",
"translations": "cd scripts && node updatetranslations.js",
"build": "vite build",
"prepare:chrome": "cp manifest/chrome.json dist/manifest.json && cp -r manifest/_locales dist/_locales && cp manifest/background-chrome.js dist/background-chrome.js",
"prepare:firefox": "rm -rf dist/_locales && cp manifest/firefox.json dist/manifest.json",
"pretty": "prettier --write \"./**/*.{js,jsx,json,scss,css}\"",
"lint": "eslint --ext .js,.jsx src/** && stylelint \"**/*.scss\"",
"lint:fix": "eslint --ext .js,.jsx src/** --fix && stylelint \"**/*.scss\" --fix",