From b23341a9aaaf08d5d530c8e562eb4737829d0d0a Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Fri, 11 Sep 2015 19:40:07 -0700 Subject: [PATCH 1/7] 1.1.0 --- README.md | 20 ++++++++++++++++++++ package.json | 27 +++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 package.json diff --git a/README.md b/README.md index 29ea432d..e1856ae2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,23 @@ +Notes on the npm supporting fork +======================================= +We forked from the official version at https://github.com/rails/jquery-ujs to support npm. + +* Reasons: https://github.com/rails/jquery-ujs/issues/423 and https://github.com/rails/jquery-ujs/pull/380 +* We'll do our best to keep the npm version consistent with the version used by jquery-ujs. +* There should be 2 files that differ: Addition of a `package.json` and changes ONLY to the top of the README.md +* For advice on how to use the npm version with Rails and Webpack, see + https://github.com/shakacode/react-webpack-rails-tutorial/pull/88 and + http://forum.railsonmaui.com/t/considerations-for-jquery-with-rails-and-webpack/344. +* Publishing to npm: + +```bash + git pull https://github.com/rails/jquery-ujs.git master + vim package.json # updating version number + git commit -am 'the version number' + git push --follow-tags origin master + npm publish +``` + Unobtrusive scripting adapter for jQuery ======================================== diff --git a/package.json b/package.json new file mode 100644 index 00000000..dba34dc1 --- /dev/null +++ b/package.json @@ -0,0 +1,27 @@ +{ + "name": "jquery-ujs", + "version": "1.1.0", + "description": "Ruby on Rails unobtrusive scripting adapter for jQuery, for npm", + "main": "src/rails.js", + "scripts": { + "test": "echo \"See the wiki: https://github.com/rails/jquery-ujs/wiki/Running-Tests-and-Contributing\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://github.com/shakacode/jquery-ujs.git" + }, + "author": "Stephen St. Martin", + "contributors": [ + "Stephen St. Martin", + "Steve Schwartz", + "Justin Gordon" + ], + "license": "MIT", + "bugs": { + "url": "https://github.com/shakacode/jquery-ujs/issues" + }, + "homepage": "https://github.com/shakacode/jquery-ujs", + "dependencies": { + "jquery": ">=1.8.0" + } +} From 2d0b76b7800ab636ffc264db3cd4f50985071bed Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Fri, 11 Sep 2015 19:44:09 -0700 Subject: [PATCH 2/7] Updated README.md for better links --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e1856ae2..5a4dea71 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,13 @@ Notes on the npm supporting fork ======================================= We forked from the official version at https://github.com/rails/jquery-ujs to support npm. -* Reasons: https://github.com/rails/jquery-ujs/issues/423 and https://github.com/rails/jquery-ujs/pull/380 +* Reasons: [rails/jquery-ujs/issues/423](https://github.com/rails/jquery-ujs/issues/423) and + [rails/jquery-ujs/pull/380](https://github.com/rails/jquery-ujs/pull/380) * We'll do our best to keep the npm version consistent with the version used by jquery-ujs. * There should be 2 files that differ: Addition of a `package.json` and changes ONLY to the top of the README.md * For advice on how to use the npm version with Rails and Webpack, see - https://github.com/shakacode/react-webpack-rails-tutorial/pull/88 and - http://forum.railsonmaui.com/t/considerations-for-jquery-with-rails-and-webpack/344. + [shakacode/react-webpack-rails-tutorial/pull/88](https://github.com/shakacode/react-webpack-rails-tutorial/pull/88) and + [forum article on considerations for jquery with Rails and webpack](http://forum.railsonmaui.com/t/considerations-for-jquery-with-rails-and-webpack/344). * Publishing to npm: ```bash From 1f5cee5986f863450acba7c0a0bcf872d100cf88 Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Fri, 11 Sep 2015 20:21:34 -0700 Subject: [PATCH 3/7] bump version for README.md change --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dba34dc1..f54933a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jquery-ujs", - "version": "1.1.0", + "version": "1.1.0-1", "description": "Ruby on Rails unobtrusive scripting adapter for jQuery, for npm", "main": "src/rails.js", "scripts": { From de5638f2c4e109e5acf16c47838472670179148e Mon Sep 17 00:00:00 2001 From: Callum Macrae Date: Thu, 28 Jan 2016 09:45:02 +0000 Subject: [PATCH 4/7] updated to 1.2.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f54933a1..dcae8773 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jquery-ujs", - "version": "1.1.0-1", + "version": "1.2.0", "description": "Ruby on Rails unobtrusive scripting adapter for jQuery, for npm", "main": "src/rails.js", "scripts": { From 4f5dbfb4bc08cf9b3302059c9745bf3229ad0b5d Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Sat, 26 Mar 2016 16:42:08 -1000 Subject: [PATCH 5/7] Release 1.2.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dcae8773..bd4292c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jquery-ujs", - "version": "1.2.0", + "version": "1.2.1", "description": "Ruby on Rails unobtrusive scripting adapter for jQuery, for npm", "main": "src/rails.js", "scripts": { From 64f813a780a3fac654e2fb9f2bdfd176785b2828 Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Sat, 26 Mar 2016 16:48:01 -1000 Subject: [PATCH 6/7] Update README.md --- README.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/README.md b/README.md index 2747f6a1..cef1d5ff 100644 --- a/README.md +++ b/README.md @@ -9,15 +9,6 @@ We forked from the official version at https://github.com/rails/jquery-ujs to su * For advice on how to use the npm version with Rails and Webpack, see [shakacode/react-webpack-rails-tutorial/pull/88](https://github.com/shakacode/react-webpack-rails-tutorial/pull/88) and [forum article on considerations for jquery with Rails and webpack](http://forum.railsonmaui.com/t/considerations-for-jquery-with-rails-and-webpack/344). -* Publishing to npm: - -```bash - git pull https://github.com/rails/jquery-ujs.git master - vim package.json # updating version number - git commit -am 'the version number' - git push --follow-tags origin master - npm publish -``` Unobtrusive scripting adapter for jQuery ======================================== From 21f5eee4d2a01ef65f7bd25c20c0a437e18b5d31 Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Sat, 26 Mar 2016 16:49:29 -1000 Subject: [PATCH 7/7] Create PUBLISHING-TO-NPM.md --- PUBLISHING-TO-NPM.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 PUBLISHING-TO-NPM.md diff --git a/PUBLISHING-TO-NPM.md b/PUBLISHING-TO-NPM.md new file mode 100644 index 00000000..84a50ce9 --- /dev/null +++ b/PUBLISHING-TO-NPM.md @@ -0,0 +1,20 @@ +# Publishing to npm: + +## Manual Way +```bash + git pull https://github.com/rails/jquery-ujs.git master + vim package.json # updating version number + git commit -am 'the version number' + git push --follow-tags origin master + npm publish +``` + +## release-it +Alternately, I use [release-it](https://github.com/webpro/release-it). Assuming the version is 1.2.1 to publish: + +``` +git pull https://github.com/rails/jquery-ujs.git master +release-it 1.2.1 +``` + +Take the defaults, except answer y to the final question to publish.