{"id":13480036,"url":"https://github.com/rthor/cra-generate","last_synced_at":"2026-02-18T16:34:52.209Z","repository":{"id":40002875,"uuid":"78372031","full_name":"rthor/cra-generate","owner":"rthor","description":"Scaffold a React component.","archived":false,"fork":false,"pushed_at":"2018-10-13T11:03:26.000Z","size":98,"stargazers_count":81,"open_issues_count":7,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T09:04:08.576Z","etag":null,"topics":["cli","create-react-app","react","scaffold"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rthor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-08T21:36:52.000Z","updated_at":"2024-05-20T11:09:50.000Z","dependencies_parsed_at":"2022-06-26T07:07:04.310Z","dependency_job_id":null,"html_url":"https://github.com/rthor/cra-generate","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rthor%2Fcra-generate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rthor%2Fcra-generate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rthor%2Fcra-generate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rthor%2Fcra-generate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rthor","download_url":"https://codeload.github.com/rthor/cra-generate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245826755,"owners_count":20678852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","create-react-app","react","scaffold"],"created_at":"2024-07-31T17:00:33.573Z","updated_at":"2026-02-18T16:34:48.364Z","avatar_url":"https://github.com/rthor.png","language":"JavaScript","readme":"# React Component Generator\n\nScaffold a React component for Create React App.\n\n```bash\nUsage: cra-generate [options] \u003ccomponent\u003e\n\nOptions:\n  -h, --help                       output usage information\n  -V, --version                    output the version number\n  -f, --functional                 create a functional component\n  -t, --type-check [system]        add @flow comment to script files\n  -c, --css-extension [extension]  changes the extension of generated css files\n  -d, --directory [dir]            specify a directory for the component\n      --test [type]                either \"jest\" or \"none\"\n      --no-semi                    remove semicolons\n```\n\nIf a `.flowconfig` is present, a `// @flow` comment is prepended to all script files.\n\nProject specific settings can be added to the `package.json` file under the `craGenerate` key. Eg\n\n```json\n\"craGenerate\": {\n  \"fileFormat\": \"paramCase\",\n  \"cssExtension\": \"scss\",\n  \"directory\": \"widgets\"\n}\n```\n\n| option          | type    | default     | description                                                                      |\n|-----------------|---------|-------------|----------------------------------------------------------------------------------|\n| directory       | `string`  | \"components\"  | Where, relative to the `./src/` directory, the component should be.                          |\n| fileFormat      | `string`  | \"pascalCase\"  | One of: camelCase, constantCase, headerCase, paramCase, pascalCase or snakeCase. |\n| componentFormat | `string`  | \"pascalCase\"  | One of: camelCase, constantCase, headerCase, paramCase, pascalCase or snakeCase. |\n| typeCheck       | `undefined|string` | `undefined` | Can be set explicitly to \"flow\".                                                 |\n| cssExtension    | `string`  | \"css\"         | File extensions, with or without a dot.                                      |\n| semi    | `true|false`  | `true`         | Should script files be terminated with a semicolon.                                      |\n| test            | `false|string` | \"jest\"   | Only jest for now. Can be skipped with false.                                  |\n\n## License\n\nMIT\n","funding_links":[],"categories":["Tools","JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frthor%2Fcra-generate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frthor%2Fcra-generate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frthor%2Fcra-generate/lists"}