@react-go/scripts
is a set of configuration and scripts for build React application with zero configuration. It is builds on webpack, Babel, ESLint, webpack-chain etc, and inspired by Create React App, but can be extended and customized without eject.
Create project directory and initialize:
$ mkdir react-app
$ cd react-app
$ npm init -y
Install @react-go/scripts
and React:
# npm
$ npm install @react-go/scripts react react-dom
# yarn
$ yarn add @react-go/scripts react react-dom
Create necessary files:
react-app
|-- src
|-- index.js
|-- public
|-- index.html
|-- package.json
you must have src/index.js
and public/index.html
.
Add scripts to package.json
:
{
"scripts": {
"start": "react-go start",
"build": "react-go build"
}
}
then you can run npm start
to start development server or npm run build
to builds the app for production.
Please refer to the React Go docs for more information.
MIT License (c) 2020-preset pengtikui