Created
October 8, 2015 23:11
-
-
Save goffreder/c9b51cfb394d4e3893b8 to your computer and use it in GitHub Desktop.
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
- Installare npmo (vedi mail su wyscout.com con istruzioni) | |
- Registro il client: | |
npm login --registry=http://arrested-developer.com:8080 --scope=wyscout | |
utente github (goffreder - GitHub password - goffreder@gmail.com) | |
- Creo pacchetto da pubblicare | |
{ | |
"name": "@wyscout/test-npm", | |
"version": "1.0.1", | |
"description": "A npm test package", | |
"main": "app.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"repository": { | |
"type": "git", | |
"url": "git+https://github.com/goffreder/test-npm.git" | |
}, | |
"author": "goffreder", | |
"license": "ISC", | |
"bugs": { | |
"url": "https://github.com/goffreder/test-npm/issues" | |
}, | |
"homepage": "https://github.com/goffreder/test-npm#readme" | |
} | |
Si installa con npm install @wyscout/test-npm | |
Si importa con import from '@wyscout/test-npm' | |
npm check non supporta package con scope | |
Con npm config list ottengo la mia configurazione corrente: | |
; cli configs | |
user-agent = "npm/2.14.4 node/v4.1.2 linux x64" | |
; userconfig /home/emanuele/.npmrc | |
@wyscout:registry = "http://arrested-developer.com:8080/" | |
; node bin location = /home/emanuele/.nvm/versions/node/v4.1.2/bin/node | |
; cwd = /home/emanuele/Dropbox/Resources/htdocs/React/fantagazzetta | |
; HOME = /home/emanuele | |
; 'npm config ls -l' to show all defaults. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment