mirror of
https://github.com/expo/npm-git-lock.git
synced 2026-11-15 09:08:07 -10:00
23 lines
662 B
JavaScript
23 lines
662 B
JavaScript
#!/usr/bin/env node
|
|
"use strict";
|
|
|
|
// enabling automatic ES6-ES5 compilation for the whole application
|
|
require("babel/register");
|
|
|
|
var argv = require('optimist')
|
|
.usage('Usage: $0 --repo [[email protected]:your/dedicated/node_modules/git/repository.git] --verbose')
|
|
.describe('verbose', '[-v] Print progress log messages')
|
|
.describe('repo', 'git url to repository with node_modules content')
|
|
.alias('v', 'verbose')
|
|
.demand(['repo']).argv;
|
|
|
|
var checkoutNodeModules = require('./src/checkout-node-modules');
|
|
|
|
checkoutNodeModules(process.cwd(), argv.repo, argv.verbose)
|
|
.then(function () {
|
|
process.exit(0);
|
|
})
|
|
.catch(function (error) {
|
|
process.exit(1);
|
|
});
|