Git Product home page Git Product logo

cupboard's Introduction

Repository management (GIT/NPM) for your projects

Alt screenshot

Why?

Managing a kajillion repositories is a pain in the ass.

Features

  • All projects accessible via the cbd cli.
  • easily identify which projects have been updated.
  • Customizable actions: publish, bump, etc.
  • Push to both npm, and git with one command.
  • Ability to call a command against multiple projects. e.g:
    • cbd ignore --all node_modules adds node_modules to all .gitignore files.
    • cbd open my-app+another-app opens the given applications in finder.

To-Do

  • ability to add custom templates e.g: cbd add-template /path/to/template.conf
  • ability to list available templates
  • help menu
  • honor .ignore files
  • use directory as default name for program
  • ability to set default template
  • ability to open project file via cbd open project-name vs dir. e.g: opening textmate project
  • create projects via cupboard? e.g: xcodeproj, tmproj
  • ability to specify global commands.
  • ability to point to template

Installation

npm install cupboard

Usage

For each project you want to use in cupboard, simply call this command in your project directory:

cbd init               

That command will run you through the basic setup. You can also used pre-defined templates to speed things up. For instance:

cbd init git+npm

will add basic GIT, and NPM functions to your target project such as publish, and ignore. For example:

cbd ignore my-app my/file/to/ignore

will append my/file/to/ignore to .gitignore. Here's another example:

cbd publish my-app "my commit message"

will call the publish command specified in the template git+npm, which happens to commit, and push my-app to both GIT, and NPM.

If you want more granular control over your cupboard configurations, just edit the .cupboard in your root project directory. A config file looks like this:

    
[project]
name=project-name


[commands]
publish=my publish commands separated by commas
XXXX=whatever command I want...

Commands

  • cbd init - Adds an project to cupboard.
  • cbd list - Lit all the projects. Also contains details of what projects have been updated.
  • cbd updates - List projects with updates.
  • cbd publish [PROJ_NAME] - Publishes given application.
  • cbd open [PROJ_NAME] - Open a project in finder.
  • cbd dir [PROJ_NAME] - Returns the directory of the target app.
  • cbd [COMMAND] [PROJ_NAME] - Custom command given for target application.

Default Template

  • git+npm
  • git
  • npm

Useful Commands

the following chunk will change the current working directory to the application specified:

cd `cbd dir my-project-name`

cupboard's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.