Merge pull request #438 from MRuy/master

Dependencies updates, reload tip and .editorconfig added
This commit is contained in:
Ajay Ramachandran
2020-08-27 21:31:50 -04:00
committed by GitHub
5 changed files with 5993 additions and 3984 deletions

18
.editorconfig Normal file
View File

@@ -0,0 +1,18 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
[*.{js,json,ts,tsx}]
charset = utf-8
indent_style = space
indent_size = 4
[package.json]
indent_style = space
indent_size = 2

View File

@@ -75,6 +75,7 @@ The result is in `dist`. This can be loaded as an unpacked extension
## Developing with a clean profile ## Developing with a clean profile
Run `npm run dev` to run the extension using a clean browser profile with hot reloading. Use `npm run dev:firefox` for Firefox. This uses [`web-ext run`](https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#commands). Run `npm run dev` to run the extension using a clean browser profile with hot reloading. Use `npm run dev:firefox` for Firefox. This uses [`web-ext run`](https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#commands).
Known chromium bug: Extension is not loaded properly on first start. Visit `chrome://extensions/` and reload the extension.
# Credit # Credit

9931
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -15,17 +15,17 @@
"react-dom": "^16.12.0" "react-dom": "^16.12.0"
}, },
"devDependencies": { "devDependencies": {
"web-ext": "^4.2.0",
"@types/chrome": "0.0.91", "@types/chrome": "0.0.91",
"@types/firefox-webext-browser": "70.0.1", "@types/firefox-webext-browser": "70.0.1",
"@types/jest": "^24.0.23", "@types/jest": "^24.0.23",
"@types/jquery": "^3.3.31", "@types/jquery": "^3.3.31",
"copy-webpack-plugin": "^5.0.5", "copy-webpack-plugin": "^6.0.3",
"jest": "^24.9.0", "jest": "^26.4.0",
"ts-jest": "^24.2.0",
"rimraf": "^3.0.0", "rimraf": "^3.0.0",
"ts-jest": "^26.2.0",
"ts-loader": "^6.2.1", "ts-loader": "^6.2.1",
"typescript": "~3.7.3", "typescript": "~3.7.3",
"web-ext": "^5.0.0",
"webpack": "~4.41.2", "webpack": "~4.41.2",
"webpack-cli": "~3.3.10", "webpack-cli": "~3.3.10",
"webpack-merge": "~4.2.2" "webpack-merge": "~4.2.2"

View File

@@ -35,11 +35,18 @@ module.exports = env => ({
}, },
plugins: [ plugins: [
// exclude locale files in moment // exclude locale files in moment
new CopyPlugin([ new CopyPlugin({
{ from: '.', to: '../', ignore: ['manifest.json'] } patterns: [
], {
{context: 'public' } from: '.',
), to: '../',
globOptions: {
ignore: ['manifest.json'],
},
context: './public',
}
]
}),
new BuildManifest({ new BuildManifest({
browser: env.browser, browser: env.browser,
pretty: env.mode === "production", pretty: env.mode === "production",