set up initial structure

This commit is contained in:
Philipp Kunz 2016-03-02 01:34:48 +01:00
parent 12dbac57df
commit 1144fc9b27
18 changed files with 74 additions and 2 deletions

6
default_packages.json Normal file
View File

@ -0,0 +1,6 @@
{
"mandatory":[
"typings",
"npm-check-updates"
]
}

View File

@ -1,5 +1,5 @@
{ {
"name": "node-g", "name": "npmg",
"version": "1.0.0", "version": "1.0.0",
"description": "setup your environment with the most important tools and update them easily.", "description": "setup your environment with the most important tools and update them easily.",
"main": "dist/index.js", "main": "dist/index.js",
@ -21,5 +21,13 @@
"bugs": { "bugs": {
"url": "https://github.com/GitZoneTools/node-g/issues" "url": "https://github.com/GitZoneTools/node-g/issues"
}, },
"homepage": "https://github.com/GitZoneTools/node-g#readme" "homepage": "https://github.com/GitZoneTools/node-g#readme",
"devDependencies": {
"npmts": "^3.3.2"
},
"dependencies": {
"q": "^1.4.1",
"smartcli": "0.0.11",
"smartfile": "0.0.11"
}
} }

2
ts/index.js Normal file
View File

@ -0,0 +1,2 @@
var npmg = {};
//# sourceMappingURL=index.js.map

1
ts/index.js.map Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAEA,IAAI,IAAI,GAAG,EAEV,CAAC"}

5
ts/index.ts Normal file
View File

@ -0,0 +1,5 @@
/// <reference path="./typings/main.d.ts" />
import plugins = require("./npmg.plugins");
let npmg = {
};

1
ts/npmg.cli.js Normal file
View File

@ -0,0 +1 @@
//# sourceMappingURL=npmg.cli.js.map

1
ts/npmg.cli.js.map Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"npmg.cli.js","sourceRoot":"","sources":["npmg.cli.ts"],"names":[],"mappings":""}

0
ts/npmg.cli.ts Normal file
View File

14
ts/npmg.install.js Normal file
View File

@ -0,0 +1,14 @@
/// <reference path="./typings/main.d.ts" />
var plugins = require("./npmg.plugins");
var installExec = function (packageNames) {
for (var packageName in packageNames) {
plugins.shelljs.exec("npm install -g " + packageName);
}
;
};
var defaultPackages = plugins.smartfile.readFileToObject("../default_packages.json");
var install = function () {
installExec(defaultPackages);
};
module.exports = install;
//# sourceMappingURL=npmg.install.js.map

1
ts/npmg.install.js.map Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"npmg.install.js","sourceRoot":"","sources":["npmg.install.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,IAAO,OAAO,WAAW,gBAAgB,CAAC,CAAC;AAC3C,IAAI,WAAW,GAAG,UAAS,YAAqB;IAC5C,GAAG,CAAC,CAAC,GAAG,CAAC,WAAW,IAAI,YAAY,CAAC,CAAA,CAAC;QAClC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,GAAG,WAAW,CAAC,CAAC;IAC1D,CAAC;IAAA,CAAC;AACN,CAAC,CAAC;AAEF,IAAI,eAAe,GAAG,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,CAAC;AAErF,IAAI,OAAO,GAAG;IACV,WAAW,CAAC,eAAe,CAAC,CAAC;AACjC,CAAC,CAAC;AAEF,iBAAS,OAAO,CAAC"}

15
ts/npmg.install.ts Normal file
View File

@ -0,0 +1,15 @@
/// <reference path="./typings/main.d.ts" />
import plugins = require("./npmg.plugins");
let installExec = function(packageNames:string[]){
for (let packageName in packageNames){
plugins.shelljs.exec("npm install -g " + packageName);
};
};
let defaultPackages = plugins.smartfile.readFileToObject("../default_packages.json");
let install = function(){
installExec(defaultPackages);
};
export = install;

1
ts/npmg.paths.js Normal file
View File

@ -0,0 +1 @@
//# sourceMappingURL=npmg.paths.js.map

1
ts/npmg.paths.js.map Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"npmg.paths.js","sourceRoot":"","sources":["npmg.paths.ts"],"names":[],"mappings":""}

2
ts/npmg.paths.ts Normal file
View File

@ -0,0 +1,2 @@
/// <reference path="./typings/main.d.ts" />
import paths = require("./npmg.paths");

4
ts/npmg.plugins.js Normal file
View File

@ -0,0 +1,4 @@
/// <reference path="./typings/main.d.ts" />
exports.shelljs = require("shelljs");
exports.smartfile = require("smartfile");
//# sourceMappingURL=npmg.plugins.js.map

1
ts/npmg.plugins.js.map Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"npmg.plugins.js","sourceRoot":"","sources":["npmg.plugins.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC9B,eAAO,WAAW,SAAS,CAAC,CAAC;AAChC,iBAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC"}

3
ts/npmg.plugins.ts Normal file
View File

@ -0,0 +1,3 @@
/// <reference path="./typings/main.d.ts" />
export import shelljs = require("shelljs");
export let smartfile = require("smartfile");

6
ts/typings.json Normal file
View File

@ -0,0 +1,6 @@
{
"ambientDependencies": {
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#48c1e3c1d6baefa4f1a126f188c27c4fefd36bff",
"shelljs": "github:DefinitelyTyped/DefinitelyTyped/shelljs/shelljs.d.ts#ce14ae27a020194da3d35aa3468ca1e9e5296316"
}
}