@field123/hacksprint-2022-js-sdk-test-response-generation 0.0.7 → 0.0.8

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.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,17 +1,14 @@
1
1
  {
2
2
  "name": "@field123/hacksprint-2022-js-sdk-test-response-generation",
3
- "version": "0.0.7",
4
- "main": "dist/cli.js",
3
+ "version": "0.0.8",
4
+ "main": "./cli.js",
5
5
  "repository": "https://gitlab.elasticpath.com/Michelle.Wan/hacksprint-2022-js-sdk-test-response-generation.git",
6
6
  "author": "Elastic Path",
7
7
  "scripts": {
8
- "postinstall": "terraform init && terraform get",
9
- "build": "tsup && yarn build:copy:terra",
10
- "build:copy:terra": "cp package.json dist/ && cp README.md dist/ && cp main.tf dist/",
11
- "semantic-release": "semantic-release"
8
+ "postinstall": "terraform init && terraform get"
12
9
  },
13
10
  "files": [
14
- "dist/"
11
+ "./"
15
12
  ],
16
13
  "devDependencies": {
17
14
  "@semantic-release/git": "^10.0.1",
@@ -36,6 +33,6 @@
36
33
  "access": "public"
37
34
  },
38
35
  "bin": {
39
- "hacksprint-2022-js-sdk-test-response-generation": "dist/cli.js"
36
+ "hacksprint-2022-js-sdk-test-response-generation": "./cli.js"
40
37
  }
41
38
  }
package/dist/README.md DELETED
@@ -1,43 +0,0 @@
1
- # @field123/hacksprint-2022-js-sdk-test-response-generation
2
-
3
- # Test Data Retrival Script
4
-
5
- The script populates a store with test data, runs CURL calls to get data then tears down the data to create a clean slate.
6
-
7
- Utilizes the [EPCC Terraform Provider](https://registry.terraform.io/providers/elasticpath/epcc/latest) to populate and tear down down data in a store.
8
-
9
- ## Setup
10
-
11
- Create a `.env` file based on the `.env.example` file.
12
-
13
- ## Install
14
-
15
- ```sh
16
- yarn add -D @field123/hacksprint-2022-js-sdk-test-response-generation
17
- ```
18
-
19
- ## Usage
20
-
21
- ```sh
22
- npx hacksprint-2022-js-sdk-test-response-generation endpoints -s <source> -o <dest> -e <environment-file>
23
- ```
24
-
25
- ```sh
26
- npx hacksprint-2022-js-sdk-test-response-generation endpoints -s ./postman-export/postman_collection.json -o ./output -e ./postman-export/postman_environment.json
27
- ```
28
-
29
- ```sh
30
- npx hacksprint-2022-js-sdk-test-response-generation endpoints -s ./postman-export/postman_collection.json -o ./output -e ./postman-export/postman_environment.json -v
31
- ```
32
-
33
- | Key | CLI opt | Default | Description |
34
- | ---- | ----------------- | -------- | ------------------------------------------------------ |
35
- | s | --source \<file\> | required | Source postman collection json file. |
36
- | e | --env \<file\> | required | Source postman environment json file. |
37
- | o | --output \<dir\> | \<dir\> | Output location for the generated endpoint json files. |
38
- | v | --verbose | false | Logs details of terraform commands to console. |
39
- | help | -h, --help | n/a | display help for command |
40
-
41
- ## Sources
42
-
43
- `main.tf` comes from this repo: https://gitlab.elasticpath.com/commerce-cloud/playground/sample-catalogs-accelerator/-/blob/MT-11900/store-scope/variants/get-started-with-pcm-catalog/main.tf
package/dist/package.json DELETED
@@ -1,38 +0,0 @@
1
- {
2
- "name": "@field123/hacksprint-2022-js-sdk-test-response-generation",
3
- "version": "0.0.7",
4
- "main": "./cli.js",
5
- "repository": "https://gitlab.elasticpath.com/Michelle.Wan/hacksprint-2022-js-sdk-test-response-generation.git",
6
- "author": "Elastic Path",
7
- "scripts": {
8
- "postinstall": "terraform init && terraform get"
9
- },
10
- "files": [
11
- "./"
12
- ],
13
- "devDependencies": {
14
- "@semantic-release/git": "^10.0.1",
15
- "@semantic-release/gitlab": "^9.1.0",
16
- "@semantic-release/npm": "^9.0.1",
17
- "@types/node": "^17.0.23",
18
- "semantic-release": "^19.0.2",
19
- "tsup": "^5.12.4",
20
- "typescript": "^4.6.3"
21
- },
22
- "dependencies": {
23
- "@field123/newman-reporter-ep-resp": "^0.0.5",
24
- "@jahed/terraform": "1.1.7",
25
- "@types/newman": "^5.3.0",
26
- "axios": "^0.26.1",
27
- "commander": "^9.1.0",
28
- "dotenv": "^16.0.0",
29
- "newman": "^5.3.2",
30
- "newman-reporter-htmlextra": "^1.22.8"
31
- },
32
- "publishConfig": {
33
- "access": "public"
34
- },
35
- "bin": {
36
- "hacksprint-2022-js-sdk-test-response-generation": "./cli.js"
37
- }
38
- }