|
4 | 4 | "description": "",
|
5 | 5 | "private": true,
|
6 | 6 | "scripts": {
|
7 |
| - "lint": "./node_modules/.bin/eslint --fix --ignore-path .gitignore .", |
8 |
| - "build": "webpack" |
| 7 | + "build": "parcel build src/manifest.json --no-content-hash --no-source-maps --dist-dir distribution --no-cache --detailed-report 0", |
| 8 | + "lint": "run-p lint:*", |
| 9 | + "lint-fix": "run-p 'lint:* -- --fix'", |
| 10 | + "lint:css": "stylelint src/**/*.css", |
| 11 | + "lint:js": "xo", |
| 12 | + "test": "run-p lint:* build", |
| 13 | + "watch": "parcel watch src/manifest.json --target webext-dev --dist-dir distribution" |
| 14 | + }, |
| 15 | + "browserslist": [ |
| 16 | + "last 1 Chrome version", |
| 17 | + "last 1 Firefox version" |
| 18 | + ], |
| 19 | + "xo": { |
| 20 | + "envs": [ |
| 21 | + "browser" |
| 22 | + ], |
| 23 | + "rules": { |
| 24 | + "no-unused-vars": [ |
| 25 | + "error", |
| 26 | + { |
| 27 | + "varsIgnorePattern": "browser" |
| 28 | + } |
| 29 | + ] |
| 30 | + } |
| 31 | + }, |
| 32 | + "stylelint": { |
| 33 | + "extends": "stylelint-config-xo" |
9 | 34 | },
|
10 |
| - "author": "", |
11 |
| - "license": "ISC", |
12 | 35 | "dependencies": {
|
13 |
| - "@babel/core": "^7.7.0", |
14 |
| - "@babel/runtime": "^7.1.2", |
15 | 36 | "@giphy/js-fetch-api": "^1.7.0",
|
16 | 37 | "debounce-fn": "^1.0.0",
|
17 | 38 | "delegate": "^3.2.0",
|
|
22 | 43 | "select-dom": "^4.1.3",
|
23 | 44 | "text-field-edit": "^3.0.1",
|
24 | 45 | "webext-domain-permission-toggle": "^1.0.1",
|
25 |
| - "webext-dynamic-content-scripts": "^6.0.4" |
| 46 | + "webext-dynamic-content-scripts": "^6.0.4", |
| 47 | + "webextension-polyfill": "^0.7.0" |
26 | 48 | },
|
27 | 49 | "devDependencies": {
|
28 |
| - "@babel/plugin-proposal-unicode-property-regex": "^7.0.0", |
29 |
| - "@babel/plugin-syntax-object-rest-spread": "^7.0.0", |
30 | 50 | "@babel/plugin-transform-react-jsx": "^7.0.0",
|
31 |
| - "@babel/plugin-transform-runtime": "^7.1.0", |
32 |
| - "@babel/preset-env": "^7.7.1", |
33 |
| - "@babel/preset-react": "^7.7.0", |
34 |
| - "@babel/register": "^7.7.0", |
35 |
| - "babel-loader": "^8.0.6", |
36 |
| - "copy-webpack-plugin": "^5.1.1", |
37 |
| - "css-loader": "^3.2.0", |
38 |
| - "cssnano": "^4.1.7", |
39 |
| - "eslint": "^6.6.0", |
40 |
| - "eslint-config-standard": "^14.1.0", |
41 |
| - "eslint-plugin-import": "^2.18.2", |
42 |
| - "eslint-plugin-node": "^10.0.0", |
43 |
| - "eslint-plugin-promise": "^4.2.1", |
44 |
| - "eslint-plugin-standard": "^4.0.1", |
45 |
| - "mini-css-extract-plugin": "^0.8.0", |
46 |
| - "webpack": "^4.41.2", |
47 |
| - "webpack-cli": "^3.3.10" |
| 51 | + "@parcel/config-webextension": "^2.0.0-nightly.2220", |
| 52 | + "@parcel/optimizer-cssnano": "^2.0.0-nightly.599", |
| 53 | + "@parcel/optimizer-htmlnano": "^2.0.0-nightly.599", |
| 54 | + "@parcel/packager-css": "^2.0.0-nightly.599", |
| 55 | + "@parcel/packager-html": "^2.0.0-nightly.599", |
| 56 | + "@parcel/transformer-css": "^2.0.0-nightly.599", |
| 57 | + "@parcel/transformer-html": "^2.0.0-nightly.598", |
| 58 | + "@parcel/transformer-postcss": "^2.0.0-nightly.599", |
| 59 | + "@parcel/transformer-posthtml": "^2.0.0-nightly.598", |
| 60 | + "@parcel/transformer-webextension": "^2.0.0-nightly.2220", |
| 61 | + "npm-run-all": "^4.1.5", |
| 62 | + "parcel": "^2.0.0-nightly.596", |
| 63 | + "stylelint": "^13.10.0", |
| 64 | + "stylelint-config-xo": "^0.20.0", |
| 65 | + "xo": "^0.39.1" |
| 66 | + }, |
| 67 | + "webExt": { |
| 68 | + "sourceDir": "distribution" |
| 69 | + }, |
| 70 | + "targets": { |
| 71 | + "webext-dev": { |
| 72 | + "sourceMap": { |
| 73 | + "inline": true, |
| 74 | + "inlineSources": true |
| 75 | + } |
| 76 | + } |
48 | 77 | }
|
49 | 78 | }
|
0 commit comments