Skip to content

Commit

Permalink
update docs how to update the browsers score [WIP] sindresorhus#164 s…
Browse files Browse the repository at this point in the history
  • Loading branch information
Yury Shapkarin committed Jul 6, 2020
1 parent aad6d7a commit f32d182
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"test": "xo && ava",
"get-jshint-browser": "node ./update/get-browser-globals/jshint.js",
"combine-jshint-browser": "node ./update/get-browser-globals/combine.js"
"combine-browser": "node ./update/get-browser-globals/combine.js"
},
"files": [
"index.js",
Expand Down
9 changes: 5 additions & 4 deletions update/get-browser-globals/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### Usage
- Run `npm run get-jshint-browser'
- Run `npm run get-jshint-browser'.
- Open an Incognito window in Chrome Canary and paste the above into the console.
You'll now have a new object in your clipboard for the `browser` field in `globals.json`.
- You still need to manually filter out items from the `builtin` list.
- Paste the reult to the `globals.json` to the `browser` section.
- You'll now have a new object in your clipboard.
- Paste yours current clipboard to the field `my_browser` field at the root of the project.
- run `npm run combine-browser`
- Copy and paste the result from the `browser_vars.json` to the field `browser` at the `globals.json`

0 comments on commit f32d182

Please sign in to comment.