Skip to content

Instantly share code, notes, and snippets.

Avatar
🐥
Junior Developer

Kevin Amiranoff kamiranoff

🐥
Junior Developer
View GitHub Profile
View Nemean Tale Studios
${AnsiColor.BLUE}########################################################################################################################
${AnsiColor.BLUE} ##################################################################################################################
${AnsiColor.BLUE} ############################################################################################################
${AnsiColor.BLUE} ######################################################################################################
${AnsiColor.RED} _ _ _______ _ _____ _ _ _
${AnsiColor.RED} | \ | | |__ __| | | / ____| | | (_)
${AnsiColor.RED} | \| | ___ _ __ ___ ___ __ _ _ __ | | __ _| | ___ | (___ | |_ _ _ __| |_ ___ ___
${AnsiColor.RED} | . ` |/ _ \ '_ ` _ \ / _ \/ _` | '_ \ | |/ _` | |/ _ \ \___ \| __| | | |/ _` | |/ _ \/ __|
@kamiranoff
kamiranoff / readme.md
Created Dec 11, 2016 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM
View readme.md

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser
View gist:0ed2eeb9b46a66e9a8dc9763e2c16c71
def readVersion() {
def versionFile = new File(project.rootDir, 'version.properties')
def version = new Properties()
def stream
try {
stream = new FileInputStream(versionFile)
version.load(stream)
}catch (FileNotFoundException ignore) {
}finally {
You can’t perform that action at this time.