npm build script for node js project code example
Example: build and serve project build node js npm
# in terminal cd to project root dir
# to build project:
npm run build
# to serve/host project locally:
serve -s ./build
# in terminal cd to project root dir
# to build project:
npm run build
# to serve/host project locally:
serve -s ./build