1.0.3 • Published 10 months ago
@n6k/litium-storefront-env v1.0.3
litium-storefront-env
A wrapper for litium-storefront CLI tool that uses an .env file for options input.
The wrapper handles running the proxy and importing/exporting field and fieldtemplate definitions
Prerequisites
Before using litium-storefront-env, ensure that you have the following installed:
Requirements
- Node.js version 20.x+
- litium-storefront CLI tool from Litium
Installation
npm install -g @n6k/litium-storefront-envUsage
Export .env.template file
litium-storefront-env env-templateRun Litium proxy
litium-storefront-env proxy -e .env.testImport definitions to Litium instance
litium-storefront-env import -e .env.testExport definitions from Litium instance
litium-storefront-env export -e .env.testEnv parameters
The generated template contains the following parameters
# Url to Litium backend (for proxy and import/export)
LITIUM=
# Url to Litium storefront (for proxy)
STOREFRONT=
# Custom port for exposed frontend (for proxy, default value 3001)
PORT=
# Username for importing/exporting definitions (for import/export)
LITIUM_USERNAME=
# Password for importing/exporting definitions (for import/export)
LITIUM_PASSWORD=License
This project is released under the MIT License.
Contributing
Feel free to contribute by sending a Pull Request.