@irrasoft/cra-template-antd-pro
v0.1.113
Published
Antd Pro template for Create React App
Downloads
9
Readme
cra-template-antd-pro
Antd Pro template for Create React App
Quick Start
npx create-react-app my-app --template @irrasoft/antd-pro
cd my-app
npm start
If you've previously installed
create-react-app
globally vianpm install -g create-react-app
, we recommend you uninstall the package usingnpm uninstall -g create-react-app
oryarn global remove create-react-app
to ensure thatnpx
always uses the latest version.
(npx comes with npm 5.2+ and higher, see instructions for older npm versions)
Then open http://localhost:4000/ to see your app.
Creating an App
You’ll need to have Node >= 10 on your local development machine (but it’s not required on the server). You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects.
To create a new app, you may choose one of the following methods:
npx
npx create-react-app my-app --template @irrasoft/antd-pro
(npx comes with npm 5.2+ and higher, see instructions for older npm versions)
npm
npm init react-app my-app --template @irrasoft/antd-pro
npm init <initializer>
is available in npm 6+
Yarn
yarn create react-app my-app --template @irrasoft/antd-pro
yarn create
is available in Yarn 0.25+
Output
Running any of these commands will create a directory called my-app
inside the current folder. Inside that directory, it will generate the initial project structure and install the transitive dependencies:
my-app
├── README.md
├── node_modules
├── package.json
├── craco.config.js
├── .env
├── .gitignore
├── public
│ ├── favicon.ico
│ ├── index.html
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ └── robots.txt
└── src
├── assets
├── components
├── config
├── context
├── layouts
├── pages
├── router
├── index.js
├── reportWebVitals.js
└── setupTests.js
Scripts
Inside the newly created project, you can run some built-in commands:
npm start
or yarn start
Runs the app in development mode. Open http://localhost:4000 to view it in the browser.