Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dca6135

Browse files
author
Nick Simmons
committed
updated contributing guide sinopia section to deal with use auth issue
1 parent f170939 commit dca6135

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

react-native-cli/CONTRIBUTING.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ Because `react-native init` calls `npm install react-native`, simply linking you
1313
Then, open `~/.config/sinopia/config.yaml` and configure it like this (note the `max_body_size`):
1414

1515
storage: ./storage
16-
16+
17+
auth:
18+
htpasswd:
19+
file: ./htpasswd
20+
1721
uplinks:
1822
npmjs:
1923
url: https://registry.npmjs.org/
@@ -22,18 +26,18 @@ Then, open `~/.config/sinopia/config.yaml` and configure it like this (note the
2226
'react-native':
2327
allow_access: $all
2428
allow_publish: $all
25-
29+
2630
'react-native-cli':
2731
allow_access: $all
2832
allow_publish: $all
29-
33+
3034
'*':
3135
allow_access: $all
3236
proxy: npmjs
3337

3438
logs:
3539
- {type: stdout, format: pretty, level: http}
36-
40+
3741
max_body_size: '50mb'
3842

3943
Now you can run sinopia by simply doing:
@@ -45,6 +49,7 @@ Now you can run sinopia by simply doing:
4549
Now we need to publish the two React Native packages to our local registry. To do this, we configure npm to use the new registry, unpublish any existing packages and then publish the new ones:
4650

4751
react-native$ npm set registry http://localhost:4873/
52+
react-native$ npm adduser --registry http://localhost:4873/
4853
# Check that it worked:
4954
react-native$ npm config list
5055
react-native$ npm unpublish --force

0 commit comments

Comments
 (0)