Skip to content

Commit 26c9c77

Browse files
committed
Add instructions about npm
1 parent baccefd commit 26c9c77

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ Require both `jquery` and `jquery_ujs` into your application.js manifest.
4242
//= require jquery_ujs
4343
```
4444

45+
Installation using npm.
46+
------------
47+
48+
Run `npm install --save jquery-ujs` to install the jquery-ujs package.
49+
4550
Installation using Bower
4651
------------
4752

RELEASE.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Releasing jquery-ujs
2+
3+
### Releasing to npm
4+
5+
Make sure npm's configuration `sign-git-tag` is set to true.
6+
7+
```
8+
npm config set sign-git-tag true
9+
```
10+
11+
Release it to npm using the [npm version command](https://docs.npmjs.com/cli/version). Like:
12+
13+
```
14+
npm version patch
15+
```
16+
17+
This will:
18+
19+
* Bump a patch version
20+
* Commit the change
21+
* Generate the tag
22+
* Push the commit and the tag to the repository
23+
* Publish the package in https://www.npmjs.com

0 commit comments

Comments
 (0)