{"id":13394465,"url":"https://github.com/react-webpack-generators/generator-react-webpack","last_synced_at":"2025-12-16T15:04:44.750Z","repository":{"id":13035283,"uuid":"15715000","full_name":"react-webpack-generators/generator-react-webpack","owner":"react-webpack-generators","description":"Yeoman generator for ReactJS and Webpack","archived":false,"fork":false,"pushed_at":"2017-02-10T06:19:54.000Z","size":468,"stargazers_count":2864,"open_issues_count":42,"forks_count":354,"subscribers_count":95,"default_branch":"master","last_synced_at":"2025-10-11T13:07:34.229Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/react-webpack-generators.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-07T19:58:20.000Z","updated_at":"2025-09-25T14:31:27.000Z","dependencies_parsed_at":"2022-08-07T07:00:57.316Z","dependency_job_id":null,"html_url":"https://github.com/react-webpack-generators/generator-react-webpack","commit_stats":null,"previous_names":["newtriks/generator-react-webpack"],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/react-webpack-generators/generator-react-webpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-webpack-generators%2Fgenerator-react-webpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-webpack-generators%2Fgenerator-react-webpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-webpack-generators%2Fgenerator-react-webpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-webpack-generators%2Fgenerator-react-webpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-webpack-generators","download_url":"https://codeload.github.com/react-webpack-generators/generator-react-webpack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-webpack-generators%2Fgenerator-react-webpack/sbom","scorecard":{"id":682107,"data":{"date":"2025-08-11","repo":{"name":"github.com/react-webpack-generators/generator-react-webpack","commit":"9c682541787602290fc6d115d90dbd3386cfda10"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 5/26 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T23:31:26.939Z","repository_id":13035283,"created_at":"2025-08-21T23:31:26.939Z","updated_at":"2025-08-21T23:31:26.939Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27766828,"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","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-07-30T17:01:20.598Z","updated_at":"2025-12-16T15:04:44.682Z","avatar_url":"https://github.com/react-webpack-generators.png","language":"JavaScript","readme":"# generator-react-webpack\n\n[![Coverage Status](https://coveralls.io/repos/github/react-webpack-generators/generator-react-webpack/badge.svg?branch=master)](https://coveralls.io/github/react-webpack-generators/generator-react-webpack?branch=master) [![Join the chat at https://gitter.im/newtriks/generator-react-webpack](https://badges.gitter.im/newtriks/generator-react-webpack.svg)](https://gitter.im/newtriks/generator-react-webpack?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge) [![Build Status](https://secure.travis-ci.org/react-webpack-generators/generator-react-webpack.png?branch=master)](https://travis-ci.org/react-webpack-generators/generator-react-webpack) ![Amount of Downloads per month](https://img.shields.io/npm/dm/generator-react-webpack.svg \"Amount of Downloads\") ![Dependency Tracker](https://img.shields.io/david/react-webpack-generators/generator-react-webpack.svg \"Dependency Tracker\") ![Dependency Tracker](https://img.shields.io/david/dev/react-webpack-generators/generator-react-webpack.svg \"Dependency Tracker\") ![Node Version](https://img.shields.io/node/v/generator-react-webpack.svg \"Node Version\")\n\n\u003e Yeoman generator for [ReactJS](http://facebook.github.io/react/) - lets you quickly set up a project including karma test runner and [Webpack](http://webpack.github.io/) module system.\n\n# About\nGenerator-React-Webpack will help you build new React projects using modern technologies.\n\nOut of the box it comes with support for:\n- Webpack\n- ES2015 via Babel-Loader\n- Different supported style languages (sass, scss, less, stylus)\n- Style transformations via PostCSS\n- Automatic code linting via esLint\n- Ability to unit test components via Karma and Mocha/Chai\n\n## Changes since version 2.0\nThis generator is written in ES2015. This means it is ___not compatible with node.js versions before 4.0___.\n\nIt also does __NOT__ include support for Flux-Frameworks anymore. Instead, we will use it as a base for other generators to build upon. This will make the base generator easier to use and update.\n\nIf you are interested, feel free to write your own generator and use generator-react-webpack as a base (via composition).\n\nIf you have built a generator using generator-react-webpack, tell us and we will add a link to our README.\n\n## Generators that extend generator-react-webpack\n- [Generator-React-Webpack-Alt](https://github.com/weblogixx/generator-react-webpack-alt) (Adds ability to create actions, stores and sources for [alt.js](http://alt.js.org))\n- [Generator-React-Webpack-Redux](https://github.com/stylesuxx/generator-react-webpack-redux) (Adds ability to create actions and reducers for [Redux](https://github.com/rackt/redux))\n\n---\n\n## Installation\n```bash\n# Make sure both is installed globally\nnpm install -g yo\nnpm install -g generator-react-webpack\n```\n\n## Setting up projects\n```bash\n# Create a new directory, and `cd` into it:\nmkdir my-new-project \u0026\u0026 cd my-new-project\n\n# Run the generator\nyo react-webpack\n```\n\nPlease make sure to edit your newly generated `package.json` file to set description, author information and the like.\n\n## Generating new components\n```bash\n# After setup of course :)\n# cd my-new-project\nyo react-webpack:component my/namespaced/components/name\n```\n\nThe above command will create a new component, as well as its stylesheet and a basic testcase.\n\n## Generating new stateless functional components\n```\nyo react-webpack:component my/namespaced/components/name --stateless\n```\n\nStateless functional components where introduced in React v0.14. They have a much shorter syntax than regular ones and no state or lifecycle methods at all. Please read the [React 0.14 release notes](https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html) to get more information about those components.\n\n___Note___: You will still be able to set properties for stateless components!\n\n## Adding PostCSS plugins\nIf you have enabled [PostCSS](https://github.com/postcss/postcss) at generation time, install your PostCSS plugins via npm and *require* it in **postcss** function in *cfg/base.js*.\n\nExample for autoprefixer:\n```bash\ncd my-new-project\nnpm install autoprefixer\n```\nRequire in *cfg/base.js*\n```JavaScript\n...\npostcss: function () {\n  return [\n    require('autoprefixer')({\n      browsers: ['last 2 versions', 'ie \u003e= 8']\n    })\n  ];\n}\n...\n```\n\n## Usage\nThe following commands are available in your project:\n```bash\n# Start for development\nnpm start # or\nnpm run serve\n\n# Start the dev-server with the dist version\nnpm run serve:dist\n\n# Just build the dist version and copy static files\nnpm run dist\n\n# Run unit tests\nnpm test\n\n# Auto-run unit tests on file changes\nnpm run test:watch\n\n# Lint all files in src (also automatically done AFTER tests are run)\nnpm run lint\n\n# Clean up the dist directory\nnpm run clean\n\n# Just copy the static assets\nnpm run copy\n```\n\n### Naming Components\nWe have opted to follow [@floydophone](https://twitter.com/floydophone) convention of uppercase for component file naming e.g. [Component.js](https://github.com/petehunt/ReactHack/tree/master/src/components). I am open to suggestions if there is a general objection to this decision.\n\n### Modules\nEach component is a module and can be required using the [Webpack](http://webpack.github.io/) module system. [Webpack](http://webpack.github.io/) uses [Loaders](http://webpack.github.io/docs/loaders.html) which means you can also require CSS and a host of other file types. Read the [Webpack documentation](http://webpack.github.io/docs/home.html) to find out more.\n\n## Props\nThanks to [Edd Hannay](https://github.com/eddhannay) for his Webpack optimisations, my local merge and testing meant his additions lost his signature (my fault, sorry). So, big thanks Edd.\n\n## Contribute\nContributions are welcomed. When submitting a bugfix, write a test that exposes the bug and fails before applying your fix. Submit the test alongside the fix.\n\n### Running Tests\n`npm test` or `node node_modules/.bin/mocha`\n\n## License\n[MIT license](http://opensource.org/licenses/mit-license.php)\n","funding_links":[],"categories":["Uncategorized","Code Design","前端","JavaScript"],"sub_categories":["Uncategorized","Boilerplate","react"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-webpack-generators%2Fgenerator-react-webpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-webpack-generators%2Fgenerator-react-webpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-webpack-generators%2Fgenerator-react-webpack/lists"}