algolia-uploader 0.0.5 → 0.0.9

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 CHANGED
@@ -107,22 +107,30 @@ or
107
107
 
108
108
  ## Development
109
109
 
110
- ### Devcontainer
110
+ A `devcontainer` is included.
111
111
 
112
- `Devcontainer` is included. If you are using vscode as your editor, the command below is required only the first time it is started.
112
+ In this repository, `.env` and `.env.ci` are encrypted with [dotenvx](https://dotenvx.com/docs/quickstart).
113
113
 
114
- ```
115
- yarn dlx @yarnpkg/sdks vscode
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
- - Also check here :point_right: : https://yarnpkg.com/getting-started/editor-sdks
126
+ ### How to test
119
127
 
120
- ### How to dev in your env
128
+ Run `npm test`.
121
129
 
122
- You can debug in the development environment with the `yarn dev` command.
130
+ The tests attempt to read the local `.env` file, but the actual variables used in the tests are updated internally.
123
131
 
124
- Running the `yarn dev` command will read the `.env` file in the development environment and access the DB provided in Algolia.
132
+ Therefore, the tests do not access your real Algolia application.
125
133
 
126
- Therefore, please prepare your own Algolia test application using `.debug/example.json` and prepare the `.env` file as well.
134
+ ### GitHub Actions
127
135
 
128
- Also, this package uses [dotenvx](https://dotenvx.com/docs/quickstart). If you are not familiar with it, I suggest you check the original docs.
136
+ Testing with GitHub Actions uses `.env.ci`.