Eric Mc Sween c9f8080769 Merge pull request #10372 from overleaf/ii-adjust-plans-prices há 3 anos atrás
..
.gitignore c9f8080769 Merge pull request #10372 from overleaf/ii-adjust-plans-prices há 3 anos atrás
README.md c9f8080769 Merge pull request #10372 from overleaf/ii-adjust-plans-prices há 3 anos atrás
groups.js c9f8080769 Merge pull request #10372 from overleaf/ii-adjust-plans-prices há 3 anos atrás
package-lock.json c9f8080769 Merge pull request #10372 from overleaf/ii-adjust-plans-prices há 3 anos atrás
package.json c9f8080769 Merge pull request #10372 from overleaf/ii-adjust-plans-prices há 3 anos atrás
plans.js c9f8080769 Merge pull request #10372 from overleaf/ii-adjust-plans-prices há 3 anos atrás

README.md

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 group plans

Command node groups.js fileName sheetName - generates group plans prices. To be used for /services/web/app/templates/plans/groups.json

Create localized plan pricing

Command node plans.js fileName sheetName - generates two json files:

  • localizedPlanPricing.json for /services/web/config/settings.overrides.saas.js
  • plans.json for /services/web/frontend/js/main/plans.js