Browse Source

Updates browserlist daily with a ofelia job, so that caniuse generates the newest browsers.

master
Jonathan Rosenbaum 11 months ago
parent
commit
dffbba76ce
  1. 2
      caniuse.js
  2. 13
      docker-compose.yml
  3. 3
      package.json
  4. 45
      pnpm-lock.yaml

2
caniuse.js

@ -148,4 +148,4 @@ function caniuse(dir) {
}
});
}
}

13
docker-compose.yml

@ -114,12 +114,17 @@ services:
- "3000"
links:
- db
# Make sure to rename container to what is being used
labels:
ofelia.enabled: "true" # in rss2email
ofelia.job-exec.bikebikebike-job.schedule: "@every 6h"
ofelia.job-exec.bikebikebike-job.container: "bikebikebike"
ofelia.job-exec.bikebikebike-job.command: "/app/BikeBike/caniuse.js"
ofelia.job-exec.bikebikebike-job.user: "root:root"
ofelia.job-exec.bikebikebike-caniuse.schedule: "@every 6h"
ofelia.job-exec.bikebikebike-caniuse.container: "bikebikebike"
ofelia.job-exec.bikebikebike-caniuse.command: "/app/BikeBike/caniuse.js"
ofelia.job-exec.bikebikebike-.user: "root:root"
ofelia.job-exec.bikebikebike-browserlist.schedule: "@every 24h"
ofelia.job-exec.bikebikebike-browserlist.container: "bikebikebike"
ofelia.job-exec.bikebikebike-browserlist.command: "/root/.local/share/pnpm/pnpm update browserlist@latest"
ofelia.job-exec.bikebikebike-browserlist.user: "root:root"
restart: always
logging:
driver: "json-file"

3
package.json

@ -1,5 +1,6 @@
{
"dependencies": {
"browserslist": "^4.21.9"
"browserslist": "^4.22.2",
"npx": "^10.2.2"
}
}

45
pnpm-lock.yaml

@ -6,28 +6,31 @@ settings:
dependencies:
browserslist:
specifier: ^4.21.9
version: 4.21.9
specifier: ^4.22.2
version: 4.22.2
npx:
specifier: ^10.2.2
version: 10.2.2
packages:
/browserslist@4.21.9:
resolution: {integrity: sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==}
/browserslist@4.22.2:
resolution: {integrity: sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==}
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
dependencies:
caniuse-lite: 1.0.30001516
electron-to-chromium: 1.4.461
node-releases: 2.0.13
update-browserslist-db: 1.0.11(browserslist@4.21.9)
caniuse-lite: 1.0.30001576
electron-to-chromium: 1.4.631
node-releases: 2.0.14
update-browserslist-db: 1.0.13(browserslist@4.22.2)
dev: false
/caniuse-lite@1.0.30001516:
resolution: {integrity: sha512-Wmec9pCBY8CWbmI4HsjBeQLqDTqV91nFVR83DnZpYyRnPI1wePDsTg0bGLPC5VU/3OIZV1fmxEea1b+tFKe86g==}
/caniuse-lite@1.0.30001576:
resolution: {integrity: sha512-ff5BdakGe2P3SQsMsiqmt1Lc8221NR1VzHj5jXN5vBny9A6fpze94HiVV/n7XRosOlsShJcvMv5mdnpjOGCEgg==}
dev: false
/electron-to-chromium@1.4.461:
resolution: {integrity: sha512-1JkvV2sgEGTDXjdsaQCeSwYYuhLRphRpc+g6EHTFELJXEiznLt3/0pZ9JuAOQ5p2rI3YxKTbivtvajirIfhrEQ==}
/electron-to-chromium@1.4.631:
resolution: {integrity: sha512-g73CJB/rMPjdxpiNJYmV1homV7mLVUNe/R0z/HhqMfpjkt58FpYmkTjbtuv3zymdbTTJ+VOEqe1c+lkTjSOhmQ==}
dev: false
/escalade@3.1.1:
@ -35,21 +38,29 @@ packages:
engines: {node: '>=6'}
dev: false
/node-releases@2.0.13:
resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==}
/node-releases@2.0.14:
resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==}
dev: false
/npx@10.2.2:
resolution: {integrity: sha512-eImmySusyeWphzs5iNh791XbZnZG0FSNvM4KSah34pdQQIDsdTDhIwg1sjN3AIVcjGLpbQ/YcfqHPshKZQK1fA==}
hasBin: true
dev: false
bundledDependencies:
- npm
- libnpx
/picocolors@1.0.0:
resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==}
dev: false
/update-browserslist-db@1.0.11(browserslist@4.21.9):
resolution: {integrity: sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==}
/update-browserslist-db@1.0.13(browserslist@4.22.2):
resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==}
hasBin: true
peerDependencies:
browserslist: '>= 4.21.0'
dependencies:
browserslist: 4.21.9
browserslist: 4.22.2
escalade: 3.1.1
picocolors: 1.0.0
dev: false

Loading…
Cancel
Save