initial
This commit is contained in:
46
node_modules/npmts-g/.gitlab-ci.yml
generated
vendored
Normal file
46
node_modules/npmts-g/.gitlab-ci.yml
generated
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
image: hosttoday/ht-docker-node:npmts
|
||||
|
||||
stages:
|
||||
- test
|
||||
- release
|
||||
- trigger
|
||||
|
||||
testLEGACY:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test legacy
|
||||
tags:
|
||||
- docker
|
||||
allow_failure: true
|
||||
|
||||
testLTS:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test lts
|
||||
tags:
|
||||
- docker
|
||||
|
||||
testSTABLE:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test stable
|
||||
tags:
|
||||
- docker
|
||||
|
||||
release:
|
||||
stage: release
|
||||
script:
|
||||
- npmci publish
|
||||
only:
|
||||
- tags
|
||||
tags:
|
||||
- docker
|
||||
|
||||
trigger:
|
||||
stage: trigger
|
||||
script:
|
||||
- npmci trigger
|
||||
only:
|
||||
- tags
|
||||
tags:
|
||||
- docker
|
3
node_modules/npmts-g/.npmignore
generated
vendored
Normal file
3
node_modules/npmts-g/.npmignore
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
coverage/
|
||||
docs/
|
||||
node_modules/
|
21
node_modules/npmts-g/LICENSE
generated
vendored
Normal file
21
node_modules/npmts-g/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Push.Rocks
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
6
node_modules/npmts-g/README.md
generated
vendored
Normal file
6
node_modules/npmts-g/README.md
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
# npmts-g
|
||||
npmts-g speeds up builds with npmts in CI
|
||||
|
||||
This is achieved by checking for a globally installed npmts version first
|
||||
and only installing npmts in local mode when there is no npmts or when the global version
|
||||
does not satisfy the required one.
|
1
node_modules/npmts-g/dist/index.d.ts
generated
vendored
Normal file
1
node_modules/npmts-g/dist/index.d.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
import "typings-global";
|
4
node_modules/npmts-g/dist/index.js
generated
vendored
Normal file
4
node_modules/npmts-g/dist/index.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
require("typings-global");
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFPLGdCQUFnQixDQUFDLENBQUEiLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgXCJ0eXBpbmdzLWdsb2JhbFwiO1xyXG5pbXBvcnQgKiBhcyBwbHVnaW5zIGZyb20gXCIuL25wbXRzLWcucGx1Z2luc1wiO1xyXG4iXX0=
|
1
node_modules/npmts-g/dist/install.d.ts
generated
vendored
Normal file
1
node_modules/npmts-g/dist/install.d.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export declare let installNpmtsGlobally: () => void;
|
25
node_modules/npmts-g/dist/install.js
generated
vendored
Normal file
25
node_modules/npmts-g/dist/install.js
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
var plugins = require("./npmts-g.plugins");
|
||||
exports.installNpmtsGlobally = function () {
|
||||
var packJson = require("../package.json");
|
||||
var requiredNpmtsVersion = "^" + packJson.version;
|
||||
if (!plugins.shelljs.which('npmts')) {
|
||||
console.log("NPMTS wasn't found globally, so it is being installed now");
|
||||
plugins.shelljs.cd("../..");
|
||||
plugins.shelljs.exec("npm install npmts@latest");
|
||||
}
|
||||
else {
|
||||
var globalNpmtsVersion = plugins.shelljs.exec("npmts -v").stdout;
|
||||
if (plugins.semver.satisfies(globalNpmtsVersion, requiredNpmtsVersion)) {
|
||||
console.log("OK! global npmts version satisfies needed version");
|
||||
}
|
||||
else {
|
||||
console.log("GlobalNPMTS does not satisfy required version, so we are installing it locally.");
|
||||
plugins.shelljs.cd("../..");
|
||||
plugins.shelljs.exec("npm install npmts@latest");
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.installNpmtsGlobally();
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluc3RhbGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQVksT0FBTyxXQUFNLG1CQUFtQixDQUFDLENBQUE7QUFFbEMsNEJBQW9CLEdBQUc7SUFDaEMsSUFBSSxRQUFRLEdBQUcsT0FBTyxDQUFDLGlCQUFpQixDQUFDLENBQUM7SUFDMUMsSUFBSSxvQkFBb0IsR0FBRyxHQUFHLEdBQUcsUUFBUSxDQUFDLE9BQU8sQ0FBQztJQUNsRCxFQUFFLENBQUMsQ0FBQyxDQUFDLE9BQU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nN0YWxsIG5wbXRzQGxhdGVzdFwiKTtcclxuICAgIH1cclxuICB9XHJcbn1cclxuXHJcbmluc3RhbGxOcG10c0dsb2JhbGx5KCk7XHJcblxyXG5cclxuIl19
|
4
node_modules/npmts-g/dist/npmts-g.plugins.d.ts
generated
vendored
Normal file
4
node_modules/npmts-g/dist/npmts-g.plugins.d.ts
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import "typings-global";
|
||||
export declare let semver: any;
|
||||
export declare let shelljs: any;
|
||||
export import path = require("path");
|
7
node_modules/npmts-g/dist/npmts-g.plugins.js
generated
vendored
Normal file
7
node_modules/npmts-g/dist/npmts-g.plugins.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
require("typings-global");
|
||||
exports.semver = require("semver");
|
||||
exports.shelljs = require("shelljs");
|
||||
exports.path = require("path");
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbXRzLWcucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQ2IsY0FBTSxHQUFHLE9BQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUMzQixlQUFPLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0FBQzFCLFlBQUksV0FBVyxNQUFNLENBQUMsQ0FBQyIsImZpbGUiOiJucG10cy1nLnBsdWdpbnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgXCJ0eXBpbmdzLWdsb2JhbFwiO1xyXG5leHBvcnQgbGV0IHNlbXZlciA9IHJlcXVpcmUoXCJzZW12ZXJcIik7XHJcbmV4cG9ydCBsZXQgc2hlbGxqcyA9IHJlcXVpcmUoXCJzaGVsbGpzXCIpO1xyXG5leHBvcnQgaW1wb3J0IHBhdGggPSByZXF1aXJlKFwicGF0aFwiKTsgIl19
|
4
node_modules/npmts-g/npmts.json
generated
vendored
Normal file
4
node_modules/npmts-g/npmts.json
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"mode":"default",
|
||||
"coverageTreshold":60
|
||||
}
|
91
node_modules/npmts-g/package.json
generated
vendored
Normal file
91
node_modules/npmts-g/package.json
generated
vendored
Normal file
@ -0,0 +1,91 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"name": "npmts-g",
|
||||
"raw": "npmts-g",
|
||||
"rawSpec": "",
|
||||
"scope": null,
|
||||
"spec": "latest",
|
||||
"type": "tag"
|
||||
},
|
||||
"/home/philkunz/gitlab/pushrocks/smartdrive"
|
||||
]
|
||||
],
|
||||
"_from": "npmts-g@latest",
|
||||
"_id": "npmts-g@5.2.6",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/npmts-g",
|
||||
"_nodeVersion": "4.4.5",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-16-east.internal.npmjs.com",
|
||||
"tmp": "tmp/npmts-g-5.2.6.tgz_1465577439776_0.8476307899691164"
|
||||
},
|
||||
"_npmUser": {
|
||||
"email": "npm@lossless.digital",
|
||||
"name": "lossless"
|
||||
},
|
||||
"_npmVersion": "3.9.5",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "npmts-g",
|
||||
"raw": "npmts-g",
|
||||
"rawSpec": "",
|
||||
"scope": null,
|
||||
"spec": "latest",
|
||||
"type": "tag"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"#DEV:/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/npmts-g/-/npmts-g-5.2.6.tgz",
|
||||
"_shasum": "3e101c6809185915eaf115496fa95aaa50c3cde6",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "npmts-g",
|
||||
"_where": "/home/philkunz/gitlab/pushrocks/smartdrive",
|
||||
"author": {
|
||||
"name": "Lossless GmbH"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://gitlab.com/pushrocks/npmts-g/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"semver": "^5.1.0",
|
||||
"shelljs": "^0.7.0",
|
||||
"typings-global": "^1.0.3"
|
||||
},
|
||||
"description": "use globally installed npmts if it fits the version range",
|
||||
"devDependencies": {
|
||||
"npmts": "^5.3.0",
|
||||
"typings-test": "^1.0.1"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "3e101c6809185915eaf115496fa95aaa50c3cde6",
|
||||
"tarball": "https://registry.npmjs.org/npmts-g/-/npmts-g-5.2.6.tgz"
|
||||
},
|
||||
"gitHead": "e6d133f8b1308df34f699b0135976de6ae2e9f9c",
|
||||
"homepage": "https://gitlab.com/pushrocks/npmts-g#README",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"email": "npm@lossless.digital",
|
||||
"name": "lossless"
|
||||
}
|
||||
],
|
||||
"name": "npmts-g",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@gitlab.com/pushrocks/npmts-g.git"
|
||||
},
|
||||
"scripts": {
|
||||
"install": "node ./dist/install.js",
|
||||
"test": "(npmts)"
|
||||
},
|
||||
"typings": "dist/index.d.ts",
|
||||
"version": "5.2.6"
|
||||
}
|
1
node_modules/npmts-g/test/test.d.ts
generated
vendored
Normal file
1
node_modules/npmts-g/test/test.d.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
import "typings-test";
|
11
node_modules/npmts-g/test/test.js
generated
vendored
Normal file
11
node_modules/npmts-g/test/test.js
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
require("typings-test");
|
||||
var npmtsG = require("../dist/install");
|
||||
describe("npmtsCheck", function () {
|
||||
it("", function () {
|
||||
this.timeout(10000);
|
||||
npmtsG.installNpmtsGlobally();
|
||||
});
|
||||
});
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sY0FFUCxDQUFDLENBRm9CO0FBRXJCLElBQVksTUFBTSxXQUFNLGlCQUFpQixDQUFDLENBQUE7QUFFMUMsUUFBUSxDQUFDLFlBQVksRUFBQztJQUNsQixFQUFFLENBQUMsRUFBRSxFQUFDO1FBQ0YsSUFBSSxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUNwQixNQUFNLENBQUMsb0JBQW9CLEVBQUUsQ0FBQztJQUNsQyxDQUFDLENBQUMsQ0FBQTtBQUNOLENBQUMsQ0FBQyxDQUFBIiwiZmlsZSI6InRlc3QuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgXCJ0eXBpbmdzLXRlc3RcIlxyXG5cclxuaW1wb3J0ICogYXMgbnBtdHNHIGZyb20gXCIuLi9kaXN0L2luc3RhbGxcIjtcclxuXHJcbmRlc2NyaWJlKFwibnBtdHNDaGVja1wiLGZ1bmN0aW9uKCl7XHJcbiAgICBpdChcIlwiLGZ1bmN0aW9uKCl7XHJcbiAgICAgICAgdGhpcy50aW1lb3V0KDEwMDAwKTtcclxuICAgICAgICBucG10c0cuaW5zdGFsbE5wbXRzR2xvYmFsbHkoKTtcclxuICAgIH0pXHJcbn0pIl19
|
10
node_modules/npmts-g/test/test.ts
generated
vendored
Normal file
10
node_modules/npmts-g/test/test.ts
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
import "typings-test"
|
||||
|
||||
import * as npmtsG from "../dist/install";
|
||||
|
||||
describe("npmtsCheck",function(){
|
||||
it("",function(){
|
||||
this.timeout(10000);
|
||||
npmtsG.installNpmtsGlobally();
|
||||
})
|
||||
})
|
2
node_modules/npmts-g/ts/index.ts
generated
vendored
Normal file
2
node_modules/npmts-g/ts/index.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import "typings-global";
|
||||
import * as plugins from "./npmts-g.plugins";
|
24
node_modules/npmts-g/ts/install.ts
generated
vendored
Normal file
24
node_modules/npmts-g/ts/install.ts
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
import * as plugins from "./npmts-g.plugins";
|
||||
|
||||
export let installNpmtsGlobally = function(){
|
||||
let packJson = require("../package.json");
|
||||
let requiredNpmtsVersion = "^" + packJson.version;
|
||||
if (!plugins.shelljs.which('npmts')) {
|
||||
console.log("NPMTS wasn't found globally, so it is being installed now");
|
||||
plugins.shelljs.cd("../..");
|
||||
plugins.shelljs.exec("npm install npmts@latest");
|
||||
} else {
|
||||
let globalNpmtsVersion = plugins.shelljs.exec("npmts -v").stdout;
|
||||
if(plugins.semver.satisfies(globalNpmtsVersion,requiredNpmtsVersion)){
|
||||
console.log("OK! global npmts version satisfies needed version");
|
||||
} else {
|
||||
console.log("GlobalNPMTS does not satisfy required version, so we are installing it locally.");
|
||||
plugins.shelljs.cd("../..");
|
||||
plugins.shelljs.exec("npm install npmts@latest");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
installNpmtsGlobally();
|
||||
|
||||
|
4
node_modules/npmts-g/ts/npmts-g.plugins.ts
generated
vendored
Normal file
4
node_modules/npmts-g/ts/npmts-g.plugins.ts
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import "typings-global";
|
||||
export let semver = require("semver");
|
||||
export let shelljs = require("shelljs");
|
||||
export import path = require("path");
|
Reference in New Issue
Block a user