Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ test/web-ext-profile
.cache
.parcel-cache
.built

dist
.cache
.parcel-cache
8 changes: 8 additions & 0 deletions .parcelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": ["@parcel/config-default"],
"transformers": {
"*.svg": ["@parcel/transformer-svg-react"],
"*.png": ["@parcel/transformer-raw"],
"manifest.json": ["@parcel/transformer-raw"]
}
}
12,774 changes: 11,776 additions & 998 deletions package-lock.json

Large diffs are not rendered by default.

19 changes: 18 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"ava": "rollup test/*.ts --plugin typescript --dir .built/test --chunkFileNames _.mjs --entryFileNames [name].mjs && ava",
"build": "run-p build:* --continue-on-error",
"build:typescript": "tsc --noEmit",
"build:webpack": "webpack --mode=production",
"build:webpack": "parcel build source/refined-github.ts",
"fix": "run-p 'lint:* -- --fix'",
"lint": "run-p lint:* --continue-on-error",
"lint:css": "stylelint 'source/**/*.css'",
Expand All @@ -20,6 +20,10 @@
"watch:typescript": "tsc --noEmit --watch --preserveWatchOutput",
"watch:webpack": "webpack --mode=development --watch"
},
"browserslist": [
"last 1 Chrome versions",
"last 1 Firefox versions"
],
"stylelint": {
"extends": "stylelint-config-xo",
"rules": {
Expand All @@ -37,6 +41,7 @@
},
"dependencies": {
"@cheap-glitch/mi-cron": "^1.0.1",
"@parcel/transformer-svg-react": "^2.0.0-nightly.2039",
"@primer/octicons": "^9.6.0",
"@primer/octicons-v2": "0.0.0-60ee16f",
"copy-text-to-clipboard": "^2.2.0",
Expand All @@ -57,6 +62,9 @@
"linkify-urls": "^3.1.0",
"mem": "6.1.0",
"onetime": "^5.1.2",
"parcel": "^2.0.0-nightly.415",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"select-dom": "^6.0.2",
"selector-observer": "^2.1.6",
"shorten-repo-url": "^2.0.1",
Expand Down Expand Up @@ -112,6 +120,15 @@
"webpack-cli": "^3.3.12",
"xo": "^0.33.0"
},
"alias": {
"octicon": "@primer/octicons-v2/build/svg",
"react": "dom-chef"
},
"targets": {
"default": {
"publicUrl": "./"
}
},
"webExt": {
"sourceDir": "distribution",
"run": {
Expand Down
1 change: 1 addition & 0 deletions source/background.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'webextension-polyfill';
import 'webext-dynamic-content-scripts';
import cache from 'webext-storage-cache'; // Also needed to regularly clear the cache
import addDomainPermissionToggle from 'webext-domain-permission-toggle';
Expand Down
2 changes: 0 additions & 2 deletions source/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
},
"background": {
"scripts": [
"browser-polyfill.min.js",
"background.js"
]
},
Expand All @@ -49,7 +48,6 @@
"refined-github.css"
],
"js": [
"browser-polyfill.min.js",
"refined-github.js"
]
}
Expand Down
3 changes: 1 addition & 2 deletions source/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,4 @@
</div>

</form>
<script src="browser-polyfill.min.js"></script>
<script src="options.js"></script>
<script src="options.tsx"></script>
3 changes: 2 additions & 1 deletion source/options.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'webext-base-css/webext-base.css';
import 'webextension-polyfill';
import 'webext-base-css';
import './options.css';
import React from 'dom-chef';
import cache from 'webext-storage-cache';
Expand Down