Skip to content
Snippets Groups Projects
Commit 4a6c547e authored by Valentin Rigal's avatar Valentin Rigal
Browse files

Use web-ext and fix npm vulns

parent 511aadcb
No related branches found
No related tags found
2 merge requests!4Setup CI,!3Setup the stack to use Vue in both the web extension and a regular html form
# Virtual Keyboard # Virtual Keyboard
## Development ## Live reloading
`npm run serve` `npm run serve`
## Run the application as a web extension ## Run the application as a web extension
### Firefox ### Firefox
* Build the packaged addon `npm run build` `npm run start:firefox`
* Go to `about:debugging#/runtime/this-firefox`
* Load `artifacts/virtual-keyboard-v<version>-production.zip` as a temporary extension
### Chromium ### Chromium
* Run `npm run serve` to support live reload `npm run start:chromium`
* Go to `chrome://extensions/`
* Click on "Load unpacked" and select the `dist` folder
This diff is collapsed.
...@@ -6,10 +6,12 @@ ...@@ -6,10 +6,12 @@
"scripts": { "scripts": {
"serve": "vue-cli-service build --mode development --watch", "serve": "vue-cli-service build --mode development --watch",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint",
"start:firefox": "web-ext run --source-dir ./dist/",
"start:chromium": "web-ext run -t chromium --source-dir ./dist/"
}, },
"dependencies": { "dependencies": {
"axios": "^0.20.0", "axios": "^0.21.1",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"vue": "^2.6.11", "vue": "^2.6.11",
"vue-router": "^3.2.0", "vue-router": "^3.2.0",
...@@ -31,7 +33,8 @@ ...@@ -31,7 +33,8 @@
"sass": "^1.26.5", "sass": "^1.26.5",
"sass-loader": "^8.0.2", "sass-loader": "^8.0.2",
"vue-cli-plugin-browser-extension": "latest", "vue-cli-plugin-browser-extension": "latest",
"vue-template-compiler": "^2.6.11" "vue-template-compiler": "^2.6.11",
"web-ext": "^6.1.0"
}, },
"gitHooks": { "gitHooks": {
"pre-commit": "lint-staged" "pre-commit": "lint-staged"
......
{
"name": "virtual-keyboard",
"version": "0.0.1",
"description": "Adds a customizable virtual keyboard on text input areas.",
"main": "extension-dist/index.js",
"scripts": {
"start:firefox": "web-ext run --source-dir ./virtual-keyboard/"
},
"dependencies": {
"web-ext": "6.1.0"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment