Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nodert/nodert-npm-publish
Helper scripts used for publishing the nodert modules to NPM under different users/scopes
https://github.com/nodert/nodert-npm-publish
Last synced: 5 days ago
JSON representation
Helper scripts used for publishing the nodert modules to NPM under different users/scopes
- Host: GitHub
- URL: https://github.com/nodert/nodert-npm-publish
- Owner: NodeRT
- License: apache-2.0
- Created: 2016-08-21T15:29:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-22T17:13:05.000Z (over 8 years ago)
- Last Synced: 2024-11-19T19:02:24.979Z (2 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nodert-npm-publish
Helper scripts used for publishing the NodeRT modules to NPM under different users/scopes.
### Usage
```
node nodert_publish.js --username --password --email --modulesdirOptions:
-m, --modulesdir The path of the directory in which the modules are located
-u, --username The NPM username that will be used for authentication
-p, --password The NPM username that will be used for authentication
-e, --email The NPM email that will be used for authentication
-h, --help Show helpExamples:
node nodert_publish.js --username Publishes the modules in c:\modules
someuser --password somepass --email to the NPM using the given
[email protected] --modulesdir c:\modules credentials
```###How to generate & publish NodeRT modules to the NPM
First create the modules by running NodeRT cmd line with the appropriate parameters.
For example, the following command will generate all of the modules in the windows.winmd file to the directory c:\nodert_modules with the scope "nodert-scope" and the version "0.2.0":
```
NodeRTCmd.exe --winmd "%ProgramFiles(x86)%\Windows Kits\10\UnionMetadata\Windows.winmd" --npmscope "nodert-scope" --npmversion 0.2.0 --nobuild --outdir c:\nodert_modules
```After generating the modules, publish the modules using nodert_publish.js script in this repo.
For example, the following command will publish the modules in the directory c:\nodert_modules to the NPM using the given credentials:
```
node nodert_publish.js -m c:\nodert_modules -u nodert-scope -p thepassword -e [email protected]
```