소스 검색

private package registry

Alexander Rose 5 년 전
부모
커밋
0a60521242
2개의 변경된 파일10개의 추가작업 그리고 4개의 파일을 삭제
  1. 7 4
      README.md
  2. 3 0
      package.json

+ 7 - 4
README.md

@@ -29,11 +29,14 @@ From the root of the project:
 
 and navigate to `build/dist/structure-viewer/`
 
+## Publish
 
-## Release
+The publish will send the package to our own registry at http://nexus3.rcsb.org/repository/npm-rcsb/ (not to NPM as this is currently a private project).
 
-### Development
+## Prerelease
     npm version prerelease # asumes the current version ends with '-dev.X'
+    npm publish --tag next
 
-### Stable
-    npm version 0.X.0 # provide valid semver string
+## Release
+    npm version 0.X.0 # provide valid semver string
+    npm publish

+ 3 - 0
package.json

@@ -26,6 +26,9 @@
         "postversion": "git push && git push --tags",
         "prepublishOnly": "npm run test && npm run build"
     },
+    "publishConfig":{
+        "registry": "http://nexus3.rcsb.org/repository/npm-rcsb/"
+    },
     "main": "build/src/index.js",
     "files": [
         "build/dist/"