Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Commit 21d68fe

Browse files
authored
Test pre build install (#1)
* use TOML format and plugin v1.2.0 * CI string
1 parent ddd0d1f commit 21d68fe

File tree

5 files changed

+24
-22
lines changed

5 files changed

+24
-22
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ yarn-error.log
6767
.pnp.js
6868
# Yarn Integrity file
6969
.yarn-integrity
70+
cypress/videos

netlify.toml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Netlify config file
2+
# https://docs.netlify.com/configure-builds/file-based-configuration/
3+
[build]
4+
command = "npm run build"
5+
publish = "public"
6+
[build.environment]
7+
# do not show Cypress installation progress messages
8+
CI = "1"
9+
# cache Cypress binary in local "node_modules" folder
10+
# so Netlify caches it
11+
CYPRESS_CACHE_FOLDER = "./node_modules/CypressBinary"
12+
# set TERM variable for terminal output
13+
TERM = "xterm"
14+
15+
[[plugins]]
16+
package = "netlify-plugin-cypress"

netlify.yaml

-15
This file was deleted.

package-lock.json

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"devDependencies": {
2222
"cypress": "4.2.0",
23-
"netlify-plugin-cypress": "1.0.2",
23+
"netlify-plugin-cypress": "1.2.0",
2424
"prettier": "^1.19.1",
2525
"start-server-and-test": "1.10.11"
2626
},
@@ -37,8 +37,7 @@
3737
"serve": "gatsby serve",
3838
"clean": "gatsby clean",
3939
"test": "cypress run",
40-
"cy:open": "cypress open",
41-
"postinstall": "cypress install"
40+
"cy:open": "cypress open"
4241
},
4342
"repository": {
4443
"type": "git",

0 commit comments

Comments
 (0)