This project was generated using create-awesome-node-app. DON'T USE THIS TEMPLATE AS IT! Generate yours using the command and following the options in the interactive menu. Check the docs for more information!
fnm use
npm install
npm run start
While developing, you will probably rely mostly on npm run start
; however, there are additional scripts at your disposal:
npm run <script> |
Description |
---|---|
dev |
Serves your app at for local development |
test |
Runs unit tests with Jest. See testing |
test:watch |
Runs test in watch mode to re-run tests when changed |
lint |
Lints the project for potential errors |
lint:fix |
Lints the project and fixes all correctable errors |
Generate production files running
npm run build
Generate and serve production files running
npm run serve
Available scripts:
npm run <script> |
Description |
---|---|
preview |
Serves your app using your production ready setup (.env.production and NODE_ENV equals to production ) |
build |
Builds the application to dist/ |
To add a unit test, create a .test.js
file anywhere inside of src/
. Jest will automatically find these files.
You can report bugs, request features and create Pull Requests in the Create-Node-App/react-extensions repository!