Skip to content

Commit

Permalink
readme.md fix / start browser added
Browse files Browse the repository at this point in the history
  • Loading branch information
gongdongho12 committed Jul 14, 2020
1 parent 5c164b6 commit 1886377
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo

In the project directory, you can run:

### `yarn start`
### `npm start`

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br />
You will also see any lint errors in the console.

### `yarn test`
### `npm test`

Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`
### `npm build`

Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.
Expand All @@ -27,7 +27,7 @@ Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `yarn eject`
### ~~`npm eject`~~

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

Expand Down
4 changes: 3 additions & 1 deletion craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const { when, whenDev, whenProd, whenTest, ESLINT_MODES, POSTCSS_MODES } = requi
const CracoLessPlugin = require('craco-less');
const CracoAntDesignPlugin = require("craco-antd");
const CracoAlias = require("craco-alias");
const OpenBrowserPlugin = require("open-browser-webpack-plugin");

module.exports = {
reactScriptsVersion: "react-scripts",
Expand All @@ -17,7 +18,8 @@ module.exports = {
source: 'tsconfig',
tsConfigPath: 'tsconfig.paths.json',
}
}
},
{ plugin: new OpenBrowserPlugin({ url: 'http://localhost:3000' }) }
],
// style: {
// modules: {
Expand Down
51 changes: 49 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"@types/recoil": "0.0.1",
"@types/styled-components": "^5.1.1",
"antd": "^4.4.2",
"axios": "^0.19.2",
"craco-alias": "^2.1.1",
"craco-antd": "^1.18.1",
"craco-less": "^1.17.0",
"less": "^3.12.0",
Expand All @@ -26,8 +28,7 @@
"react-scripts": "3.4.1",
"recoil": "0.0.10",
"styled-components": "^5.1.1",
"typescript": "~3.7.2",
"craco-alias": "^2.1.1"
"typescript": "~3.7.2"
},
"scripts": {
"start": "craco start",
Expand All @@ -51,5 +52,6 @@
]
},
"devDependencies": {
"open-browser-webpack-plugin": "0.0.5"
}
}

0 comments on commit 1886377

Please sign in to comment.