overleaf/services/web/scripts/plan-prices
Antoine Clausse eea27a36a4 [web] Add prefer-node-protocol ESLint rule (#21523)
* Add `unicorn/prefer-node-protocol`

* Revert non-web changes

* Run `npm run lint:fix` (prefer-node-protocol)

GitOrigin-RevId: c3cdd88ff9e6b3de6a4397d45935c4d026c1c1ed
2024-11-05 09:04:33 +00:00
..
.gitignore Merge pull request #14070 from overleaf/ii-remove-xlsx-package 2023-07-31 08:04:07 +00:00
package-lock.json Merge pull request #14070 from overleaf/ii-remove-xlsx-package 2023-07-31 08:04:07 +00:00
package.json Merge pull request #14070 from overleaf/ii-remove-xlsx-package 2023-07-31 08:04:07 +00:00
plans.mjs [web] Add prefer-node-protocol ESLint rule (#21523) 2024-11-05 09:04:33 +00:00
README.md Merge pull request #21282 from overleaf/ls-scripts-to-esm-5 2024-10-25 08:05:41 +00:00

A nodejs tool for reading plans prices from csv files and creating JSON objects.

Run npm install in order to install the dependencies.

The scripts will put the output results into the output folder.

Create localized and group plan pricing

Command node plans.mjs -f fileName -o outputdir - generates three json files:

  • localizedPlanPricing.json for /services/web/config/settings.overrides.saas.js
  • groups.json for /services/web/app/templates/plans/groups.json

The input file can be in .csv or .json format

  • .csv csv format
  • .json json format from the recurly_prices.mjs --download script output