diff --git a/package.json b/package.json index ec4421d..de906bc 100644 --- a/package.json +++ b/package.json @@ -1,87 +1,88 @@ { - "private": true, - "scripts": { - "build:chrome": "parcel build source/mv3/manifest.json --no-content-hash --no-source-maps --dist-dir build/chrome --no-cache --detailed-report 0", - "build:firefox": "parcel build source/mv2/manifest.json --no-content-hash --no-source-maps --dist-dir build/firefox --no-cache --detailed-report 0", - "clean:chrome": "rm -rf build/chrome", - "clean:firefox": "rm -rf build/firefox", - "package:firefox": "web-ext build --overwrite-dest --source-dir build/firefox --filename firefox.zip", - "package:chrome": "web-ext build --overwrite-dest --source-dir build/chrome --filename chrome.zip", - "prepublish": "run-s clean:* build:* package:*", - "watch": "parcel watch source/mv2/manifest.json --dist-dir build/dev --no-cache", - "lint": "run-p lint:*", - "lint-fix": "run-p 'lint:* -- --fix'", - "lint:css": "stylelint --config .stylelintrc.yml source/**/*.css", - "lint:js": "eslint \"{source/**/*,*}.{js,ts,jsx,tsx}\"", - "test": "run-p lint:* build:*" - }, - "browserslist": [ - "last 1 Chrome version", - "last 1 Firefox version" - ], - "xo": { - "envs": [ - "browser" + "private": true, + "scripts": { + "watch:firefox": "parcel watch source/mv2/manifest.json --dist-dir build/firefox --no-cache --no-content-hash --no-hmr", + "watch:chrome": "parcel watch source/mv3/manifest.json --dist-dir build/chrome --no-cache --no-content-hash --no-hmr", + "build:chrome": "parcel build source/mv3/manifest.json --no-scope-hoist --no-content-hash --no-source-maps --dist-dir build/chrome --no-cache --detailed-report 0", + "build:firefox": "parcel build source/mv2/manifest.json --no-content-hash --no-source-maps --dist-dir build/firefox --no-cache --detailed-report 0", + "clean:chrome": "rm -rf build/chrome", + "clean:firefox": "rm -rf build/firefox", + "package:firefox": "web-ext build --overwrite-dest --source-dir build/firefox --filename firefox.zip", + "package:chrome": "web-ext build --overwrite-dest --source-dir build/chrome --filename chrome.zip", + "prepublish": "run-s clean:* build:* package:*", + "lint": "run-p lint:*", + "lint-fix": "run-p 'lint:* -- --fix'", + "lint:css": "stylelint --config .stylelintrc.yml source/**/*.css", + "lint:js": "eslint \"{source/**/*,*}.{js,ts,jsx,tsx}\"", + "test": "run-p lint:* build:*" + }, + "browserslist": [ + "last 1 Chrome version", + "last 1 Firefox version" ], - "rules": { - "unicorn/no-array-for-each": "off", - "capitalized-comments": "off", - "unicorn/no-array-callback-reference": "off", - "unicorn/prefer-query-selector": "off", - "no-unused-vars": "off", - "operator-linebreak": [ - "error", - "after" - ], - "@typescript-eslint/member-delimiter-style": [ - "error", - { - "multiline": { - "delimiter": "none" - } - } - ] + "xo": { + "envs": [ + "browser" + ], + "rules": { + "unicorn/no-array-for-each": "off", + "capitalized-comments": "off", + "unicorn/no-array-callback-reference": "off", + "unicorn/prefer-query-selector": "off", + "no-unused-vars": "off", + "operator-linebreak": [ + "error", + "after" + ], + "@typescript-eslint/member-delimiter-style": [ + "error", + { + "multiline": { + "delimiter": "none" + } + } + ] + }, + "semicolon": false + }, + "stylelint": { + "extends": "stylelint-config-xo" + }, + "dependencies": { + "@emotion/react": "^11.8.2", + "@types/webextension-polyfill": "^0.8.3", + "react": "^17.0.2", + "react-dom": "^17.0.2", + "text-fragments-polyfill": "^5.3.0", + "tippy.js": "^6.3.7", + "webext-options-sync": "^3.1.0", + "webextension-polyfill": "^0.9.0" }, - "semicolon": false - }, - "stylelint": { - "extends": "stylelint-config-xo" - }, - "dependencies": { - "@emotion/react": "^11.8.2", - "@types/webextension-polyfill": "^0.8.3", - "react": "^17.0.2", - "react-dom": "^17.0.2", - "text-fragments-polyfill": "^5.3.0", - "tippy.js": "^6.3.7", - "webext-options-sync": "^3.1.0", - "webextension-polyfill": "^0.9.0" - }, - "devDependencies": { - "@emotion/babel-plugin": "^11.7.2", - "@parcel/config-webextension": "^2.5.0", - "@parcel/transformer-image": "^2.5.0", - "@parcel/transformer-inline-string": "^2.5.0", - "@parcel/validator-typescript": "^2.5.0", - "@types/react": "^17.0.41", - "@types/react-dom": "^17.0.14", - "@typescript-eslint/eslint-plugin": "^5.19.0", - "@typescript-eslint/parser": "^5.19.0", - "eslint": "^8.13.0", - "eslint-config-xo": "^0.40.0", - "eslint-config-xo-react": "^0.27.0", - "eslint-plugin-ava": "^13.2.0", - "eslint-plugin-import": "^2.26.0", - "eslint-plugin-no-use-extend-native": "^0.5.0", - "eslint-plugin-promise": "^6.0.0", - "eslint-plugin-react": "^7.29.4", - "eslint-plugin-react-hooks": "^4.4.0", - "eslint-plugin-unicorn": "^42.0.0", - "npm-run-all": "^4.1.5", - "parcel": "^2.5.0", - "stylelint": "^13.13.1", - "stylelint-config-xo": "^0.20.0", - "typescript": "^4.6.2", - "xo": "^0.44.0" - } + "devDependencies": { + "@emotion/babel-plugin": "^11.7.2", + "@parcel/config-webextension": "^2.5.0", + "@parcel/transformer-image": "^2.5.0", + "@parcel/transformer-inline-string": "^2.5.0", + "@parcel/validator-typescript": "^2.5.0", + "@types/react": "^17.0.41", + "@types/react-dom": "^17.0.14", + "@typescript-eslint/eslint-plugin": "^5.19.0", + "@typescript-eslint/parser": "^5.19.0", + "eslint": "^8.13.0", + "eslint-config-xo": "^0.40.0", + "eslint-config-xo-react": "^0.27.0", + "eslint-plugin-ava": "^13.2.0", + "eslint-plugin-import": "^2.26.0", + "eslint-plugin-no-use-extend-native": "^0.5.0", + "eslint-plugin-promise": "^6.0.0", + "eslint-plugin-react": "^7.29.4", + "eslint-plugin-react-hooks": "^4.4.0", + "eslint-plugin-unicorn": "^42.0.0", + "npm-run-all": "^4.1.5", + "parcel": "^2.5.0", + "stylelint": "^13.13.1", + "stylelint-config-xo": "^0.20.0", + "typescript": "^4.6.2", + "xo": "^0.44.0" + } } diff --git a/source/mv2/manifest.json b/source/mv2/manifest.json index 36f01c7..5624bb9 100644 --- a/source/mv2/manifest.json +++ b/source/mv2/manifest.json @@ -1,6 +1,6 @@ { "name": "Transclude Me", - "version": "1.1.0", + "version": "1.1.1", "description": "Make web more context rich by enabling in-place context-specific previews for links", "homepage_url": "https://github.com/transclude-me/extension", "manifest_version": 2, diff --git a/source/mv3/manifest.json b/source/mv3/manifest.json index 2028939..1e44996 100644 --- a/source/mv3/manifest.json +++ b/source/mv3/manifest.json @@ -1,6 +1,6 @@ { "name": "Transclude Me", - "version": "1.1.0", + "version": "1.1.1", "description": "Make web more context rich by enabling in-place context-specific previews for links", "homepage_url": "https://github.com/transclude-me/extension", "manifest_version": 3,