cozy / cozy-drive

Cozy Drive Web App for Cozy Cloud
GNU Affero General Public License v3.0
169 stars 65 forks source link

chore: Handle node 16/node 20 at the same time #3036

Closed Crash-- closed 9 months ago

Crash-- commented 9 months ago

Since we're stuck on webpack 4 ATM because of cozy-scripts, we need to fallback to --openssl-legacy-provider for crypto stuff.

But this node option is only available for node 17+. So we've to wrap our cozy-scripts call to a script that check the node version and add or not the option

### 🔧 Tech

* Can develop on node 16 or 20 
bundlemon[bot] commented 9 months ago

BundleMon

Unchanged files (19) Status | Path | Size | Limits :------------: | ------------ | :------------: | :------------: :white_check_mark: | drive/public/drive.(hash).js
| 1.68MB | 1.7MB :white_check_mark: | drive/vendors/drive.(hash).js
| 1.4MB | 1.6MB :white_check_mark: | drive/public/pdf.worker.entry.(hash).worker.j
s
| 343.37KB | 345KB :white_check_mark: | drive/app/drive.(hash).js
| 296.26KB | 300KB :white_check_mark: | drive/services/dacc/drive.js
| 260.8KB | 500KB :white_check_mark: | drive/services/qualificationMigration/drive.j
s
| 254.88KB | 500KB :white_check_mark: | drive/intents/drive.(hash).js
| 188.22KB | 190KB :white_check_mark: | drive/public/cozy-client-js.js
| 158.97KB | 160KB :white_check_mark: | drive/public/drive.(hash).min.css
| 92.45KB | 100KB :white_check_mark: | drive/app-drive.(hash).min.css
| 55.47KB | 56KB :white_check_mark: | drive/intents-drive.(hash).min.css
| 36.89KB | 40KB :white_check_mark: | drive/onlyOffice/slide.pptx
| 24.82KB | 25KB :white_check_mark: | drive/onlyOffice/text.docx
| 5.84KB | 6KB :white_check_mark: | drive/onlyOffice/spreadsheet.xlsx
| 5.01KB | 6KB :white_check_mark: | drive/manifest.webapp
| 1.89KB | 2KB :white_check_mark: | drive/index.html
| 531B | 1KB :white_check_mark: | drive/intents/index.html
| 518B | 1KB :white_check_mark: | drive/img/app-icon.(hash).svg
| 419B | 1KB :white_check_mark: | drive/manifest.json
| 184B | 1KB

Total files change +16B 0%

Unchanged groups (7) Status | Path | Size | Limits :------------: | ------------ | :------------: | :------------: :white_check_mark: | drive/public/**
| 2.27MB | +7% :white_check_mark: | drive/vendors/**
| 1.4MB | +15% :white_check_mark: | drive/services/**
| 515.68KB | +3% :white_check_mark: | drive/app/**
| 296.26KB | +10% :white_check_mark: | drive/intents/**
| 188.73KB | +15% :white_check_mark: | drive/onlyOffice/**
| 35.68KB | +0.4% :white_check_mark: | drive/img/**
| 419B | +0.4%

Final result: :white_check_mark:

View report in BundleMon website ➡️


Current branch size history | Target branch size history

Crash-- commented 9 months ago

Not needed. It's already handled by cozy-script. https://github.com/cozy/cozy-drive/pull/3037