algolia-uploader 0.0.5 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -11
- package/dist/index.cjs +27 -27
- package/dist/index.mjs +27 -27
- package/package.json +21 -16
package/README.md
CHANGED
|
@@ -107,22 +107,30 @@ or
|
|
|
107
107
|
|
|
108
108
|
## Development
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
A `devcontainer` is included.
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
In this repository, `.env` and `.env.ci` are encrypted with [dotenvx](https://dotenvx.com/docs/quickstart).
|
|
113
113
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
- `.env` is for debugging and testing in your local environment
|
|
115
|
+
- `.env.ci` is for testing with GitHub Actions
|
|
116
|
+
- These files contain only dummy data
|
|
117
|
+
|
|
118
|
+
### How to debug
|
|
119
|
+
|
|
120
|
+
Run `npm run dev`.
|
|
121
|
+
|
|
122
|
+
You can debug with your real Algolia application using `.debug/example.json` or a JSON file you prepared.
|
|
123
|
+
|
|
124
|
+
If you want to do so, you also need to edit the `.env` file.
|
|
117
125
|
|
|
118
|
-
|
|
126
|
+
### How to test
|
|
119
127
|
|
|
120
|
-
|
|
128
|
+
Run `npm test`.
|
|
121
129
|
|
|
122
|
-
|
|
130
|
+
The tests attempt to read the local `.env` file, but the actual variables used in the tests are updated internally.
|
|
123
131
|
|
|
124
|
-
|
|
132
|
+
Therefore, the tests do not access your real Algolia application.
|
|
125
133
|
|
|
126
|
-
|
|
134
|
+
### GitHub Actions
|
|
127
135
|
|
|
128
|
-
|
|
136
|
+
Testing with GitHub Actions uses `.env.ci`.
|