mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 17:51:51 +02:00
refactor plan-prices scripts and add new currency (INR) GitOrigin-RevId: 12b515143e0426f19b2d224569bf9c5490b7d72a
A nodejs tool for reading plans prices from an Excel file and creating JSON objects.
Run npm install in order to install the xlsx dependency.
The scripts will put the output results into the output folder.
Create localized and group plan pricing
Command node plans.js -f fileName -s sheetName -o outputdir - generates three json files:
localizedPlanPricing.jsonfor/services/web/config/settings.overrides.saas.jsplans.jsonfor/services/web/frontend/js/main/plans.jsgroups.jsonfor/services/web/app/templates/plans/groups.json
The input file can be in .xls, .csv or .json format
.xlsxexcel spreadsheet, requires the-s sheetNameoption.csvcsv format, same data as for excel spreadsheet.jsonjson format from therecurly_prices.js --downloadscript output