Skip to content

Module for git cloning repos to a cache folder on disk and managing that cache

Notifications You must be signed in to change notification settings

FamousArchives/famous-git-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

famous-git-cache

Build Status Dependency Status devDependency Status

This module is used to fetch the a git repo, checkout a specific version and then return a plain old JavaScript key-value object hash where the key is the relative path (e.g. core/Engine) and the value is the raw content of the that module as a string.

Usage

var fetchFamous = require('famous-git-cache').fetchFamous;

fetchFamous('0.2.1', function(err, famous) {
  if (err) { return console.log(err); }
  /* do something with famous */
});
var clone = require('famous-git-cache').clone;
clone({
  repo: '[email protected]:Famous/core.git',
  ref: 'master'
}, function(err, corePath) {
  if (err) { return console.log(err); }
  /* do something with corePath */
});

License


This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

About

Module for git cloning repos to a cache folder on disk and managing that cache

Resources

Stars

Watchers

Forks

Packages

No packages published