Percy Cli
How to use
Put the following percy object inside the projects package.json
. Setup percy.io and connect the project to github. Builds will run on every deployment.
Options
Optional parameters can be omitted and will be filled with the default percy configuration of this package.
If you only want to use the default settings from this package, just place the following object inside your projects package.json
"percy": {
"version": 2
}
Full Config Example
"percy": {
"version": 2,
"snapshot": {
"widths": [
320,
468,
768,
1024,
1920
],
"minHeight": 2000,
"percyCss": "iframe { display: none; }",
"device-pixel-ratio": 1
},
"discovery": {
"allowedHostnames": [],
"disallowedHostnames": [],
"requestHeaders": {
"Authorization": ""
},
"authorization": {
"username": "",
"password": ""
},
"networkIdleTimeout": 500,
"concurrency": 3,
"disableCache": false,
"launchOptions": {
"executable": "/path/to/chromium/executable",
"headless": true,
"args": [],
"timeout": 30000
}
},
"stage": {
"staging": {
"urls": [
"/",
"/kontakt",
"/saisonale-dekoration",
]
},
"production": {
"urls": [
"/",
"/kontakt",
"/saisonale-dekoration",
]
}
}
}