Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

nodereport project packaging updates #13

Merged
merged 7 commits into from
Nov 4, 2016
Merged

nodereport project packaging updates #13

merged 7 commits into from
Nov 4, 2016

Conversation

rnchamberlain
Copy link
Contributor

Improvements and corrections to nodereport README, additional metadata in package.json and new MAINTAINER file to document NPM release procedure. See commits for details.

1. Add platform and node version support statement
2. Update usage - now installable from npmjs
3. Separate example install command line from example code
4. Add REPL example
5. Highlight setEvents() API
6. Demo applications are now in github, not npm
1. nodereport module is copied to top level directory as part
of build, so 'main' property should reference that
2. Direct homepage property URL to start of README text
3. Add contributors
4. Add bugs property, referencing nodereport github URL
@@ -0,0 +1,15 @@
# Instructions for maintainers of the nodereport project

## Releasing to www.npmjs.com
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you replace the references to www.npmjs.com with just npm.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure? (some) People are already confused aboutthe difference between npm the cli, and npmjs.org the package repository... but above should be npmjs.org, IMO, not the company URL.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought most people referred to just "publish on npm." I've never really seen a website referenced. I guess technically it's being published to the npm registry.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough, "publish to npm" is clear enough. Anybody with the rights to publish nodereport should know what they are publishing to.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just took the URL from my browser, npmjs.org re-directs immediately to npmjs.com.

OK, I will change to 'publish to npm', people know what that means.

@@ -0,0 +1,15 @@
# Instructions for maintainers of the nodereport project

## Publishing to the NPM registry
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, according to this post, I think npm should always be lowercase (see item 13).

exception.js - NodeReport triggered by unhandled exception
fatalerror.js - NodeReport triggered by fatal error on Javascript heap out of memory
loop.js - looping application, NodeReport triggered using kill -USR2 <pid>
1. api.js - NodeReport triggered by Javascript API call
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Javascript -> JavaScript here and elsewhere.

@richardlau
Copy link
Member

Maybe update AUTHORS to match the contributors listed in package.json?

@sam-github
Copy link
Contributor

Personally, I'd put a generic email address in package.json, and delete AUTHORS, its painful to maintain 2 copies of what is already available in git metadata. If not, at least script the generation of AUTHORs: https://github.com/sam-github/git-extras/blob/master/bin/git-authors

@rnchamberlain
Copy link
Contributor Author

Looks like AUTHORS is a github thing, whereas the package.json property came originally from 'npm init'. Other nodejs projects vary, eg https://github.com/nodejs/llnode has both, and they are not consistent. OK, lets follow the https://github.com/nodejs/nan example, and just have the contributors array in package.json, deleting AUTHORS.

Contributors are listed in package.json. This change saves having
them listed in two places, and is consistent with other nodejs
projects such as nan and node-gyp.
@rnchamberlain
Copy link
Contributor Author

ping @richardlau @sam-github @cjihrig are you OK with this PR now? thanks

@sam-github
Copy link
Contributor

LGTM

@rnchamberlain rnchamberlain merged commit 2955852 into nodejs:master Nov 4, 2016
@rnchamberlain rnchamberlain deleted the packaging-update branch November 4, 2016 16:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants