Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a2a7544797 | |||
| 83cd4e9a13 | |||
| 21b46dd939 |
10
dist/index.js
vendored
10
dist/index.js
vendored
File diff suppressed because one or more lines are too long
5
dist/npmci.clean.d.ts
vendored
Normal file
5
dist/npmci.clean.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import "typings-global";
|
||||||
|
/**
|
||||||
|
* cleans npmci config files
|
||||||
|
*/
|
||||||
|
export declare let clean: () => any;
|
||||||
15
dist/npmci.clean.js
vendored
Normal file
15
dist/npmci.clean.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
"use strict";
|
||||||
|
require("typings-global");
|
||||||
|
var plugins = require("./npmci.plugins");
|
||||||
|
var paths = require("./npmci.paths");
|
||||||
|
/**
|
||||||
|
* cleans npmci config files
|
||||||
|
*/
|
||||||
|
exports.clean = function () {
|
||||||
|
var done = plugins.q.defer();
|
||||||
|
plugins.smartfile.fs.removeSync(paths.NpmciPackageConfig);
|
||||||
|
done.resolve();
|
||||||
|
return done.promise;
|
||||||
|
};
|
||||||
|
|
||||||
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLmNsZWFuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFPLGdCQUFnQixDQUFDLENBQUE7QUFDeEIsSUFBWSxPQUFPLFdBQU0saUJBQWlCLENBQUMsQ0FBQTtBQUMzQyxJQUFZLEtBQUssV0FBTSxlQUt2QixDQUFDLENBTHFDO0FBRXRDOztHQUVHO0FBQ1EsYUFBSyxHQUFHO0lBQ2YsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUM3QixPQUFPLENBQUMsU0FBUyxDQUFDLEVBQUUsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDLGtCQUFrQixDQUFDLENBQUM7SUFDMUQsSUFBSSxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ2YsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7QUFDeEIsQ0FBQyxDQUFDIiwiZmlsZSI6Im5wbWNpLmNsZWFuLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFwidHlwaW5ncy1nbG9iYWxcIjtcbmltcG9ydCAqIGFzIHBsdWdpbnMgZnJvbSBcIi4vbnBtY2kucGx1Z2luc1wiO1xuaW1wb3J0ICogYXMgcGF0aHMgZnJvbSBcIi4vbnBtY2kucGF0aHNcIlxuXG4vKipcbiAqIGNsZWFucyBucG1jaSBjb25maWcgZmlsZXNcbiAqL1xuZXhwb3J0IGxldCBjbGVhbiA9ICgpID0+IHtcbiAgICBsZXQgZG9uZSA9IHBsdWdpbnMucS5kZWZlcigpO1xuICAgIHBsdWdpbnMuc21hcnRmaWxlLmZzLnJlbW92ZVN5bmMocGF0aHMuTnBtY2lQYWNrYWdlQ29uZmlnKTtcbiAgICBkb25lLnJlc29sdmUoKTtcbiAgICByZXR1cm4gZG9uZS5wcm9taXNlO1xufTsiXX0=
|
||||||
3
dist/npmci.tag.d.ts
vendored
3
dist/npmci.tag.d.ts
vendored
@@ -1,3 +0,0 @@
|
|||||||
import "typings-global";
|
|
||||||
export declare let tag: (commandOptionArg: any) => void;
|
|
||||||
export declare let retag: () => void;
|
|
||||||
8
dist/npmci.tag.js
vendored
8
dist/npmci.tag.js
vendored
@@ -1,8 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
require("typings-global");
|
|
||||||
exports.tag = function (commandOptionArg) {
|
|
||||||
};
|
|
||||||
exports.retag = function () {
|
|
||||||
};
|
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLnRhZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFBO0FBTWIsV0FBRyxHQUFHLFVBQVMsZ0JBQWdCO0FBRTFDLENBQUMsQ0FBQTtBQUVVLGFBQUssR0FBRztBQUVuQixDQUFDLENBQUMiLCJmaWxlIjoibnBtY2kudGFnLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFwidHlwaW5ncy1nbG9iYWxcIjtcbmltcG9ydCAqIGFzIHBsdWdpbnMgZnJvbSBcIi4vbnBtY2kucGx1Z2luc1wiO1xuaW1wb3J0IHtwcmVwYXJlfSBmcm9tIFwiLi9ucG1jaS5wcmVwYXJlXCI7XG5pbXBvcnQge2Jhc2h9IGZyb20gXCIuL25wbWNpLmJhc2hcIjtcbmltcG9ydCAqIGFzIGVudiBmcm9tIFwiLi9ucG1jaS5lbnZcIjtcblxuZXhwb3J0IGxldCB0YWcgPSBmdW5jdGlvbihjb21tYW5kT3B0aW9uQXJnKXtcbiAgICBcbn1cblxuZXhwb3J0IGxldCByZXRhZyA9IGZ1bmN0aW9uKCl7XG4gICAgXG59O1xuIl19
|
|
||||||
1
dist/npmci.test.docker.d.ts
vendored
1
dist/npmci.test.docker.d.ts
vendored
@@ -1 +0,0 @@
|
|||||||
export declare let testDocker: () => void;
|
|
||||||
5
dist/npmci.test.docker.js
vendored
5
dist/npmci.test.docker.js
vendored
@@ -1,5 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
exports.testDocker = function () {
|
|
||||||
};
|
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLnRlc3QuZG9ja2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFLVyxrQkFBVSxHQUFHO0FBRXhCLENBQUMsQ0FBQyIsImZpbGUiOiJucG1jaS50ZXN0LmRvY2tlci5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIHBsdWdpbnMgZnJvbSBcIi4vbnBtY2kucGx1Z2luc1wiXG5pbXBvcnQgKiBhcyBOcG1jaUVudiBmcm9tIFwiLi9ucG1jaS5lbnZcIjtcbmltcG9ydCB7YmFzaEJhcmV9IGZyb20gXCIuL25wbWNpLmJhc2hcIjtcbmltcG9ydCAqIGFzIE5wbWNpQnVpbGREb2NrZXIgZnJvbSBcIi4vbnBtY2kuYnVpbGQuZG9ja2VyXCI7XG5cbmV4cG9ydCBsZXQgdGVzdERvY2tlciA9ICgpID0+IHtcblxufTsiXX0=
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "npmci",
|
"name": "npmci",
|
||||||
"version": "2.2.3",
|
"version": "2.3.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
10
ts/index.ts
10
ts/index.ts
@@ -6,11 +6,11 @@ let npmciInfo = new plugins.projectinfo.ProjectinfoNpm(paths.NpmciPackageRoot);
|
|||||||
plugins.beautylog.log("npmci version: " + npmciInfo.version);
|
plugins.beautylog.log("npmci version: " + npmciInfo.version);
|
||||||
|
|
||||||
import {build} from "./npmci.build"
|
import {build} from "./npmci.build"
|
||||||
|
import {clean} from "./npmci.clean";
|
||||||
import {command} from "./npmci.command";
|
import {command} from "./npmci.command";
|
||||||
import {install} from "./npmci.install";
|
import {install} from "./npmci.install";
|
||||||
import {publish} from "./npmci.publish";
|
import {publish} from "./npmci.publish";
|
||||||
import {prepare} from "./npmci.prepare";
|
import {prepare} from "./npmci.prepare";
|
||||||
import {tag, retag} from "./npmci.tag";
|
|
||||||
import {test} from "./npmci.test";
|
import {test} from "./npmci.test";
|
||||||
import {trigger} from "./npmci.trigger";
|
import {trigger} from "./npmci.trigger";
|
||||||
import * as NpmciEnv from "./npmci.env";
|
import * as NpmciEnv from "./npmci.env";
|
||||||
@@ -31,6 +31,14 @@ smartcli.addCommand({
|
|||||||
.then(NpmciEnv.configStore);
|
.then(NpmciEnv.configStore);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// clean
|
||||||
|
smartcli.addCommand({
|
||||||
|
commandName:"clean"
|
||||||
|
}).then((argv) => {
|
||||||
|
clean()
|
||||||
|
.then(NpmciEnv.configStore);
|
||||||
|
});
|
||||||
|
|
||||||
// command
|
// command
|
||||||
smartcli.addCommand({
|
smartcli.addCommand({
|
||||||
commandName:"command"
|
commandName:"command"
|
||||||
|
|||||||
13
ts/npmci.clean.ts
Normal file
13
ts/npmci.clean.ts
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import "typings-global";
|
||||||
|
import * as plugins from "./npmci.plugins";
|
||||||
|
import * as paths from "./npmci.paths"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* cleans npmci config files
|
||||||
|
*/
|
||||||
|
export let clean = () => {
|
||||||
|
let done = plugins.q.defer();
|
||||||
|
plugins.smartfile.fs.removeSync(paths.NpmciPackageConfig);
|
||||||
|
done.resolve();
|
||||||
|
return done.promise;
|
||||||
|
};
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
import "typings-global";
|
|
||||||
import * as plugins from "./npmci.plugins";
|
|
||||||
import {prepare} from "./npmci.prepare";
|
|
||||||
import {bash} from "./npmci.bash";
|
|
||||||
import * as env from "./npmci.env";
|
|
||||||
|
|
||||||
export let tag = function(commandOptionArg){
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
export let retag = function(){
|
|
||||||
|
|
||||||
};
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
import * as plugins from "./npmci.plugins"
|
|
||||||
import * as NpmciEnv from "./npmci.env";
|
|
||||||
import {bashBare} from "./npmci.bash";
|
|
||||||
import * as NpmciBuildDocker from "./npmci.build.docker";
|
|
||||||
|
|
||||||
export let testDocker = () => {
|
|
||||||
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user