updated contributing guide sinopia section to deal with use auth issue
This commit is contained in:
parent
f170939c70
commit
dca6135d35
|
@ -13,7 +13,11 @@ Because `react-native init` calls `npm install react-native`, simply linking you
|
||||||
Then, open `~/.config/sinopia/config.yaml` and configure it like this (note the `max_body_size`):
|
Then, open `~/.config/sinopia/config.yaml` and configure it like this (note the `max_body_size`):
|
||||||
|
|
||||||
storage: ./storage
|
storage: ./storage
|
||||||
|
|
||||||
|
auth:
|
||||||
|
htpasswd:
|
||||||
|
file: ./htpasswd
|
||||||
|
|
||||||
uplinks:
|
uplinks:
|
||||||
npmjs:
|
npmjs:
|
||||||
url: https://registry.npmjs.org/
|
url: https://registry.npmjs.org/
|
||||||
|
@ -22,18 +26,18 @@ Then, open `~/.config/sinopia/config.yaml` and configure it like this (note the
|
||||||
'react-native':
|
'react-native':
|
||||||
allow_access: $all
|
allow_access: $all
|
||||||
allow_publish: $all
|
allow_publish: $all
|
||||||
|
|
||||||
'react-native-cli':
|
'react-native-cli':
|
||||||
allow_access: $all
|
allow_access: $all
|
||||||
allow_publish: $all
|
allow_publish: $all
|
||||||
|
|
||||||
'*':
|
'*':
|
||||||
allow_access: $all
|
allow_access: $all
|
||||||
proxy: npmjs
|
proxy: npmjs
|
||||||
|
|
||||||
logs:
|
logs:
|
||||||
- {type: stdout, format: pretty, level: http}
|
- {type: stdout, format: pretty, level: http}
|
||||||
|
|
||||||
max_body_size: '50mb'
|
max_body_size: '50mb'
|
||||||
|
|
||||||
Now you can run sinopia by simply doing:
|
Now you can run sinopia by simply doing:
|
||||||
|
@ -45,6 +49,7 @@ Now you can run sinopia by simply doing:
|
||||||
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:
|
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:
|
||||||
|
|
||||||
react-native$ npm set registry http://localhost:4873/
|
react-native$ npm set registry http://localhost:4873/
|
||||||
|
react-native$ npm adduser --registry http://localhost:4873/
|
||||||
# Check that it worked:
|
# Check that it worked:
|
||||||
react-native$ npm config list
|
react-native$ npm config list
|
||||||
react-native$ npm unpublish --force
|
react-native$ npm unpublish --force
|
||||||
|
|
Loading…
Reference in New Issue