-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Npm with node-check-updates #286
Conversation
lib/tachikoma/application.rb
Outdated
sh(*['git', 'commit', '-m', "Npm update #{@readable_time}"]) do | ||
# ignore exitstatus | ||
end | ||
sh(*['git', 'push', @authorized_compare_url, "tachikoma/update-#{@readable_time}"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass array contents as separate arguments.
lib/tachikoma/application.rb
Outdated
sh(*%w(npm install -g npm-check-updates)) | ||
sh(*%w(ncu -u)) | ||
sh(*['git', 'add', 'package.json']) if File.exist?('package.json') | ||
sh(*['git', 'commit', '-m', "Npm update #{@readable_time}"]) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass array contents as separate arguments.
lib/tachikoma/application.rb
Outdated
sh(*['git', 'checkout', '-b', "tachikoma/update-#{@readable_time}", @base_remote_branch]) | ||
sh(*%w(npm install -g npm-check-updates)) | ||
sh(*%w(ncu -u)) | ||
sh(*['git', 'add', 'package.json']) if File.exist?('package.json') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass array contents as separate arguments.
lib/tachikoma/application.rb
Outdated
sh(*['git', 'config', 'user.email', @commiter_email]) | ||
sh(*['git', 'checkout', '-b', "tachikoma/update-#{@readable_time}", @base_remote_branch]) | ||
sh(*%w(npm install -g npm-check-updates)) | ||
sh(*%w(ncu -u)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass array contents as separate arguments.
lib/tachikoma/application.rb
Outdated
sh(*['git', 'config', 'user.name', @commiter_name]) | ||
sh(*['git', 'config', 'user.email', @commiter_email]) | ||
sh(*['git', 'checkout', '-b', "tachikoma/update-#{@readable_time}", @base_remote_branch]) | ||
sh(*%w(npm install -g npm-check-updates)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass array contents as separate arguments.
lib/tachikoma/application.rb
Outdated
Dir.chdir("#{Tachikoma.repos_path}/#{@build_for}") do | ||
sh(*['git', 'config', 'user.name', @commiter_name]) | ||
sh(*['git', 'config', 'user.email', @commiter_email]) | ||
sh(*['git', 'checkout', '-b', "tachikoma/update-#{@readable_time}", @base_remote_branch]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass array contents as separate arguments.
lib/tachikoma/application.rb
Outdated
def npm | ||
Dir.chdir("#{Tachikoma.repos_path}/#{@build_for}") do | ||
sh(*['git', 'config', 'user.name', @commiter_name]) | ||
sh(*['git', 'config', 'user.email', @commiter_email]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass array contents as separate arguments.
lib/tachikoma/application.rb
Outdated
@@ -221,6 +221,21 @@ def cocoapods | |||
end | |||
end | |||
|
|||
def npm | |||
Dir.chdir("#{Tachikoma.repos_path}/#{@build_for}") do | |||
sh(*['git', 'config', 'user.name', @commiter_name]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass array contents as separate arguments.
4 similar comments
@sanemat Please review, and tell me so if there is a problem in this PR. |
lib/tachikoma/application.rb
Outdated
sh(*['git', 'config', 'user.name', @commiter_name]) | ||
sh(*['git', 'config', 'user.email', @commiter_email]) | ||
sh(*['git', 'checkout', '-b', "tachikoma/update-#{@readable_time}", @base_remote_branch]) | ||
sh(*%w(npm install -g npm-check-updates)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
install
is out of tachikoma gem
range.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your review and maintain a good tool tachikoma.
I see. I'll remove it.
README.md
Outdated
@@ -22,6 +22,7 @@ You can use these strategies: | |||
- Bundler (Ruby) | |||
- Carton (Perl) | |||
- David (Node.js) | |||
- Npm (Node.js) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node-check-updates
is node-check-updates
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, does it mean to change to node-check-updates
from Npm
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I prefer npm-check-updates (Node.js)
.
node-
is my typo 😭
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see.., I'll fix it. thanks.
sh(*['git', 'commit', '-m', "Ncu update #{@readable_time}"]) do | ||
# ignore exitstatus | ||
end | ||
sh(*['git', 'push', @authorized_compare_url, "tachikoma/update-#{@readable_time}"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass array contents as separate arguments.
@@ -22,6 +22,7 @@ You can use these strategies: | |||
- Bundler (Ruby) | |||
- Carton (Perl) | |||
- David (Node.js) | |||
- npm-check-updates (Node.js) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to npm-check-updates
from Npm
.
sh(*['git', 'config', 'user.name', @commiter_name]) | ||
sh(*['git', 'config', 'user.email', @commiter_email]) | ||
sh(*['git', 'checkout', '-b', "tachikoma/update-#{@readable_time}", @base_remote_branch]) | ||
sh(*%w(ncu -u)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed execution for installation.
@@ -221,6 +221,20 @@ def cocoapods | |||
end | |||
end | |||
|
|||
def ncu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed a method name to ncu
from npm
.
@sanemat I have pushed modified codes and squished them. Please review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💯 |
Sorry, requested again.