Installation Project
npm install => For installing all packages from package.json.
npm start => For start the project
Npm package upload
Enter your name of your application in package.json file.
{
"name":"test"
}
.
If your first upload application version automatically created by package.json file. If the application will be update, you have to update your version number in package.json file. Otherwise you might see some error while uploading your npm package.
Example
{
"version": "1.0.0", => "version": "1.0.1",
}.
Open your project folder path in terminal.
npm login .
- Enter your username password
npm run build => For building the application .
npm publish
Available Scripts
In the project directory, you can run:
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
npm run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
Learn More
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
Code Splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
Analyzing the Bundle Size
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
Making a Progressive Web App
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
Advanced Configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
Deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
yarn build
fails to minify
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify