Skip to content

Fetch packages and archives from remote resources with cache support

License

Notifications You must be signed in to change notification settings

yeoman/yeoman-remote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yeoman-remote NPM version Build Status Dependency Status Coverage percentage

Fetch packages and archives from remote resources with cache support

This package is a simplified export of the yeoman-generator remote, fetch and extract functions. Currently, the preferred way is to use npm to fetch github resources at install time. We're providing this package to ease transition to newer versions of yeoman-generator.

Installation

$ npm install --save yeoman-remote

Usage

var remote = require('yeoman-remote');
var path = require('path');

module.exports = yeoman.Base.extend({
  writing: function () {
    var done = this.async();

    remote('yeoman', 'generator', function (err, cachePath) {
      this.fs.copy(
        path.join(cachePath, 'lib/index.js'),
        this.destinationPath('lib/index.js')
      );
      done();
    }.bind(this));
  }
});

remote.fetch and remote.extract methods are also available.

License

MIT © The Yeoman Team

About

Fetch packages and archives from remote resources with cache support

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •