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

add ability to clean up old files in generators #6472

Merged
merged 1 commit into from
Jan 30, 2017

Conversation

kellyselden
Copy link
Member

A response to #6469 (comment)

This will probably need an RFC because it introduces a new blueprint member oldFilesToRemove. A blueprint can override the array and give a list of old file names that the generator (ember init or your own custom blueprint) will clean up for you.

@stefanpenner
Copy link
Contributor

stefanpenner commented Nov 27, 2016

I like the idea, but ya as you mentioned we will likely need to bikeshed the API somewhat. Likely a small RFC to get that ball rolling would be appropriate.

@homu
Copy link
Contributor

homu commented Dec 18, 2016

☔ The latest upstream changes (presumably #6473) made this pull request unmergeable. Please resolve the merge conflicts.

@homu
Copy link
Contributor

homu commented Jan 4, 2017

☔ The latest upstream changes (presumably #6636) made this pull request unmergeable. Please resolve the merge conflicts.

@rwjblue
Copy link
Member

rwjblue commented Jan 29, 2017

@kellyselden - ember-cli/rfcs#92 has been merged, can you rebase this and update to get it passing CI?

@kellyselden
Copy link
Member Author

Anyone want a better name than oldFilesToRemove?

@ro0gr
Copy link
Contributor

ro0gr commented Jan 29, 2017

Anyone want a better name than oldFilesToRemove?

Just an option - obsoleteFiles?

@kellyselden
Copy link
Member Author

@ro0gr That could be confused with ignoredFiles IMO, something we already have. It doesn't say what happens to the obsolete files.

@ro0gr
Copy link
Contributor

ro0gr commented Jan 29, 2017

@kellyselden I've checked the meaning of the word obsolete(not an expert in English). In general it means something like:

No longer produced or used; out of date

Usually I tend to cleanup things of this kind 😃

Anyway I don't have strong opinion for the name here, just want to share an option.

@rwjblue
Copy link
Member

rwjblue commented Jan 29, 2017

I'd prefer:

  • filesToRemove
  • removeFiles
  • obsoleteFiles
  • dieDieDie

I'm generally not a fan of using "old" or "new" in names....

@kellyselden
Copy link
Member Author

filesToRemove has my vote.

@rwjblue
Copy link
Member

rwjblue commented Jan 30, 2017

@kellyselden - Sounds good, I'd say go ahead and update...

homu added a commit that referenced this pull request Jan 30, 2017
Revert changes removing `bower.json` from default blueprints.

This reverts commit be142aa, reversing changes made to b90f860.

This is being reverted due to user experience issues when the `bower.json` file is no longer part of the blueprint.

As things exist prior to a revert, any user upgrading from a version of ember-cli prior to 2.11 would never be instructed to update their `bower.json` to remove entries for `ember`, `ember-cli-shims`, etc.

To bring the changes being reverted back, we need to land the ability for a blueprint to indicate that a file should be deleted as part of the `ember init` process.  This was RFC'ed in ember-cli/rfcs#92 and the implementation is pending in #6472 and should hopefully land in 2.13 (current ember-cli#master branch).

This was discussed at the ember-cli meeting on 2017-01-26.
@kellyselden kellyselden changed the title WIP: add ability to clean up old files in generators add ability to clean up old files in generators Jan 30, 2017
@kellyselden
Copy link
Member Author

Rebased and changed to filesToRemove.

@kellyselden
Copy link
Member Author

@homu r+

@homu
Copy link
Contributor

homu commented Jan 30, 2017

📌 Commit 2cfb76e has been approved by kellyselden

@homu
Copy link
Contributor

homu commented Jan 30, 2017

⚡ Test exempted - status

@homu homu merged commit 2cfb76e into ember-cli:master Jan 30, 2017
ember-cli-canary-sync pushed a commit that referenced this pull request Jan 30, 2017
add ability to clean up old files in generators

A response to #6469 (comment)

This will probably need an RFC because it introduces a new blueprint member `oldFilesToRemove`. A blueprint can override the array and give a list of old file names that the generator (ember init or your own custom blueprint) will clean up for you.
@kellyselden kellyselden deleted the blueprint-file-remove branch January 30, 2017 20:21
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.

5 participants