resolve icon indicating copy to clipboard operation
resolve copied to clipboard

Default "start" should be developer mode

Open oliversturm opened this issue 4 years ago • 1 comments

Right now, I need to do npm run dev to run a reSolve app in developer mode, while npm start runs in production mode. This is counter-intuitive since production mode is only needed for deployment. It is also different from other systems, like the standard react scripts, where start defaults to developer mode.

I suggest we change this in our templates, perhaps to this:

  "scripts": {
    ...
    "dev": "babel-node ./run.js dev",
    "prod": "babel-node ./run.js prod",
    "start": "babel-node ./run.js dev",
    ...
  },

As a side effect, this would also make the start modes use the same names as the config.xxx.js files.

oliversturm avatar Oct 02 '20 09:10 oliversturm

I think the same. It lasts from the beginning. yarn start much more intuitive for new users.

max-vasin avatar Oct 09 '20 12:10 max-vasin