zhuangjinxin / study

每日学习笔记
0 stars 0 forks source link

yarn 常用命令 #33

Open zhuangjinxin opened 3 years ago

zhuangjinxin commented 3 years ago
you can run several commands:

  yarn start
    Starts the development server.

  yarn build
    Bundles the app into static files for production.

  yarn test
    Starts the test runner.

  yarn eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd antd-demo
  yarn start

Happy hacking!
✨  Done in 132.33s.
zhuangjinxin commented 3 years ago

yarn build

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
You may serve it with a static server:

  yarn global add serve
  serve -s build

Find out more about deployment here:

  https://cra.link/deployment

✨  Done in 50.15s.
zhuangjinxin commented 3 years ago
Created git commit.

Success! Created react-demo at /Users/zhuangjinxin/workspace/zhuangjinxin/ant/react-demo
Inside that directory, you can run several commands:

  yarn start
    Starts the development server.

  yarn build
    Bundles the app into static files for production.

  yarn test
    Starts the test runner.

  yarn eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd react-demo
  yarn start

Happy hacking!