aspnet-starter-kit icon indicating copy to clipboard operation
aspnet-starter-kit copied to clipboard

Integrate React App SDK

Open koistya opened this issue 9 years ago • 0 comments

What do you think about extracting (1) webpack.config.js, (2) all the dev dependencies (~50), and automation scripts (build, run) into a stand-alone npm package (react-app)?

This way it might be easier for to keep your project based on ASP.NET Core Starter Kit template up to date, you just update react-app-tools dev dependency in your front-end project from time to time, which will ensure that you're using the latest and greatest configs and CLI tools ready to be used for building, running and testing your React application.

The package.json file in your project will look nice and clean, literally:

{
  "private": true,
  "dependencies": {
    "history": "^3.0.0",
    "react": "^15.2.1",
    "react-app": "^1.1.1",
    "react-dom": "^15.2.1",
    "react-redux": "^4.4.5",
    "redux": "^3.5.2",
    "whatwg-fetch": "^1.0.0"
  },
  "devDependencies": {
    "react-app-tools": "^1.1.1",
  },
  "scripts": {
    "build": "react-app build",
    "start": "react-app start",
  }
}

FAQ

  • Will I be able to customize Babel, Webpack, Browsersync and other configs?
    Yes, there will be an easy way to extend/tweak the default configs (Webpack, Babel, PostCSS etc.)
  • Will I be able to customize automation scripts?
    Yes, there will be an easy way to add or customize the existing scripts (build, run etc.)

Preview

https://github.com/kriasoft/react-app

koistya avatar Jul 25 '16 11:07 koistya