Refactor extension to webpack
This change is the biggest in the history of the project. The entire
project has been refactored so it is built with webpack.
This involves:
- Creating webpack and npm config files.
- Fixing some bugs in the code due to the fact that webpack uses strict
mode.
- Merging some pieces of code which were shared throughout the codebase
(not exhaustive, more work should be done in this direction).
- Splitting the console_inject.js file into separate files (it had 1000+
lines).
- Adapting all the build-related files (Makefile, bash scripts, etc.)
- Changing the docs to explain the new build process.
- Changing the Zuul playbook/roles to adapt to the new build process.
Change-Id: I16476d47825461c3a318b3f1a1eddb06b2df2e89
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..0562556
--- /dev/null
+++ b/package.json
@@ -0,0 +1,37 @@
+{
+ "name": "twpowertools",
+ "version": "0.0.0",
+ "description": "An extension which brings several enhancements to the Google Forums and the Community Console.",
+ "directories": {
+ "doc": "docs"
+ },
+ "scripts": {},
+ "repository": {
+ "type": "git",
+ "url": "https://gerrit.avm99963.com/infinitegforums"
+ },
+ "author": "Adrià Vilanova Martínez (avm99963)",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://bugs.avm99963.com/p/twpowertools"
+ },
+ "keywords": [
+ "chrome",
+ "firefox",
+ "extension",
+ "webext",
+ "add-on",
+ "forums",
+ "google"
+ ],
+ "devDependencies": {
+ "clean-webpack-plugin": "^4.0.0-alpha.0",
+ "copy-webpack-plugin": "^9.0.1",
+ "json5": "^2.2.0",
+ "path": "^0.12.7",
+ "webpack": "^5.44.0",
+ "webpack-cli": "^4.7.2",
+ "webpack-shell-plugin-next": "^2.2.2"
+ },
+ "private": true
+}