diff --git a/package.json b/package.json index cec5dac..4a74623 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/update/get-browser-globals/readme.md b/update/get-browser-globals/readme.md index c072f60..e848974 100644 --- a/update/get-browser-globals/readme.md +++ b/update/get-browser-globals/readme.md @@ -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`