Coder Social home page Coder Social logo

node-migrator-bot

build status

I am a bot. I will help you migrate your codebase to node v0.8!

Did you know that the "sys" module throws an error if your program tries to require it in node v0.8? To help keep your code running, I automatically replaced var sys = require(\'sys\') with var util = require(\'util\').

If you'd like to know more about these changes in node.js, take a look at https://github.com/joyent/node/commit/1582cf#L1R51 and https://github.com/joyent/node/blob/1582cfebd6719b2d2373547994b3dca5c8c569c0/ChangeLog#L51 .

As for myself, I was written by your friendly neighborhood node ninjas at Nodejitsu, and you can find them at #nodejitsu on irc.freenode.net or with http://webchat.jit.su .

Enjoy!,
--node-migrator-bot

Example

Edit config/config.json, enter in a github username, password, and your redis db info.

node app.js repo https://github.com/blakmatrix/node-migrator-bot

example output

Commands

node app.js use

The bot will tell you how to use it.

node app.js file <filename>

The bot will look at the given file and make any changes if necessary.

node app.js repo <folder or link to repo>

The bot will look at the given input and if it is giving a folder location on a local drive it will recursively make any necessary changes.

If given a repository link https://github.com/user/repo it will atempt to fork the repo into its own github account as specified by the username and password settings. After forking it will download the repository, will create a new branch in it, check it out, make its changes. If there are changes, it commits them, then push commits back to github. It will then submit a pull request to the original author of the repository. Then preform local file clean up. On a successful pull request or if its determined there is nothing to commit the repository will be added to the redis database hash as defined in the config.

node app.js user <username>

The bot will look at the given user, and for every repo they own will act as if node app.js repo <repo-link> was called.

node app.js npm

The bot will generate a list of all the packages in npm that have github links, and then for each repository link will act as if node app.js repo <repo-link> was called.

node app.js db

Will list all the items in the redis db added by the bot.

Install

Not in NPM yet...

git clone [email protected]:blakmatrix/node-migrator-bot.git`
cd node-migrator-bot

Test

npm test

license

MIT/X11

node-migrator-bot's Projects

2csv icon 2csv

A Node.js-based application for converting data into CSV

ace icon ace

Ajax.org Cloud9 Editor

actionhero icon actionhero

actionHero is a node.js API framework for both tcp sockets and http clients

alfred icon alfred

Node is your mansion, Alfred is your butler. Node.js key-value store

alleup icon alleup

Flexible way to resize and upload images to Amazon S3 or file system storages for Node.js

alloy icon alloy

Alloy is an MVC framework for Titanium which is developed by Appcelerator.

alohax icon alohax

A basic Front End editor using Aloha Editor for MODX Revolution

amazode icon amazode

Library for interacting with some of Amazon's web services

ami-generator icon ami-generator

Generate Amazon AMI images easily. This repository contains a collection of scripts that initialize your image to your specification.

amino icon amino

Clustered application toolkit for Node.js.

amulet icon amulet

An as-soon-as-possible streaming asynchronous Mustache template engine for Node.js

ansi.js icon ansi.js

Advanced ANSI formatting tool for Node.js

anvil.js icon anvil.js

A simple javascript module build utility

ape icon ape

API document generation for github made simple

apiary icon apiary

Controlling software for multiple multi-user 'haibu' setups spread over multiple (virtual) systems.

appjs icon appjs

SDK on top of nodejs to build desktop apps using HTML5/CSS/JS

assembly icon assembly

build tool to assemble client side javascript projects

asset-manager icon asset-manager

Wrapper around connect-asset to let you manage multiple asset folders and precompile assets in their production form.

async icon async

Async utilities for node and the browser

async-it icon async-it

Generic asynchronous iterators for node.js.

asyncevents icon asyncevents

Extension to EventEmitter to facilitate asynchronous firing of events, and asynchronous handling of those events.

att icon att

ATT is a terminal tool for front-end developers to make web project deployment easier and faster

autodafe icon autodafe

node.js web framework with rich features such as mvc, mysql orm, authentication and role-based access control, testing, logging etc.

autolint icon autolint

Autolint watches your files for jslint-errors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.