added cli.js

This commit is contained in:
Philipp Kunz 2016-03-14 05:19:01 +01:00
parent a67a946fa6
commit a716455ef4
8 changed files with 18 additions and 7 deletions

2
dist/cli.js vendored Normal file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env node
var index = require("./index.js");

3
dist/index.js vendored
View File

@ -1,7 +1,8 @@
"use strict";
var install = require("./npmg.install"); var install = require("./npmg.install");
var npmg = { var npmg = {
install: install install: install
}; };
module.exports = npmg; module.exports = npmg;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLElBQU8sT0FBTyxXQUFXLGdCQUFnQixDQUFDLENBQUM7QUFDM0MsSUFBSSxJQUFJLEdBQUc7SUFDUCxPQUFPLEVBQUUsT0FBTztDQUNuQixDQUFDO0FBQ0YsaUJBQVMsSUFBSSxDQUFDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cIi4vdHlwaW5ncy9tYWluLmQudHNcIiAvPlxuaW1wb3J0IHBsdWdpbnMgPSByZXF1aXJlKFwiLi9ucG1nLnBsdWdpbnNcIik7XG5pbXBvcnQgaW5zdGFsbCA9IHJlcXVpcmUoXCIuL25wbWcuaW5zdGFsbFwiKTtcbmxldCBucG1nID0ge1xuICAgIGluc3RhbGw6IGluc3RhbGxcbn07XG5leHBvcnQgPSBucG1nOyJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ== //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFQSxJQUFPLE9BQU8sV0FBVyxnQkFBZ0IsQ0FBQyxDQUFDO0FBQzNDLElBQUksSUFBSSxHQUFHO0lBQ1AsT0FBTyxFQUFFLE9BQU87Q0FDbkIsQ0FBQztBQUNGLGlCQUFTLElBQUksQ0FBQyIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vLyA8cmVmZXJlbmNlIHBhdGg9XCIuL3R5cGluZ3MvbWFpbi5kLnRzXCIgLz5cbmltcG9ydCBwbHVnaW5zID0gcmVxdWlyZShcIi4vbnBtZy5wbHVnaW5zXCIpO1xuaW1wb3J0IGluc3RhbGwgPSByZXF1aXJlKFwiLi9ucG1nLmluc3RhbGxcIik7XG5sZXQgbnBtZyA9IHtcbiAgICBpbnN0YWxsOiBpbnN0YWxsXG59O1xuZXhwb3J0ID0gbnBtZzsiXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=

View File

@ -1,3 +1,4 @@
"use strict";
/// <reference path="./typings/main.d.ts" /> /// <reference path="./typings/main.d.ts" />
var plugins = require("./npmg.plugins"); var plugins = require("./npmg.plugins");
var paths = require("./npmg.paths"); var paths = require("./npmg.paths");
@ -22,4 +23,4 @@ var install = function (packageSetArg) {
}; };
module.exports = install; module.exports = install;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWcuaW5zdGFsbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw0Q0FBNEM7QUFDNUMsSUFBTyxPQUFPLFdBQVcsZ0JBQWdCLENBQUMsQ0FBQztBQUMzQyxJQUFPLEtBQUssV0FBVyxjQUFjLENBQUMsQ0FBQztBQUN2QyxJQUFJLFdBQVcsR0FBRyxVQUFTLFlBQXFCO0lBQzVDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxXQUFXLElBQUksWUFBWSxDQUFDLENBQUEsQ0FBQztRQUNsQyxJQUFJLFdBQVcsR0FBRyxpQkFBaUIsR0FBRyxZQUFZLENBQUMsV0FBVyxDQUFDLENBQUM7UUFDaEUsT0FBTyxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsaUJBQWlCLEdBQ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c3BlY2lmaWVkXCIpO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgfVxufTtcblxuZXhwb3J0ID0gaW5zdGFsbDsiXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=

3
dist/npmg.paths.js vendored
View File

