-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #473 from rails/npm
Add official support to npm
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
## Releasing jquery-ujs | ||
|
||
### Releasing to npm | ||
|
||
Make sure npm's configuration `sign-git-tag` is set to true. | ||
|
||
``` | ||
npm config set sign-git-tag true | ||
``` | ||
|
||
Release it to npm using the [npm version command](https://docs.npmjs.com/cli/version). Like: | ||
|
||
``` | ||
npm version patch | ||
``` | ||
|
||
This will: | ||
|
||
* Bump a patch version | ||
* Commit the change | ||
* Generate the tag | ||
* Push the commit and the tag to the repository | ||
* Publish the package in https://www.npmjs.com |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "jquery-ujs", | ||
"version": "1.2.1", | ||
"description": "Unobtrusive scripting adapter for jQuery", | ||
"main": "src/rails.js", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"scripts": { | ||
"test": "echo \"See the wiki: https://github.com/rails/jquery-ujs/wiki/Running-Tests-and-Contributing\" && exit 1", | ||
"postversion": "git push && git push --tags && npm publish" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/rails/jquery-ujs.git" | ||
}, | ||
"author": [ | ||
"Stephen St. Martin", | ||
"Steve Schwartz" | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/rails/jquery-ujs/issues" | ||
}, | ||
"homepage": "https://github.com/rails/jquery-ujs#readme", | ||
"dependencies": { | ||
"jquery": ">=1.8.0" | ||
} | ||
} |