@getverdict/envify
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "@getverdict/envify", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Environment variables for your Shopify Extensions", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,2 +0,1 @@ | ||
````markdown | ||
# Envify | ||
@@ -6,5 +5,11 @@ | ||
## Why? | ||
Because Shopify Extensions do not support environment variables currently. This leads to developers hardcoding secrets like API hosts or public keys within their apps. This practice is very disruptive for teams and as well risky because it's easy to accidentally publish development variables by accident. | ||
With envify, you can inject these variables from your environment into a simple JavaScript/TypeScript modules and import them into your Shopify Checkout, Customer Account or POS extensions. | ||
## Features | ||
- Automatically locates subdirectories within the `extensions` directory. | ||
- Automatically locates React extesions within the `extensions` directory. | ||
- Generates environment variable files (`src/vars.tsx` or `src/vars.jsx`) in each valid extension subdirectory. | ||
@@ -186,2 +191,5 @@ - Supports TypeScript (`.tsx`) and JavaScript (`.jsx`) output. | ||
Contributions are welcome! Please submit issues or pull requests. | ||
```` | ||
``` | ||
``` |
Sorry, the diff of this file is not supported yet
10301
124
194