{"name":"creato","description":"create-app for any occassion.","version":"1.0.0","main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/maticzav/creato.git"},"bin":{"creato":"dist/index.js"},"scripts":{"clean":"rimraf dist","dev":"ts-node src/index.ts","test":"NODE_ENV=test jest","build":"tsc -d","prepublish":"npm run build","coverage":"codecov","release":"semantic-release"},"dependencies":{"chalk":"^2.4.1","inquirer":"^6.2.0","mkdirp":"^0.5.1","ora":"^3.0.0","parse-github-url":"^1.0.2","request":"^2.88.0","tar":"^4.4.7","update-notifier":"^2.5.0"},"devDependencies":{"@types/inquirer":"0.0.43","@types/jest":"23.3.10","@types/mkdirp":"0.5.2","@types/node":"10.12.12","@types/ora":"1.3.4","@types/parse-github-url":"1.0.0","@types/request":"2.48.1","@types/tar":"4.0.0","@types/tmp":"0.0.33","@types/update-notifier":"2.5.0","codecov":"^3.1.0","husky":"^1.2.0","jest":"23.6.0","npm-run-all":"4.1.5","prettier":"^1.15.3","pretty-quick":"^1.8.0","rimraf":"2.6.2","semantic-release":"^15.12.4","ts-jest":"23.10.5","ts-node":"7.0.1","tslint":"5.11.0","tslint-config-prettier":"1.17.0","tslint-config-standard":"8.0.1","typescript":"3.2.2"},"license":"MIT","gitHead":"e78f2bd63605c0c6a9ff2b7c142526af3044c18f","bugs":{"url":"https://github.com/maticzav/creato/issues"},"homepage":"https://github.com/maticzav/creato#readme","_id":"creato@1.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.3.0","_npmUser":{"name":"maticzav","email":"matic.zavadlal@gmail.com"},"dist":{"integrity":"sha512-Hw7u0g/p3lQcM2VDhdNe/vQJ6RHMBgb68SDaYoHy2S7T7MTC0uW5Y5VrYK8bWiFhnVggSoHcK2fRxwLaoyGfVg==","shasum":"6aa38f56a1ea02c910abbe30861b12dd4f36e21c","tarball":"http://registry-npm.ywwl.com/creato/download/creato-1.0.0.tgz","fileCount":17,"unpackedSize":36605,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcD+1qCRA9TVsSAnZWagAAeLAP/2f+DUUa1YmZvf9UA77P\nESoe3A381cxy2SrtA7UKWEmguLz+V0OiwrcwAjm7WR183G5Il2Qh2uqfPWzl\nbnOp5FbgMeJqjhbnsBTw/vbrEoC1dWQwvzvHWzKwFH2htT1zkqY0ZHLbdf74\nwrDR+A4pEOjzQ8/4Ka/T/j8G9fLnXMUE1pImnHQf1przZZbkj0qDczgL2ub4\n4QqSpttzNNBwv2mxJqZrc/1A2gIa6DcH9nfsL72TnKRGyWjdUq0ATacKNt4M\n/pJ9T7m6hplH/tfDV+Zo8+E9Og1rFUe9cqBYAHtahFBx0hB5mfge8Yew5IxP\nqjT/yVLsxr6pXn4TXWJQia9pos8KjiX2q8eXkCk+mBZ+TAw8uTzH0Ab7e581\nRKy3c9/42pQQy/GVizCe9cVz3xtY82c43vjQjzZ66npnqoegOKsU98dwApAC\n4pS7qRzxLmbYYEtXi1iG/B9z5o7hNVpbUrdjLU2U5LhEF6KBSBTVixVztkeI\n9OVKEeD4+BOGorV0So2OIJza8YH3rvnWJUCKrBjTu77IM0G27QXINHVboBYg\ndiEpcZEwYIFXTXR+yU9YghwFU4LZh3N6EqswGCOU6roSF+I++5AkJBFXglUM\nTIEWB3NumodgqqBUfXaRO67YKVWbbVfqEDWk/kCdB2Z3yasMrJrLQ6AdAKmu\ncgXW\r\n=y7UO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCc69GW1lKbXyDeBI7PoflgCAMETSM2k8e8eApUqM3mugIhALajJo0FErwNO172rSkrzq5m8qVNEDUXqfm6jDjyNNCq"}],"size":7043,"noattachment":false,"key":"/creato/-/creato-1.0.0.tgz"},"maintainers":[{"name":"maticzav","email":"matic.zavadlal@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/creato_1.0.0_1544547689769_0.12372546503001924"},"_hasShrinkwrap":false,"readme":"<p align=\"center\"><img src=\"media/logo.png\" width=\"200\"/></p>\n\n# creato\n\n[![CircleCI](https://circleci.com/gh/maticzav/creato/tree/master.svg?style=shield)](https://circleci.com/gh/maticzav/creato/tree/master)\n[![codecov](https://codecov.io/gh/maticzav/creato/branch/master/graph/badge.svg)](https://codecov.io/gh/maticzav/creato)\n[![npm version](https://badge.fury.io/js/creato.svg)](https://badge.fury.io/js/creato)\n\n> create-app for any occasion.\n\n`creato` helps you build `create-app` tool to help your customers scaffold their project more easily and more quickly.\n\n## Overview\n\n- ✂️ **Flexible:** Packs core functions as well as the out-of-the-box solution.\n- 🌈 **Easy to use:** Exposes intuitive API!\n- 🐶 **Friendly UI:** Question and Answer flow leads thorough template installation!\n\n## Installation\n\n```bash\nyarn add creato\n```\n\n## Example\n\n<p align=\"center\"><img src=\"media/example.gif\" width=\"700\"/></p>\n\n```ts\nimport { creato, Template } from 'creato'\nimport * as meow from 'meow'\n\nconst cli = meow(\n  `\ncreate-boilerplates\n\n> Helps you start with the project more quickly and more easily.\n\nOptions:\n  --force Force the installation in directory.\n`,\n  {\n    flags: {\n      force: {\n        type: 'boolean',\n        default: false,\n      },\n    },\n  },\n)\n\nconst templates: Template[] = [\n  {\n    name: 'json',\n    description: 'JSON template with basic CircleCI config.',\n    repo: {\n      uri: 'https://github.com/maticzav/label-sync',\n      branch: 'master',\n      path: '/examples/with-circleci',\n    },\n  },\n]\n\ncreato(templates, {\n  force: cli.flags.force,\n})\n```\n\n## API\n\n```ts\n/* templates */\n\ninterface Template {\n  name: string\n  description: string\n  repo: TemplateRepository\n}\n\ninterface TemplateRepository {\n  uri: string\n  branch: string\n  path: string\n}\n\n/* creato */\n\ninterface Options {\n  force: boolean\n}\n\nfunction creato(templates: Template[], options: Options): Promise<void>\n\n/* core */\n\nfunction loadTemplate(\n  template: Template,\n  output: string,\n): Promise<\n  { status: 'ok'; message: string } | { status: 'err'; message: string }\n>\n```\n\n## License\n\nMIT @ Matic Zavadlal\n","publish_time":1544547689869,"_cnpm_publish_time":1544547689869,"dist-tags":{"latest":"1.1.4"}}