{"name":"creato","description":"create-app for any occassion.","version":"1.1.3","main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/maticzav/creato.git"},"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.2","inquirer":"^7.0.0","mkdirp":"^0.5.1","ora":"^4.1.1","parse-github-url":"^1.0.2","request":"^2.88.0","tar":"^6.0.0","tmp":"^0.2.0","update-notifier":"^3.0.0"},"devDependencies":{"@types/inquirer":"6.5.0","@types/jest":"24.9.1","@types/mkdirp":"0.5.2","@types/node":"12.20.10","@types/ora":"3.2.0","@types/parse-github-url":"1.0.0","@types/request":"2.48.5","@types/rimraf":"2.0.4","@types/tar":"4.0.4","@types/tmp":"0.2.0","@types/update-notifier":"2.5.1","codecov":"3.7.0","husky":"3.1.0","jest":"24.9.0","npm-run-all":"4.1.5","prettier":"1.19.1","pretty-quick":"2.0.2","rimraf":"3.0.2","semantic-release":"15.14.0","ts-jest":"24.3.0","ts-node":"8.10.2","tslint":"5.20.1","tslint-config-prettier":"1.18.0","tslint-config-standard":"8.0.1","typescript":"3.9.9"},"license":"MIT","gitHead":"267ed459b9467cb4cd0a75f4e932fefc0ecd3944","bugs":{"url":"https://github.com/maticzav/creato/issues"},"homepage":"https://github.com/maticzav/creato#readme","_id":"creato@1.1.3","_npmVersion":"6.5.0","_nodeVersion":"11.3.0","_npmUser":{"name":"maticzav","email":"matic.zavadlal@gmail.com"},"dist":{"integrity":"sha512-QehBkFSI5qhp2qJ5c5a2t2/U/u6LxIdTtCg2bAEzvmKUKTYTtc5mmaNXDMH6umXthmkNPJRr+r03dfvDlr64jw==","shasum":"fc059149a7982100e33d02384bc845c0ab691a4b","tarball":"http://registry-npm.ywwl.com/creato/download/creato-1.1.3.tgz","fileCount":11,"unpackedSize":13227,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfaa3CRA9TVsSAnZWagAAMr8P/joQqxi+m5GQr7j9nc9t\nnLmpIwVIjEcl+hW13d+3j0tqiMtCTgoLVeLj4Esxn8Zaa9gnGQk1T+0Q37zQ\nn0txJOYnIaSY+HWNiuOaPJsxnG3DvYsFlwGdFeQfSKQCyEMW/786eTxkua8W\n1FMEMhMit87znV1heMC65VVYZ1LwOenANpc5iZMWaeHHVfCEZCPsZudkPPYV\nG+ACKkP40NzkgO6WMqZbEuZ9NqBKA2bXbOyMLpxemeJ8y/2g+Sd1T+HF0PNz\nAeZ+iRZ0huq6Vd1HFGTkJ12CLGWdbfvgn34Lfd4asdvQ8XeSfGXlYzTal2+8\nvK3MH/QkWpGdKcklozGseJfkkq4yoda92h8A+iNR7UHDcHIyizfEU8UL9ZFg\n8+mR3FgAX9lbpT49JI6u35lBu+bAO+R2rUIcCI3vPKLIqRNdeXVJ9/SNCCsC\n92K7cnUaENocibLiTsh+YSD6DphCcNXIqPehcnCmKOLgFv+Vg2c1McOIJ2cS\nxn7u1Ye/uZjZUjHDJJ4atZQPDvk9fV7FyfiZrXPP/dE7dB7koFFAKX11ENlD\n/pu2zZ3j01NGX36fVgm8vf5cI14BcQd4Yjt+SIH/i0qFtILEOft9CXdjWzU1\ncwWpEjr7lRYgq6KxRMAeY5YKdhUEzBlg0lfjb6eyO/CMceupXWkjceWngHKl\nOotP\r\n=X5UD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcbyxU99TXUyJHBISy9dXkj3yswkR4+TR7KOB61e1pxAiEAsV+Jf/S6QhuiE6qfugNYHKO+8PaDVH7kUv09pihbt/8="}],"size":4631,"noattachment":false,"key":"/creato/-/creato-1.1.3.tgz"},"directories":{},"maintainers":[{"name":"maticzav","email":"matic.zavadlal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/creato_1.1.3_1618847414983_0.3901240998707749"},"_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":1618847415097,"_cnpm_publish_time":1618847415097,"dist-tags":{"latest":"1.1.4"}}