Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.

Commit 264aa9c

Browse files
committed
Rely on external package for seeding code and updating NPM deps
1 parent ce785b5 commit 264aa9c

File tree

7 files changed

+122
-206
lines changed

7 files changed

+122
-206
lines changed

Diff for: .chec.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"dotenv": {
55
"NODE_ENV": "development",
66
"REACT_APP_COMMERCEJS_PUBLIC_KEY": "%chec_pkey%",
7-
"REACT_APP_COMMERCEJS_SECRET_KEY": "%chec_skey%",
8-
"REACT_APP_COMMERCEJS_API_URL": "%chec_api_url%"
7+
"REACT_APP_COMMERCEJS_API_URL": "%chec_api_url%",
8+
"CHEC_SECRET_KEY": "%chec_skey%",
9+
"CHEC_API_URL": "%chec_api_url%"
910
}
1011
}

Diff for: package.json

+3-11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"dependencies": {
66
"@chec/commerce.js": "^2.0.0-beta5",
7+
"@chec/seeder": "^1.0.0-beta1",
78
"gh-pages": "^2.1.1",
89
"node-sass": "^4.12.0",
910
"react": "^16.9.0",
@@ -19,7 +20,7 @@
1920
"eject": "react-scripts eject",
2021
"predeploy": "yarn run build",
2122
"deploy": "gh-pages -d build",
22-
"seed": "node scripts/seed.js"
23+
"seed": "chec-seed seeds"
2324
},
2425
"eslintConfig": {
2526
"extends": "react-app"
@@ -36,14 +37,5 @@
3637
"last 1 safari version"
3738
]
3839
},
39-
"homepage": "https://chec.github.io/example.checkout.v2/",
40-
"devDependencies": {
41-
"chalk": "^3.0.0",
42-
"dotenv": "^8.2.0",
43-
"got": "^9.6.0",
44-
"json-colorizer": "^2.2.1",
45-
"lodash.get": "^4.4.2",
46-
"ora": "^4.0.3",
47-
"promise-queue": "^2.2.5"
48-
}
40+
"homepage": "https://chec.github.io/example.checkout.v2/"
4941
}

Diff for: public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
If you open it directly in the browser, you will see an empty page.
3737
3838
You can add webfonts, meta tags, or analytics to this file.
39-
The build step will place the bundled scripts into the <body> tag.
39+
The build step will place the bundled seeds into the <body> tag.
4040
4141
To begin the development, run `npm start` or `yarn start`.
4242
To create a production bundle, use `npm run build` or `yarn build`.

Diff for: scripts/seed.js

-183
This file was deleted.

Diff for: scripts/assets.json renamed to seeds/assets.json

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)