Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update --dry-run, add --skip-npm and --skip-bower #1205

Merged
merged 1 commit into from
Jun 30, 2014

Conversation

jgwhite
Copy link
Contributor

@jgwhite jgwhite commented Jun 30, 2014

Previously --dry-run meant a couple different things.

In the init command it meant “don’t run npm install or bower install”.
In the generate command it meant “don’t overwrite any existing files”.

This patch changes the behaviour of the flag in both places.

--dry-run now only ever means “don’t write any files”

Two new flags are introduced for new and init:

--skip-npm
--skip-bower

Their behaviour is hopefully self-explanatory.

Addresses #1199

Previously --dry-run meant a couple different things.

In the `init` command it meant “don’t run npm install or bower install”.
In the `generate` command it meant “don’t overwrite any existing files”.

This patch changes the behaviour of the flag in both places.

--dry-run now only ever means “don’t write *any* files”

Two new flags are introduced for `new` and `init:

--skip-npm
--skip-bower

Their behaviour is hopefully self-explanatory.

Addresses ember-cli#1199
@jgwhite
Copy link
Contributor Author

jgwhite commented Jun 30, 2014

@rondale-sc would be great to get your eyes on this patch too.

@@ -37,7 +37,7 @@ describe('Acceptance: ember generate', function() {
});

function initApp() {
return ember(['init', 'my-app', '--dry-run']);
return ember(['init', 'my-app', '--skip-npm', '--skip-bower']);
Copy link
Member

Choose a reason for hiding this comment

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

Should we also skip npm here?

Copy link
Member

Choose a reason for hiding this comment

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

I am apparently blind (or shouldn't comment on issues until after coffee). This does exactly what I asked above.

@rwjblue
Copy link
Member

rwjblue commented Jun 30, 2014

Looks good! This inconsistency had pestered me before, thanks for tackling it.

I only had one small question, but other than that I'm 👍.

rwjblue added a commit that referenced this pull request Jun 30, 2014
Update --dry-run, add --skip-npm and --skip-bower
@rwjblue rwjblue merged commit 50f45eb into ember-cli:master Jun 30, 2014
@rwjblue rwjblue mentioned this pull request Jun 30, 2014
@rondale-sc
Copy link
Contributor

👍

@jgwhite jgwhite deleted the blueprint-dry-run-patch branch June 30, 2014 13:22
This was referenced Jul 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants