As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
!SESSION 2011-08-09 15:43:52.365 ----------------------------------------------- | |
eclipse.buildId=I20110613-1736 | |
java.version=1.6.0_26 | |
java.vendor=Sun Microsystems Inc. | |
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_GB | |
Framework arguments: -version 3 -port 37696 -testLoaderClass org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader -loaderpluginname org.eclipse.jdt.junit.runtime -testNameFile /tmp/testNames1503546741025358379.txt -application org.eclipse.pde.junit.runtime.uitestapplication -product org.eclipse.platform.ide -testpluginname me.gladwell.eclipse.m2e.android.test | |
Command-line arguments: -os linux -ws gtk -arch x86 -consoleLog -version 3 -port 37696 -testLoaderClass org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader -loaderpluginname org.eclipse.jdt.junit.runtime -testNameFile /tmp/testNames1503546741025358379.txt -application org.eclipse.pde.junit.runtime.uitestapplication -product org.eclipse.platform.ide -data /home/ricardo/Projects/../junit-workspace -dev file:/home |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
//Allowing CORS (Cross-Origin Resource Sharing) requests from | |
// grunt server, put this into Gruntfile.js | |
grunt.initConfig({ | |
connect: { | |
livereload: { | |
options: { | |
port: 9000, | |
hostname: 'localhost', | |
middleware: function (connect) { | |
return [ |
class Thing | |
def method_missing(method, *args, &block) | |
puts method.to_s.gsub /_/, " " | |
end | |
end | |
Thing.new.send <<-T_REX | |
_____________.-=-==--==--. | |
_______..-=="__,'o`)______`. | |
_____,'_________`"'_________\\ |