{"name":"@ionic/cli-framework","version":"0.2.0-alpha.f54e78b9","description":"The foundation framework of the Ionic CLI","homepage":"http://ionicframework.com/","author":{"name":"Ionic Team","email":"hi@ionic.io","url":"http://ionic.io"},"main":"./index.js","types":"./index.d.ts","engines":{"node":">=6.4.0"},"scripts":{"clean":"rm -rf index.* definitions.* guards.* ./utils","lint":"tslint --config ../../../tslint.js --project tsconfig.json --type-check","build":"npm run clean && tsc","watch":"tsc -w","test":"jest","prepublishOnly":"npm run build"},"license":"MIT","jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json"}},"moduleFileExtensions":["ts","js"],"transform":{".(ts)":"<rootDir>/../../../node_modules/ts-jest/preprocessor.js"},"testRegex":"/__tests__/.*\\.(ts|js)$"},"dependencies":{"chalk":"^2.3.0","ncp":"^2.0.0","rimraf":"^2.6.2","strip-ansi":"^4.0.0","superagent":"^3.8.0","tslib":"^1.8.0"},"devDependencies":{"@types/minimist":"^1.2.0","@types/ncp":"^2.0.1","@types/rimraf":"^2.0.2","@types/superagent":"^3.5.6"},"_id":"@ionic/cli-framework@0.2.0-alpha.f54e78b9","_shasum":"a84fd294d7cc6b43ffd9fd4d4c5c44a651fc0aa5","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.5","_npmUser":{"name":"ionicjs","email":"hi@ionicframework.com"},"dist":{"shasum":"a84fd294d7cc6b43ffd9fd4d4c5c44a651fc0aa5","tarball":"http://registry-npm.ywwl.com/@ionic/cli-framework/download/@ionic/cli-framework-0.2.0-alpha.f54e78b9.tgz","integrity":"sha512-m1zP4vqMWslSfxUQZFgZWO9hytfoSnSfMkIXOoEvJ542eFg5T7UrDAg9M4NASOx+ZuBcI+18whxyt+91t5QT0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDc9QPfpLWOBY0hN9gGjIVT+kKkjBXl8q51r7WdGNPLIQIgAaPrwiq5mYjsQEFCTKx6DHPd6ACjhyyUm8AD2ODaJaI="}],"size":6482,"noattachment":false,"key":"/@ionic/cli-framework/-/@ionic/cli-framework-0.2.0-alpha.f54e78b9.tgz"},"maintainers":[{"email":"rudy@ionic.io","name":"fuiste"},{"email":"manu.mtza@gmail.com","name":"manucorporat"},{"email":"jgw9617@gmail.com","name":"jgw96"},{"email":"jthoms1@gmail.com","name":"jthoms1"},{"email":"nick@ionic.io","name":"nhyatt"},{"email":"brandy@ionic.io","name":"brandyscarney"},{"email":"mikehartington@gmail.com","name":"mhartington"},{"email":"dan.bucholtz@gmail.com","name":"danbucholtz"},{"email":"hi+adam@ionicframework.com","name":"adamdbradley"},{"email":"max@ionic.io","name":"maxlynch"},{"email":"dwieeb@gmail.com","name":"dwieeb"},{"email":"max@drifty.com","name":"drifty"},{"email":"hi@ionicframework.com","name":"ionicjs"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-framework-0.2.0-alpha.f54e78b9.tgz_1510180751505_0.13085407740436494"},"directories":{},"readme":"# CLI Framework, by Ionic\n\nThe foundation framework of the Ionic CLI.\n\n## Getting Started\n\n`index.js`:\n```js\nconst { Command, CommandMap, Namespace, execute } = require('@ionic/cli-framework');\n\nclass VersionCommand extends Command {\n  async getMetadata() {\n    return {\n      name: 'version',\n      summary: 'Print CLI version',\n    };\n  }\n\n  async run() {\n    console.log('1.0.0');\n  }\n}\n\nclass RootNamespace extends Namespace {\n  async getMetadata() {\n    return {\n      name: 'mynewcli',\n      summary: 'A cool CLI that prints its own version',\n    };\n  }\n\n  async getCommands() {\n    return new CommandMap([['version', async () => new VersionCommand(this)]]);\n  }\n}\n\nmodule.exports = async function(argv, env) {\n  await execute({ namespace: new RootNamespace(), argv, env });\n}\n```\n\n`bin/mynewcli`:\n```javascript\n#!/usr/bin/env node\n\nconst run = require('../');\nrun(process.argv.slice(2), process.env);\n```\n\ncommand line:\n\n```bash\n$ ./bin/mynewcli\n$ ./bin/mynewcli version\n$ ./bin/mynewcli version --help\n```\n","publish_time":1510180752944,"_cnpm_publish_time":1510180752944,"dist-tags":{"beta":"2.0.0-beta.3","canary":"1.0.0-alpha.0405736c","latest":"6.0.1","rc":"1.0.0-rc.13","testing":"5.1.4-testing.0"}}