Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

chore(scripts): rename the script to be more explicit #51

Merged
merged 2 commits into from Jan 18, 2017
Merged

chore(scripts): rename the script to be more explicit #51

merged 2 commits into from Jan 18, 2017

Conversation

RomainLanz
Copy link
Member

The current script name (dev & start) are too generic and can conflict if someone is using npm as a task launcher. Renaming them to serve & serve:dev is better in my opinion.

The current script name (`dev` & `start`) are too generic and can conflict if someone is using `npm` as a task launcher. Renaming them to `serve` & `serve:dev` is better in my opinion.
@@ -3,8 +3,8 @@
"version": "3.2.0",
"main": "server.js",
"scripts": {
"dev": "nodemon --watch app --watch bootstrap --watch config --watch .env -x node server.js",
"start": "node server.js",
"serve:dev": "nodemon --watch app --watch bootstrap --watch config --watch .env -x node server.js",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be nice to have fallbacks on dev and start with a warning. For example:

{
   "dev": "echo \"\\033[31mWARN: 'dev' will be depreciated soon. Instead use 'npm run serve:dev'\" && npm run serve:dev"
}

@RomainLanz
Copy link
Member Author

Done 👍

@thetutlage thetutlage merged commit 5c579cb into adonisjs:develop Jan 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants