-
Notifications
You must be signed in to change notification settings - Fork 2k
Conversation
Replace variety of commands by npm commands. See meanjs#1258
Notes:
npm commands do support parameters, but it's kinda cumbersome (
So no need to run
|
"test:e2e": "gulp test:e2e", | ||
"test:watch": "gulp test:server:watch", | ||
"test:watch:onlyChanged": "gulp test:server:watch --onlyChanged", | ||
"prestart": "if [ ! -d node_modules ]; then npm install --quiet; fi", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too black box magic for me, I don't think we should do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilanbiala All the commands in general or just the prestart command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prestart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not opposed to it being in there, but don't see any reasons to have it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like people are gonna ask questions about it and it's gonna confuse beginners more than help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simison Go ahead and remove this command. There's really no benefit to using this vs. npm install. Plus, this doesn't cover the edge case where a module was added or failed to install and npm install needs to be ran again even though node_modules directory exists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codydaig 👍 done!
@ilanbiala valid point. It's a boilerplate project after all.
Also, can we move the bower flags into a bowerrc? |
Done. Looks like I can't put |
Looks a lot cleaner to me 👍 |
👍 |
We could simplify the If we add a script entry of |
@simison Any thoughts on my previous comment? |
Bump. Any progress with this PR? |
@codydaig @lirantal Any thoughts on my comment? |
@mleanos IMO, I would like to see the most common tasks put in the scripts section of package.json (ie. watch). Tasks that are only typically ran ocassionally like seeding of the database, can be left to the gulp/grunt file. |
@codydaig , guys this LGTM and I want to merge it in with a follow-up PR for updating the README and docs. I don't think we need to "simplify" it. It's not complex if it is documented and we get people used to use the @mleanos I get what you mean with making the WDYS? |
@lirantal That sounds good to me. Perhaps we could add the entry for Gulp, with the follow up PR with an explanation of this in the docs. In that case, this PR LGTM. |
@simison Do you see the commit that you referenced as a conflict, or an issue? From my perspective neither this commit, or the changes to the |
Replace variety of gulp/grunt/sh/npm commands with npm commands.
Todo:
See #1258 for discussion.