Moved web-ext config from flags to js file
This commit is contained in:
parent
095410ede2
commit
d0bab00b40
|
@ -6,9 +6,9 @@
|
||||||
"npm": ">=8.1.2"
|
"npm": ">=8.1.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "web-ext run --browser-console --source-dir ./src/",
|
"start": "web-ext run",
|
||||||
"build": "web-ext build --overwrite-dest --source-dir ./src/",
|
"build": "web-ext build",
|
||||||
"test": "web-ext lint --source-dir ./src/ || true",
|
"test": "web-ext lint",
|
||||||
"instances": "python3 src/instances/get_instances.py && git update-index --assume-unchanged src/instances/blacklist.json src/instances/data.json",
|
"instances": "python3 src/instances/get_instances.py && git update-index --assume-unchanged src/instances/blacklist.json src/instances/data.json",
|
||||||
"ejs": "npx ejs src/pages/options/index.ejs -f src/config/config.json -o src/pages/options/index.html && npx ejs src/pages/popup/popup.ejs -f src/config/config.json -o src/pages/popup/popup.html"
|
"ejs": "npx ejs src/pages/options/index.ejs -f src/config/config.json -o src/pages/options/index.html && npx ejs src/pages/popup/popup.ejs -f src/config/config.json -o src/pages/popup/popup.html"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
ignoreFiles: ["instances/get_instances.py"],
|
ignoreFiles: ["instances/get_instances.py"],
|
||||||
|
sourceDir: "./src/",
|
||||||
|
run: {
|
||||||
|
browserConsole: true,
|
||||||
|
},
|
||||||
|
build: {
|
||||||
|
overwriteDest: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
pipeline:
|
|
||||||
instancefetch:
|
|
||||||
image: python:alpine
|
|
||||||
secrets: [token, mail]
|
|
||||||
when:
|
|
||||||
- event: cron
|
|
||||||
cron: instance_updater
|
|
||||||
commands:
|
|
||||||
- python -m pip install --upgrade pip
|
|
||||||
- pip install requests colorama
|
|
||||||
- python src/instances/get_instances.py
|
|
||||||
# SSH configuration
|
|
||||||
- mkdir ~/.ssh
|
|
||||||
- ssh-keyscan -t ed25519 codeberg.org >> ~/.ssh/known_hosts
|
|
||||||
- eval `ssh-agent`
|
|
||||||
- echo "$TOKEN" | tr -d '\r' | ssh-add -
|
|
||||||
# Git configuration
|
|
||||||
- git config --global user.email $MAIL
|
|
||||||
- git config --global user.name "Woodpecker CI"
|
|
||||||
- git commit -am "updated instances"
|
|
||||||
- git remote set-url origin git@codeberg.org:libredirect/libredirect.git
|
|
||||||
- git push --set-upstream origin master
|
|
||||||
lint:
|
|
||||||
image: node:lts-alpine
|
|
||||||
when:
|
|
||||||
event: [push, pull_request]
|
|
||||||
path:
|
|
||||||
exclude: ["src/instances/**"]
|
|
||||||
include: ["src/"]
|
|
||||||
commands:
|
|
||||||
- npm i
|
|
||||||
- npx web-ext lint --source-dir ./src/
|
|
Loading…
Reference in New Issue