@ -1,3 +1,4 @@
"use strict";
/// <reference path="./typings/main.d.ts" /> /// <reference path="./typings/main.d.ts" />
var plugins = require("./npmg.plugins"); var plugins = require("./npmg.plugins");
var paths = { var paths = {
@ -5,4 +6,4 @@ var paths = {
}; };
module.exports = paths; module.exports = paths;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWcucGF0aHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsNENBQTRDO0FBQzVDLElBQU8sT0FBTyxXQUFXLGdCQUFnQixDQUFDLENBQUM7QUFDM0MsSUFBSSxLQUFLLEdBQUc7SUFDUixXQUFXLEVBQUUsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsV0FBVyxFQUFDLEtBQUssQ0FBQztDQUNwRCxDQUFBO0FBQ0QsaUJBQVMsS0FBSyxDQUFDIiwiZmlsZSI6Im5wbWcucGF0aHMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLy8gPHJlZmVyZW5jZSBwYXRoPVwiLi90eXBpbmdzL21haW4uZC50c1wiIC8+XG5pbXBvcnQgcGx1Z2lucyA9IHJlcXVpcmUoXCIuL25wbWcucGx1Z2luc1wiKTtcbmxldCBwYXRocyA9IHtcbiAgICBwYWNrYWdlQmFzZTogcGx1Z2lucy5wYXRoLmpvaW4oXCJfX2Rpcm5hbWVcIixcIi4uL1wiKVxufVxuZXhwb3J0ID0gcGF0aHM7Il0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWcucGF0aHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDRDQUE0QztBQUM1QyxJQUFPLE9BQU8sV0FBVyxnQkFBZ0IsQ0FBQyxDQUFDO0FBQzNDLElBQUksS0FBSyxHQUFHO0lBQ1IsV0FBVyxFQUFFLE9BQU8sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLFdBQVcsRUFBQyxLQUFLLENBQUM7Q0FDcEQsQ0FBQTtBQUNELGlCQUFTLEtBQUssQ0FBQyIsImZpbGUiOiJucG1nLnBhdGhzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cIi4vdHlwaW5ncy9tYWluLmQudHNcIiAvPlxuaW1wb3J0IHBsdWdpbnMgPSByZXF1aXJlKFwiLi9ucG1nLnBsdWdpbnNcIik7XG5sZXQgcGF0aHMgPSB7XG4gICAgcGFja2FnZUJhc2U6IHBsdWdpbnMucGF0aC5qb2luKFwiX19kaXJuYW1lXCIsXCIuLi9cIilcbn1cbmV4cG9ydCA9IHBhdGhzOyJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==

View File

@ -1,7 +1,8 @@
"use strict";
/// <reference path="./typings/main.d.ts" /> /// <reference path="./typings/main.d.ts" />
exports.beautylog = require("beautylog"); exports.beautylog = require("beautylog");
exports.path = require("path"); exports.path = require("path");
exports.shelljs = require("shelljs"); exports.shelljs = require("shelljs");
exports.smartfile = require("smartfile"); exports.smartfile = require("smartfile");
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWcucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw0Q0FBNEM7QUFDakMsaUJBQVMsR0FBRyxPQUFPLENBQUMsV0FBVyxDQUFDLENBQUM7QUFDakMsWUFBSSxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQztBQUNwQixlQUFPLFdBQVcsU0FBUyxDQUFDLENBQUM7QUFDaEMsaUJB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xdWlyZShcInNoZWxsanNcIik7XG5leHBvcnQgbGV0IHNtYXJ0ZmlsZSA9IHJlcXVpcmUoXCJzbWFydGZpbGVcIik7XG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=

View File

@ -1,4 +1,5 @@
{ {
"mode": "default", "mode": "default",
"coveralls": true "coveralls": true,
"cli":true
} }

View File

@ -6,6 +6,9 @@
"scripts": { "scripts": {
"test": "(npmts)" "test": "(npmts)"
}, },
"bin": {
"npmg": "dist/cli.js"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/GitZoneTools/npmg.git" "url": "git+https://github.com/GitZoneTools/npmg.git"
@ -23,7 +26,7 @@
}, },
"homepage": "https://github.com/GitZoneTools/npmg#readme", "homepage": "https://github.com/GitZoneTools/npmg#readme",
"devDependencies": { "devDependencies": {
"npmts": "^3.3.2", "npmts": "^3.5.0",
"smartenv": "^1.2.0" "smartenv": "^1.2.0"
}, },
"dependencies": { "dependencies": {
@ -31,6 +34,6 @@
"q": "^1.4.1", "q": "^1.4.1",
"shelljs": "^0.6.0", "shelljs": "^0.6.0",
"smartcli": "0.0.11", "smartcli": "0.0.11",
"smartfile": "0.0.11" "smartfile": "1.0.1"
} }
} }

View File

@ -1,5 +1,6 @@
{ {
"ambientDependencies": { "ambientDependencies": {
"mocha": "registry:dt/mocha#2.2.5+20151023103246",
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#48c1e3c1d6baefa4f1a126f188c27c4fefd36bff", "node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#48c1e3c1d6baefa4f1a126f188c27c4fefd36bff",
"shelljs": "github:DefinitelyTyped/DefinitelyTyped/shelljs/shelljs.d.ts#ce14ae27a020194da3d35aa3468ca1e9e5296316" "shelljs": "github:DefinitelyTyped/DefinitelyTyped/shelljs/shelljs.d.ts#ce14ae27a020194da3d35aa3468ca1e9e5296316"
} }