처음 React.js 개발환경을 설정 할때를 떠올려보면 Babel, Webpack이나 test를 위한 라이브러리(Jest)를 설정하기 위해 수 많은 삽질과 시간을 들였던 것 같다. 특히 나와 같이 Front-End 기술에 익숙하지 않은 사람들은 이런 기술들이 어렵게 다가 올 수 있다.
Creating an optimized production build... Compiled successfully.
File sizes after gzip:
46.63 KB build\static\js\main.00c83e70.js 289 B build\static\css\main.9a0fe4f1.css
The project was built assuming it is hosted at the server root. To override this, specify the homepage in your package.json. For example, add this to build it for GitHub Pages:
"homepage": "http://myname.github.io/myapp",
The build folder is ready to be deployed. You may serve it with a static server:
$ npm test --- > my-first-react@0.1.0 test C:\Users\kihoonkim\workspace\my-first-react > react-scripts test --env=jsdom --- RUN src\App.test.js --- PASS src\App.test.js √ renders without crashing (16ms)
Test Suites: 1 passed, 1 total Tests: 1 passed, 1 total Snapshots: 0 total Time: 0.385s, estimated 7s Ran all test suites.
Watch Usage › Press p to filter by a filename regex pattern. › Press q to quit watch mode. › Press Enter to trigger a test run.
npm run eject
react-scripts 를 통해 사용하던 dependencies나 설정 파일들을 현재 앱 디렉토리로 복사해 준다. react-scripts는 삭제되고, 절대로 다시 이전으로 되돌릴수 없다.
Are you sure you want to eject? This action is permanent. [y/N] y Ejecting...
Copying files into C:\Users\kihoonkim\workspace\my-first-react Adding config\env.js to the project Adding config\paths.js to the project .....
Updating the dependencies Removing react-scripts from devDependencies Adding autoprefixer to devDependencies Adding babel-core to devDependencies .....
Updating the scripts Replacing "react-scripts start" with "node scripts/start.js" Replacing "react-scripts build" with "node scripts/build.js" Replacing "react-scripts test" with "node scripts/test.js"