-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix 'Failed to minify the code from this file' issue * fix build 'error TS2300: Duplicate identifier 'Element'' issue * fix missing gear icon from parent pr selector * add initial extension build setup
- Loading branch information
Showing
13 changed files
with
198 additions
and
150 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 |
---|---|---|
|
@@ -19,3 +19,5 @@ | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
*.pem |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
declare module "jsx-dom/svg" { | ||
export * from "jsx-dom"; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
rm build/asset-manifest.json | ||
rm build/favicon.ico | ||
rm build/index.html | ||
rm build/service-worker.js | ||
mv build/static/js/*.js.map build/bundle.js.map | ||
mv build/static/js/*.js build/bundle.js | ||
rm -r build/static |
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,15 +1,13 @@ | ||
{ | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
} | ||
], | ||
"start_url": "./index.html", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
"version": "0.0.1", | ||
"name": "Stacker", | ||
"manifest_version": 2, | ||
"description": "Stacked pull requests for Github", | ||
"update_url": "http://www.example.com/update.xml", | ||
"content_scripts": [{ | ||
"js": ["bundle.js"], | ||
"matches": ["*://*/*"] | ||
}], | ||
"permissions": ["*://*/*" ], | ||
"content_security_policy": "default-src 'self'; script-src 'self'; style-src * 'unsafe-inline'; img-src 'self' data:;" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const fs = require("fs"); | ||
const ChromeExtension = require("crx"); | ||
const path = require("path"); | ||
|
||
const argv = require("minimist")(process.argv.slice(2)); | ||
|
||
const keyPath = argv.key || "key.pem"; | ||
const existsKey = fs.existsSync(keyPath); | ||
|
||
const crx = new ChromeExtension({ | ||
privateKey: existsKey ? fs.readFileSync(keyPath) : null | ||
}); | ||
|
||
crx | ||
.load(path.join(__dirname, "../build")) | ||
.then(() => crx.pack()) | ||
.then(crxBuffer => { | ||
fs.writeFileSync("./build/stacker.crx", crxBuffer); | ||
}) | ||
.catch(err => console.error(err)); |
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,4 +1,4 @@ | ||
import { h } from "dom-chef"; | ||
import { h } from "jsx-dom"; | ||
import { | ||
getPullRequest, | ||
getPullRequestCommits, | ||
|
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
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
Oops, something went wrong.