Reputation: 527
I'm going through js-stack-from-scratch using Node, not Yarn.
In the PM2 (Process Manager) section we are to add
"prod:build": "rimraf lib && babel src -d lib --ignore .test.js"
to the "scripts"
section of package.json, and then to run yarn prod:build
.
I need the Node equivalent please.
(I got around the previous Nodemon section by substituting dev:start
for dev-start
but this doesn't work for prod:build
, presumably because this time it's on the command line)
Upvotes: 0
Views: 165