Skip to content
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

Merged
merged 3 commits into from
Mar 16, 2017
Merged

Add Npm with node-check-updates #286

merged 3 commits into from
Mar 16, 2017

Conversation

yhirano55
Copy link
Contributor

Sorry, requested again.

sh(*['git', 'commit', '-m', "Npm update #{@readable_time}"]) do
# ignore exitstatus
end
sh(*['git', 'push', @authorized_compare_url, "tachikoma/update-#{@readable_time}"])
Copy link
Collaborator

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.

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
Copy link
Collaborator

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.

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')
Copy link
Collaborator

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.

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))
Copy link
Collaborator

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.

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))
Copy link
Collaborator

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.

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])
Copy link
Collaborator

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.

def npm
Dir.chdir("#{Tachikoma.repos_path}/#{@build_for}") do
sh(*['git', 'config', 'user.name', @commiter_name])
sh(*['git', 'config', 'user.email', @commiter_email])
Copy link
Collaborator

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.

@@ -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])
Copy link
Collaborator

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.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 67.742% when pulling 87b5758 on yhirano55:add_npm_with_ncu into 497879a on sanemat:master.

4 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 67.742% when pulling 87b5758 on yhirano55:add_npm_with_ncu into 497879a on sanemat:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 67.742% when pulling 87b5758 on yhirano55:add_npm_with_ncu into 497879a on sanemat:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 67.742% when pulling 87b5758 on yhirano55:add_npm_with_ncu into 497879a on sanemat:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 67.742% when pulling 87b5758 on yhirano55:add_npm_with_ncu into 497879a on sanemat:master.

@yhirano55
Copy link
Contributor Author

@sanemat Please review, and tell me so if there is a problem in this PR.

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))
Copy link
Owner

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.

Copy link
Contributor Author

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)
Copy link
Owner

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.

Copy link
Contributor Author

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?

Copy link
Owner

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 😭

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 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}"])
Copy link
Collaborator

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)
Copy link
Contributor Author

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.

@coveralls
Copy link

coveralls commented Mar 16, 2017

Coverage Status

Coverage decreased (-0.1%) to 67.742% when pulling b439a0b on yhirano55:add_npm_with_ncu into 497879a on sanemat:master.

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))
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

@yhirano55
Copy link
Contributor Author

@sanemat I have pushed modified codes and squished them. Please review again.

Copy link
Owner

@sanemat sanemat left a comment

Choose a reason for hiding this comment

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

LGTM

@sanemat sanemat merged commit 83bfeb9 into sanemat:master Mar 16, 2017
@sanemat
Copy link
Owner

sanemat commented Mar 16, 2017

💯
Thanks for your contribution!

@yhirano55 yhirano55 deleted the add_npm_with_ncu branch March 17, 2017 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants