pq-payments-list v0.1.6
This project was bootstrapped with Create React App.
Table of Contents
- Available Scripts npm start npm run test npm test-watch npm run build npm run eject npm run githooks * npm run lint
- Running locally with styles repo npm run local-link npm run local-unlink npm run local-start npm run local-stop
- Learn More Code Splitting Analyzing the Bundle Size Making a Progressive Web App Advanced Configuration Deployment * npm run build fails to minify
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 test
Executes the tests without watching.
npm test-watch
Launches the test runner in the interactive watch mode. See the section about running tests for more information.
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.
The build is minified and the filenames include the hashes. Your app is ready to be deployed!
See the section about deployment for more information.
npm run eject
Note: this is a one-way operation. Once you eject
, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
npm run githooks
This command will install all the git prehooks needed for the project.
npm run lint
this will run eslint and will try to fix your code automatically when possible.
Running locally with styles
repo
All scripts that execute with local styles will be prefixed with local-*
.
npm run local-link
This builds a symlink to the styles
repo.
Prerequisites: inside the styles
repo, you must first run npm dist
after every change. You must also run [sudo] npm link
inside styles
but this only needs to be done once in total after you've cloned styles
. In the future, we might provide a script that executes the entire workflow.
WARNING: "Unlinking" the symlink actually removes the dependency from node_modules
and you must re-install the dependency (this is done via npm run local-unlink
, see below). This will thus wipe out any existing styles
module you've previously installed.
How it works:
On Mac, npm link
inside styles
builds a symlink inside /usr/local/lib
to styles
(thus, this prerequisite step might require sudo
access). Then, inside payments-list
, npm link
@plastiq/stylesconverts the
stylesinside
node_modulesinto a symlink into
/usr/local/lib`.
npm run local-unlink
This removes the symlink to the styles
repo and re-installs the module from npm.
npm run local-start
Builds required symlinks and starts the app with local dependencies as symlinks inside node_modules
. Shortcut for npm run local-link && npm start
. Prerequisites are same as npm run local-link
.
npm run local-stop
Stops the app and unlinks all symlinks. Shortcut for CTRL-C and then npm run local-unlink
.
WARNING: This stops ALL node servers on your machine.
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
npm run build
fails to minify
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify