balena-cli/package.json
Lucian 4d389bb6cc Implement full command testing, beginning with "balena version"
This also modifies the core CLI to be fed command programatically, which
is useful for being able to do thing like mock endpoints with tools like
"nock", and provide an easier debugging experience.
The tests utilise a "runCommand" helper that intercepts and captures
stdout/stderr writes and returns them once the command has finished
running. At this point the test implementation can parse the
stdout/stderr logs and assess nock interceptions to determine if the
command ran correctly.
This change also homogenises debug messages to start with `[debug]`,
however this is not strictly enforced by linting rules.

Change-type: minor
Signed-off-by: Lucian <lucian.buzzo@gmail.com>
2019-08-12 14:50:41 +01:00

225 lines
6.7 KiB
JSON

{
"name": "balena-cli",
"version": "11.7.10",
"description": "The official balena CLI tool",
"main": "./build/actions/index.js",
"homepage": "https://github.com/balena-io/balena-cli",
"repository": {
"type": "git",
"url": "git@github.com:balena-io/balena-cli.git"
},
"preferGlobal": true,
"files": [
"bin/",
"build/",
"doc/",
"lib/",
"patches/",
"*.md",
"npm-shrinkwrap.json"
],
"bin": {
"balena": "./bin/balena"
},
"pkg": {
"scripts": [
"node_modules/balena-sync/build/capitano/*.js",
"node_modules/balena-sync/build/sync/*.js",
"node_modules/resin-compose-parse/build/schemas/*.json",
"node_modules/raven/lib/instrumentation/*.js"
],
"assets": [
"build/actions-oclif",
"build/auth/pages/*.ejs",
"node_modules/resin-discoverable-services/services/**/*"
]
},
"scripts": {
"postinstall": "patch-package",
"prebuild": "rimraf build/ build-bin/",
"build": "npm run build:src",
"build:src": "npm run prettify && npm run lint && npm run build:fast && npm run build:doc",
"build:fast": "gulp build && tsc",
"build:doc": "mkdirp doc/ && ts-node --type-check -P automation/tsconfig.json automation/capitanodoc/index.ts > doc/cli.markdown",
"build:standalone": "ts-node --type-check -P automation/tsconfig.json automation/run.ts build:standalone",
"build:installer": "ts-node --type-check -P automation/tsconfig.json automation/run.ts build:installer",
"package": "npm run build:fast && npm run build:standalone && npm run build:installer",
"release": "ts-node --type-check -P automation/tsconfig.json automation/run.ts release",
"pretest": "npm run build",
"test": "mocha -r ts-node/register \"tests/**/*.spec.ts\"",
"test:fast": "npm run build:fast && npm run test",
"ci": "npm run test && catch-uncommitted",
"watch": "gulp watch",
"prettify": "prettier --write \"{lib,tests,automation,typings}/**/*.ts\" --config ./node_modules/resin-lint/config/.prettierrc",
"lint": "resin-lint lib/ tests/ && resin-lint --typescript automation/ lib/ typings/ tests/",
"prepublishOnly": "npm run build"
},
"keywords": [
"balena",
"balena.io",
"balenaCloud",
"balenaOS",
"resin",
"resin.io",
"git"
],
"author": "Juan Cruz Viotti <juan@balena.io>",
"license": "Apache-2.0",
"engines": {
"node": ">=8.0"
},
"oclif": {
"bin": "balena",
"commands": "./build/actions-oclif",
"macos": {
"identifier": "io.balena.cli",
"sign": "Developer ID Installer: Rulemotion Ltd (66H43P8FRG)"
}
},
"devDependencies": {
"@oclif/config": "^1.12.12",
"@oclif/dev-cli": "1.22.0",
"@oclif/parser": "^3.7.3",
"@types/archiver": "2.1.2",
"@types/bluebird": "3.5.21",
"@types/chai": "^4.1.7",
"@types/chai-as-promised": "^7.1.1",
"@types/chokidar": "^1.7.5",
"@types/common-tags": "1.4.0",
"@types/dockerode": "2.5.6",
"@types/ejs": "^2.6.3",
"@types/fs-extra": "7.0.0",
"@types/is-root": "1.0.0",
"@types/lodash": "4.14.112",
"@types/mixpanel": "2.14.0",
"@types/mkdirp": "0.5.2",
"@types/mocha": "^5.2.7",
"@types/mz": "0.0.32",
"@types/net-keepalive": "^0.4.0",
"@types/node": "10.14.5",
"@types/prettyjson": "0.0.28",
"@types/raven": "2.5.1",
"@types/request": "2.48.1",
"@types/rewire": "^2.5.28",
"@types/rimraf": "^2.0.2",
"@types/shell-escape": "^0.2.0",
"@types/sinon": "^7.0.13",
"@types/stream-to-promise": "2.2.0",
"@types/tar-stream": "1.6.0",
"@types/through2": "2.0.33",
"catch-uncommitted": "^1.3.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"ent": "^2.2.0",
"filehound": "^1.17.0",
"fs-extra": "^8.0.1",
"gulp": "^4.0.1",
"gulp-coffee": "^2.2.0",
"gulp-inline-source": "^2.1.0",
"gulp-shell": "^0.5.2",
"mocha": "^6.2.0",
"pkg": "^4.4.0",
"prettier": "1.17.0",
"publish-release": "^1.6.0",
"resin-lint": "^3.0.1",
"rewire": "^3.0.2",
"shell-escape": "^0.2.0",
"sinon": "^7.4.1",
"ts-node": "^8.1.0",
"typescript": "3.4.3"
},
"dependencies": {
"@oclif/command": "^1.5.12",
"@oclif/errors": "^1.2.2",
"@resin.io/valid-email": "^0.1.0",
"@zeit/dockerignore": "0.0.3",
"JSONStream": "^1.0.3",
"ansi-escapes": "^2.0.0",
"any-promise": "^1.3.0",
"archiver": "^2.1.0",
"balena-config-json": "^2.0.0",
"balena-device-init": "^5.0.0",
"balena-device-status": "^3.1.2",
"balena-image-manager": "^6.0.0",
"balena-preload": "^8.2.1",
"balena-sdk": "^11.18.0",
"balena-settings-client": "^4.0.0",
"balena-sync": "^10.0.3",
"bash": "0.0.1",
"bluebird": "^3.5.4",
"body-parser": "^1.19.0",
"capitano": "^1.9.0",
"chalk": "^2.3.0",
"chokidar": "^2.0.4",
"cli-truncate": "^1.1.0",
"coffeescript": "^1.12.6",
"color-hash": "^1.0.3",
"columnify": "^1.5.2",
"common-tags": "^1.7.2",
"denymount": "^2.3.0",
"docker-progress": "^4.0.0",
"docker-qemu-transpose": "^0.5.3",
"docker-toolbelt": "^3.3.7",
"dockerode": "^2.5.8",
"dockerode-options": "^0.2.1",
"ejs": "^2.5.7",
"etcher-sdk": "^2.0.5",
"event-stream": "3.3.4",
"express": "^4.13.3",
"fast-boot2": "^1.0.9",
"global-tunnel-ng": "^2.1.1",
"hasbin": "^1.2.3",
"humanize": "0.0.9",
"ignore": "^5.1.1",
"inquirer": "^3.1.1",
"is-root": "^1.0.0",
"js-yaml": "^3.13.1",
"klaw": "^3.0.0",
"livepush": "^2.0.1",
"lodash": "^4.17.4",
"minimatch": "^3.0.4",
"mixpanel": "^0.10.1",
"mkdirp": "^0.5.1",
"moment": "^2.24.0",
"moment-duration-format": "^2.2.2",
"mz": "^2.7.0",
"node-cleanup": "^2.1.2",
"oclif": "^1.13.1",
"opn": "^5.5.0",
"patch-package": "^6.1.2",
"prettyjson": "^1.1.3",
"progress-stream": "^2.0.0",
"raven": "^2.5.0",
"reconfix": "^0.1.0",
"request": "^2.81.0",
"resin-cli-form": "^2.0.1",
"resin-cli-visuals": "^1.4.0",
"resin-compose-parse": "^2.1.0",
"resin-doodles": "0.0.1",
"resin-image-fs": "^5.0.8",
"resin-multibuild": "4.0.1",
"resin-release": "^1.2.0",
"resin-semver": "^1.6.0",
"resin-stream-logger": "^0.1.2",
"rimraf": "^2.4.3",
"rindle": "^1.3.4",
"semver": "^5.7.0",
"split": "^1.0.1",
"string-width": "^2.1.1",
"strip-ansi-stream": "^1.0.0",
"tar-stream": "^1.6.2",
"tar-utils": "^2.0.0",
"through2": "^2.0.3",
"tmp": "0.0.31",
"typed-error": "^3.1.0",
"umount": "^1.1.6",
"unzip2": "balena-io-library/node-unzip-2#v0.2.8",
"update-notifier": "^2.2.0",
"window-size": "^1.1.0"
},
"optionalDependencies": {
"net-keepalive": "^1.2.1",
"windosu": "^0.2.0"
}
}