{"_id":"@99xt/react-cli","_rev":"9-4cb63a875dda4185591203d1fde78533","name":"@99xt/react-cli","description":"Scaffolding tool for React","dist-tags":{"latest":"0.2.1"},"versions":{"0.0.1":{"name":"@99xt/react-cli","version":"0.0.1","keywords":["react","cli"],"author":{"name":"99xtechnology.com"},"license":"MIT","_id":"@99xt/react-cli@0.0.1","maintainers":[{"name":"99xt","email":"ashanf@99x.lk"}],"homepage":"https://github.com/rajikaimal/react-cli#readme","bugs":{"url":"https://github.com/rajikaimal/react-cli/issues"},"bin":{"react":"./bin/initialize.js"},"dist":{"shasum":"8c55d3f68f159e50c01f0993c4501e1732cd5035","tarball":"https://registry.npmjs.org/@99xt/react-cli/-/react-cli-0.0.1.tgz","integrity":"sha512-W1uJqeQEYS2vIdPTEwd2fZan/foYq6fS1LpB2WxSPNRn070JWi4BrXg0fvPpHR4QVN4trjMTGn/W5n8qAKB+ow==","signatures":[{"sig":"MEUCIQDOFyyypC5SG/1Xy8UNHA5mRvmmK3CxVfS7JWbknVDrjwIgAKJcadsQ0ZqnI1v5tAolsXPwCWxLuzaHQ7Bb7zuZ7RA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"8c55d3f68f159e50c01f0993c4501e1732cd5035","gitHead":"17a2e5f60d4056dc40b64f32f1858de956f202c2","scripts":{"test":"mocha"},"_npmUser":{"name":"99xt","email":"ashanf@99x.lk"},"repository":{"url":"git+https://github.com/rajikaimal/react-cli.git","type":"git"},"_npmVersion":"2.15.8","description":"Scaffolding tool for React","directories":{},"_nodeVersion":"4.4.7","dependencies":{"rx":"^4.1.0","npm":"^3.10.6","ora":"^0.3.0","chalk":"^1.1.3","install":"^0.8.1","fs.extra":"^1.3.2","inquirer":"^1.1.2","commander":"^2.9.0","ascii-table":"0.0.9","directory-tree":"^1.1.1"},"devDependencies":{"rm":"^0.1.6","chai":"^3.5.0","mocha":"^3.0.2","eslint":"^3.3.1","eslint-config-google":"^0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/react-cli-0.0.1.tgz_1476172518106_0.3957668715156615","host":"packages-16-east.internal.npmjs.com"}},"0.2.1":{"name":"@99xt/react-cli","version":"0.2.1","keywords":["react","cli"],"author":{"name":"99xtechnology.com"},"license":"MIT","_id":"@99xt/react-cli@0.2.1","maintainers":[{"name":"99xt","email":"ashanf@99x.lk"},{"name":"rajikaimal","email":"inbox.rajika@gmail.com"}],"homepage":"https://github.com/99xt/react-cli#readme","bugs":{"url":"https://github.com/99xt/react-cli/issues"},"bin":{"react":"./bin/initialize.js"},"dist":{"shasum":"4ae768a4c99683a9a21806b34f1d4cfc5d4db071","tarball":"https://registry.npmjs.org/@99xt/react-cli/-/react-cli-0.2.1.tgz","integrity":"sha512-qvUKagAt6UQJYWyGTh6AW3A3U01hCGH0CcDehIHp1adh09W6eW4W6A5nOKLMoAIPyzeSSRa8op1SYG4yewwptw==","signatures":[{"sig":"MEUCIQCPqk8G/QOcj2AAHbX3P58/pou5f/zzihm5DuKeWTLX8wIga1kQwOTKMIhK1zXbTCK+BvavVY6OcmC6QWi+7JBX694=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"4ae768a4c99683a9a21806b34f1d4cfc5d4db071","gitHead":"85b1ad30e669999c4461be5f28532118e4e54b41","scripts":{"test":"mocha"},"_npmUser":{"name":"99xt","email":"ashanf@99x.lk"},"repository":{"url":"git+https://github.com/99xt/react-cli.git","type":"git"},"_npmVersion":"2.15.8","description":"Scaffolding tool for React","directories":{},"_nodeVersion":"4.4.7","dependencies":{"rx":"^4.1.0","npm":"^3.10.6","ora":"^0.3.0","chalk":"^1.1.3","install":"^0.8.1","fs.extra":"^1.3.2","inquirer":"^1.1.2","commander":"^2.9.0","ascii-table":"0.0.9","directory-tree":"^1.1.1"},"devDependencies":{"rm":"^0.1.6","chai":"^3.5.0","mocha":"^3.0.2","eslint":"^3.3.1","eslint-config-google":"^0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/react-cli-0.2.1.tgz_1476174691486_0.7753263639751822","host":"packages-16-east.internal.npmjs.com"}}},"time":{"created":"2016-10-11T07:55:18.707Z","modified":"2024-07-05T10:25:46.939Z","0.0.1":"2016-10-11T07:55:18.707Z","0.2.1":"2016-10-11T08:31:32.091Z"},"maintainers":[],"author":{"name":"99xtechnology.com"},"repository":{"url":"git+https://github.com/99xt/react-cli.git","type":"git"},"keywords":["react","cli"],"license":"MIT","homepage":"https://github.com/99xt/react-cli#readme","bugs":{"url":"https://github.com/99xt/react-cli/issues"},"readme":"# react-cli ![Dependency status](https://david-dm.org/99xt/react-cli.svg) [![Build Status](https://travis-ci.org/99xt/react-cli.svg?branch=master)](https://travis-ci.org/99xt/react-cli)\r\n\r\n[![Join the chat at https://gitter.im/react-cli-99xt/Lobby](https://badges.gitter.im/react-cli-99xt/Lobby.svg)](https://gitter.im/react-cli-99xt/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\r\n\r\nScaffolding tool for [React](https://facebook.github.io/react/)\r\n\r\nreact-cli is a command line interface which brings smooth developer experience (DX) for React devs. react-cli provides a better way to generate react projects with [react-boilerplate](https://github.com/99xt/react-boilerplate). With this tool it's possible to continue generating boilerplate code with heavy customizations once a project is initiated.\r\n\r\n## Install\r\n\r\n```\r\n$ npm install -g @99xt/react-cli\r\n```\r\n\r\n## Usage\r\n\r\n### react init [name]\r\n*alias: i*\r\n\r\n#### name\r\n\r\nProject name.\r\n\r\n#### Options\r\n\r\n* `-l`\r\nAdd eslint configuration.\r\n\r\n---------------------------------------\r\n\r\n### react generate component [module] [component]\r\n*alias: g*\r\n\r\n#### module\r\n\r\nModule name where the react component should be placed within. (Subdirectory within components directory)\r\n\r\n#### component\r\n\r\nReact component name.\r\n\r\n---------------------------------------\r\n\r\n### react generate test [module] [component]\r\n*alias: g*\r\n\r\nCreate React component.\r\n\r\n#### module\r\n\r\nModule name where the test file should be placed within. (Subdirectory within __tests__ directory)\r\n\r\n#### component\r\n\r\nTest file name.\r\n\r\n---------------------------------------\r\n\r\n### react view -c -t\r\n*alias: v*\r\n\r\nView react components and test files.\r\n\r\n#### Options\r\n\r\n* `-c`\r\nView React components file directory.\r\n\r\n* `-t`\r\nView tests file directory.\r\n\r\n### react config [key] [value]\r\n*alias: c*\r\n\r\nChange configuration in `.reactclirc`.\r\n\r\n#### key\r\n\r\nKey for configuration\r\nexample: `client`\r\n\r\n#### value\r\n\r\nValue for configuration\r\nexample: `src` (source directory)\r\n\r\n---------------------------------------\r\n\r\n## Configuring existing projects\r\n\r\nTo use react-cli in existing React project navigate to directory where React components are created.\r\nCreate react-cli configuration file, `.reactclirc` (similar to `.babelrc`). Add configuration in key value pairs.\r\n\r\n```\r\n{\r\n\t\"client\": \"src\" \r\n}\r\n```\r\n\r\nThis specifies that React components are placed in `src/components` directory.\r\n\r\n---------------------------------------\r\n\r\n## Features\r\n\r\n- Initiate React projects\r\n- Create React components\r\n- Create test files\r\n- Interactive view of the component structure\r\n\r\n## References\r\n\r\n- [What is scaffolding ?](https://en.wikipedia.org/wiki/Scaffold_(programming))\r\n- [What is a CLI ?](https://www.techopedia.com/definition/3337/command-line-interface-cli)\r\n- [Why good UX in CLIs matters](https://trevorsullivan.net/2016/07/11/designing-command-line-tools/)\r\n- Projects with similar objectives\r\n - [Yeoman](http://yeoman.io/)\r\n\r\n## Contributor guidelines\r\n\r\n- Fork the repository.\r\n- Clone the forked repository.\r\n- Create your own branch.\r\n- Create tests and make sure tests pass on travis.\r\n- Create a pull request with changes made.\r\n\r\nFor more information refer [CONTRIBUTING.md](https://github.com/99xt/react-cli/blob/master/CONTRIBUTING.md)\r\n\r\n## License\r\n\r\nMIT © [99XT](https://github.com/99xt)","readmeFilename":"README.md"}