Skip to content

Commit

Permalink
feat: add postinstaller
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Pizsa <hopster@gmail.com>
  • Loading branch information
AndreasPizsa committed Nov 27, 2018
1 parent 65b6ea9 commit e28684e
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 32 deletions.
64 changes: 32 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,21 @@
"dependencies": {
"browser-env": "^3.2.5",
"cosmiconfig": "^5.0.7"
},
"postinstaller": {
"if has devDependencies.ava": {
"ava.require[]": "setup-browser-env"
},
"browser-env": {
"// Example configuration": "",
"// Remove leading slashes from the following lines to enable": "",
"// globals": [
"window",
"document"
],
"// jsdom": {
"userAgent": "My User Agent"
}
}
}
}

0 comments on commit e28684e

Please sign in to comment.