generated from fregante/browser-extension-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use watch commands for building prod versions of the extension becaus…
- Loading branch information
Showing
3 changed files
with
86 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters