codefresh: init at 0.87.3
Add codefresh cli[1] tool to interact with codefresh[2] service. [1] https://github.com/codefresh-io/cli [2] https://codefresh.io/
This commit is contained in:
parent
dcdcfdd577
commit
bacabfe504
118
pkgs/by-name/co/codefresh/package.json
Normal file
118
pkgs/by-name/co/codefresh/package.json
Normal file
@ -0,0 +1,118 @@
|
||||
{
|
||||
"name": "codefresh",
|
||||
"version": "0.87.3",
|
||||
"description": "Codefresh command line utility",
|
||||
"main": "index.js",
|
||||
"preferGlobal": true,
|
||||
"scripts": {
|
||||
"generate-completion": "node ./lib/interface/cli/completion/generate",
|
||||
"test": "jest .spec.js --coverage",
|
||||
"e2e": "bash e2e/e2e.spec.sh",
|
||||
"eslint": "eslint --fix lib/logic/**",
|
||||
"pkg": "pkg . -t node16-alpine-x64,node16-macos-x64,node16-linux-x64,node16-win-x64,node16-linux-arm64 --out-path ./dist",
|
||||
"serve-docs": "yarn build-local-docs && cd temp && hugo server -D",
|
||||
"serve-docs-beta": "ALLOW_BETA_COMMANDS=true yarn build-local-docs && cd temp && hugo server -D",
|
||||
"build-local-docs": "node ./docs/index.js",
|
||||
"build-public-docs": "node ./docs/index.js && cd temp && hugo",
|
||||
"postinstall": "node run-check-version.js"
|
||||
},
|
||||
"bin": {
|
||||
"codefresh": "lib/interface/cli/codefresh"
|
||||
},
|
||||
"repository": "git+https://github.com/codefresh-io/cli.git",
|
||||
"keywords": [
|
||||
"command line"
|
||||
],
|
||||
"pkg": {
|
||||
"scripts": [
|
||||
"lib/**/*.js",
|
||||
"node_modules/codefresh-sdk/lib/**/*.js",
|
||||
"node_modules/kubernetes-client/**/*.js"
|
||||
],
|
||||
"assets": "lib/**/*.hbs"
|
||||
},
|
||||
"resolutions": {
|
||||
"websocket-extensions": "^0.1.4",
|
||||
"lodash": "^4.17.21",
|
||||
"json-schema": "^0.4.0",
|
||||
"ajv": "^6.12.6",
|
||||
"normalize-url": "^4.5.1",
|
||||
"ansi-regex": "^5.0.1",
|
||||
"y18n": "^4.0.1",
|
||||
"shelljs": "^0.8.5",
|
||||
"codefresh-sdk/swagger-client/qs": "6.9.7",
|
||||
"kubernetes-client/qs": "6.9.7",
|
||||
"**/request/qs": "6.5.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@codefresh-io/docker-reference": "^0.0.5",
|
||||
"adm-zip": "^0.5.5",
|
||||
"ajv": "^6.12.6",
|
||||
"bluebird": "^3.5.1",
|
||||
"cf-errors": "^0.1.16",
|
||||
"chalk": "^4.1.0",
|
||||
"cli-progress": "3.10.0",
|
||||
"codefresh-sdk": "^1.12.0",
|
||||
"colors": "1.4.0",
|
||||
"columnify": "^1.6.0",
|
||||
"compare-versions": "^3.4.0",
|
||||
"copy-dir": "^0.3.0",
|
||||
"debug": "^3.1.0",
|
||||
"diff": "^3.5.0",
|
||||
"dockerode": "^2.5.7",
|
||||
"draftlog": "^1.0.12",
|
||||
"figlet": "^1.4.0",
|
||||
"filesize": "^3.5.11",
|
||||
"firebase": "git+https://github.com/codefresh-io/firebase.git#80b2ed883ff281cd67b53bd0f6a0bbd6f330fed5",
|
||||
"flat": "^4.1.1",
|
||||
"inquirer": "^7.1.0",
|
||||
"js-yaml": "^3.10.0",
|
||||
"kefir": "^3.8.1",
|
||||
"kubernetes-client": "^9.0.0",
|
||||
"lodash": "^4.17.21",
|
||||
"mkdirp": "^0.5.1",
|
||||
"moment": "^2.29.4",
|
||||
"mongodb": "^4.17.2",
|
||||
"node-forge": "^1.3.0",
|
||||
"ora": "^5.4.1",
|
||||
"prettyjson": "^1.2.5",
|
||||
"promise-retry": "^2.0.1",
|
||||
"recursive-readdir": "^2.2.3",
|
||||
"request": "^2.88.0",
|
||||
"request-promise": "^4.2.2",
|
||||
"requestretry": "^7.0.2",
|
||||
"rimraf": "^2.6.2",
|
||||
"semver": "^7.5.4",
|
||||
"tar-stream": "^2.2.0",
|
||||
"uuid": "^3.1.0",
|
||||
"yaml": "^1.10.0",
|
||||
"yargs": "^15.4.1",
|
||||
"yargs-parser": "^13.0.0",
|
||||
"zip": "^1.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node-forge": "^1.0.1",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-airbnb-base": "^15.0.0",
|
||||
"eslint-plugin-import": "^2.25.4",
|
||||
"eslint-plugin-jest": "^27.6.3",
|
||||
"hugo-cli": "^0.5.4",
|
||||
"jest": "^29.7.0",
|
||||
"pkg": "5.5.2"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/codefresh-io/cli/issues"
|
||||
},
|
||||
"homepage": "https://github.com/codefresh-io/cli#readme",
|
||||
"author": "Codefresh",
|
||||
"license": "ISC",
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"jest": {
|
||||
"testEnvironment": "node",
|
||||
"setupFiles": [
|
||||
"./test-setup.js"
|
||||
]
|
||||
}
|
||||
}
|
36
pkgs/by-name/co/codefresh/package.nix
Normal file
36
pkgs/by-name/co/codefresh/package.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ lib, mkYarnPackage, fetchFromGitHub, fetchYarnDeps, testers, codefresh }:
|
||||
|
||||
mkYarnPackage rec {
|
||||
pname = "codefresh";
|
||||
version = "0.87.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "codefresh-io";
|
||||
repo = "cli";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-SUwt0oWls823EeLxT4CW+LDdsjAtSxxxKkllhMJXCtM=";
|
||||
};
|
||||
|
||||
offlineCache = fetchYarnDeps {
|
||||
yarnLock = "${src}/yarn.lock";
|
||||
hash = "sha256-tzsHbvoQ59MwE4TYdPweLaAv9r4V8oyTQyvdeyPCsHY=";
|
||||
};
|
||||
packageJSON = ./package.json;
|
||||
|
||||
doDist = false;
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = codefresh;
|
||||
# codefresh needs to read a config file, this is faked out with a subshell
|
||||
command = "codefresh --cfconfig <(echo 'contexts:') version";
|
||||
};
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/codefresh-io/cli/releases/tag/v${version}";
|
||||
description = "Codefresh CLI tool to interact with Codefresh services.";
|
||||
homepage = "https://github.com/codefresh-io/cli";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "codefresh";
|
||||
maintainers = [ lib.maintainers.takac ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user