|
| 1 | +{ |
| 2 | + "private": true, |
| 3 | + "scripts": { |
| 4 | + "lint": "xo && stylelint source/*.css", |
| 5 | + "lint-fix": "xo --fix; stylelint --fix source/*.css", |
| 6 | + "test": "npm run lint && cross-env BABEL_ENV=testing ava && run-s build", |
| 7 | + "build": "webpack --mode=production", |
| 8 | + "watch": "webpack --mode=development --watch", |
| 9 | + "release:amo": "cd distribution && webext submit", |
| 10 | + "release:cws": "cd distribution && webstore upload --auto-publish", |
| 11 | + "release": "run-s build update-version save-url release:*", |
| 12 | + "save-url": "echo https://github.com/$TRAVIS_REPO_SLUG/tree/$TRAVIS_COMMIT > distribution/SOURCE_URL", |
| 13 | + "update-version": "VERSION=$(utc-version); echo $VERSION; dot-json distribution/manifest.json version $VERSION", |
| 14 | + "can-release": "if [ \"$TRAVIS_EVENT_TYPE\" = cron ] && [ $(git rev-list -n 1 --since=\"26 hours ago\" master) ]; then echo :ship-it:; else false; fi" |
| 15 | + }, |
| 16 | + "dependencies": { |
| 17 | + "copy-text-to-clipboard": "^1.0.4", |
| 18 | + "debounce-fn": "^1.0.0", |
| 19 | + "delegate": "^3.2.0", |
| 20 | + "dom-chef": "^3.2.0", |
| 21 | + "dom-loaded": "^1.0.1", |
| 22 | + "element-ready": "^3.0.0", |
| 23 | + "github-injection": "^1.0.1", |
| 24 | + "github-reserved-names": "^1.0.14", |
| 25 | + "linkify-issues": "^1.3.0", |
| 26 | + "linkify-urls": "^2.0.0", |
| 27 | + "onetime": "^2.0.1", |
| 28 | + "p-event": "^1.3.0", |
| 29 | + "select-dom": "^4.1.3", |
| 30 | + "shorten-repo-url": "^1.5.0", |
| 31 | + "storm-textarea": "2.0.1", |
| 32 | + "tiny-version-compare": "^0.9.0", |
| 33 | + "turndown": "^4.0.2", |
| 34 | + "webext-domain-permission-toggle": "0.0.2", |
| 35 | + "webext-dynamic-content-scripts": "^5.0.1", |
| 36 | + "webext-options-sync": "^0.15.1", |
| 37 | + "webextension-polyfill": "^0.2.1" |
| 38 | + }, |
| 39 | + "devDependencies": { |
| 40 | + "ava": "^0.25.0", |
| 41 | + "babel-core": "^6.26.3", |
| 42 | + "babel-loader": "^7.1.4", |
| 43 | + "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", |
| 44 | + "babel-plugin-transform-react-jsx": "^6.24.1", |
| 45 | + "babel-plugin-transform-unicode-property-regex": "^2.0.5", |
| 46 | + "chrome-webstore-upload-cli": "^1.1.1", |
| 47 | + "common-tags": "^1.7.2", |
| 48 | + "copy-webpack-plugin": "^4.5.1", |
| 49 | + "cross-env": "^5.1.6", |
| 50 | + "dot-json": "^1.0.4", |
| 51 | + "npm-run-all": "^4.1.3", |
| 52 | + "stylelint": "^9.2.1", |
| 53 | + "stylelint-config-xo": "*", |
| 54 | + "uglifyjs-webpack-plugin": "^1.2.5", |
| 55 | + "utc-version": "^1.1.0", |
| 56 | + "webext": "^1.9.1-with-submit.1", |
| 57 | + "webpack": "^4.8.3", |
| 58 | + "webpack-cli": "^3.0.1", |
| 59 | + "xo": "^0.21.1" |
| 60 | + }, |
| 61 | + "xo": { |
| 62 | + "envs": [ |
| 63 | + "browser" |
| 64 | + ], |
| 65 | + "rules": { |
| 66 | + "import/no-unassigned-import": "off", |
| 67 | + "no-unused-vars": [ |
| 68 | + 2, |
| 69 | + { |
| 70 | + "varsIgnorePattern": "^h$" |
| 71 | + } |
| 72 | + ] |
| 73 | + }, |
| 74 | + "globals": [ |
| 75 | + "browser" |
| 76 | + ] |
| 77 | + }, |
| 78 | + "ava": { |
| 79 | + "files": [ |
| 80 | + "test/*.js" |
| 81 | + ], |
| 82 | + "require": [ |
| 83 | + "babel-register" |
| 84 | + ] |
| 85 | + }, |
| 86 | + "babel": { |
| 87 | + "plugins": [ |
| 88 | + [ |
| 89 | + "transform-react-jsx", |
| 90 | + { |
| 91 | + "pragma": "h", |
| 92 | + "useBuiltIns": true |
| 93 | + } |
| 94 | + ], |
| 95 | + [ |
| 96 | + "transform-unicode-property-regex", |
| 97 | + { |
| 98 | + "useUnicodeFlag": true |
| 99 | + } |
| 100 | + ] |
| 101 | + ], |
| 102 | + "env": { |
| 103 | + "testing": { |
| 104 | + "plugins": [ |
| 105 | + "transform-es2015-modules-commonjs" |
| 106 | + ] |
| 107 | + } |
| 108 | + } |
| 109 | + }, |
| 110 | + "stylelint": { |
| 111 | + "extends": "stylelint-config-xo", |
| 112 | + "rules": { |
| 113 | + "declaration-no-important": null, |
| 114 | + "property-no-vendor-prefix": null, |
| 115 | + "property-blacklist": null, |
| 116 | + "selector-class-pattern": null, |
| 117 | + "rule-empty-line-before": null, |
| 118 | + "at-rule-empty-line-before": null |
| 119 | + } |
| 120 | + } |
| 121 | +} |
0 commit comments