-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from guardian/feature/aazure-compatibility
Feature/azure compatibility
- Loading branch information
Showing
21 changed files
with
3,362 additions
and
2,878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,28 @@ Now, simply add the library as a dependency in your package.json: | |
|
||
Make sure that you use the latest version, as shown under Releases on the github front page. | ||
|
||
When running locally, you will need to authenticate to the github npm repository like this: | ||
``` | ||
npm login --scope=@guardian --registry=https://npm.pkg.github.com | ||
npm notice Log in on https://npm.pkg.github.com/ | ||
Username: ([email protected]) github-user | ||
Password: | ||
Email: (this IS public) [email protected] | ||
Logged in as github-user on https://npm.pkg.github.com/. | ||
``` | ||
|
||
If you don't log in, yarn will complain: | ||
``` | ||
error Couldn't find package "@guardian/pluto-headers" on the "npm" registry. | ||
``` | ||
|
||
If you see this error: | ||
``` | ||
error An unexpected error occurred: "https://npm.pkg.github.com/@guardian%2fpluto-headers: Your token has not been granted the required scopes to execute this query. The 'summary' field requires one of the following scopes: ['read:packages'], but your token has only been granted the: ['repo'] scopes. Please modify your token's scopes at: https://github.com/settings/tokens.". | ||
``` | ||
Then it means that you need to go to the Tokens page on github (while logged in of course!) and add the `read_packages`scope. | ||
|
||
|
||
*If you want to develop the library itself* see "Local Development" below. | ||
|
||
**Help! I installed it locally and it broke my dev environment!** - see the section "Local Development" below. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.