Skip to content

npm post install message for users of v0.0.6#85

Merged
lukemelia merged 2 commits intoember-cli-deploy:masterfrom
achambers:70-npm-post-install-message
Mar 7, 2015
Merged

npm post install message for users of v0.0.6#85
lukemelia merged 2 commits intoember-cli-deploy:masterfrom
achambers:70-npm-post-install-message

Conversation

@achambers
Copy link
Copy Markdown
Member

This PR:

  • adds a MIGRATION_STEPS.md file containing migration instructions for users of v0.0.6.
  • adds an npm postinstall script that warns users upgrading from v0.0.6 and points them to the migration instructions
  • adds a utility function to detect if the user has defined config in the old location used by v0.0.6

Closes #69 and #70

@achambers achambers self-assigned this Mar 6, 2015
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure if there is a better way to get to the user's home directory or not but also, shouldn't this be in the following format to handle different platform path spacing (not sure if that matters in our current scenario or not)

path.join(__dirname, '..', '..', '..', '..', 'config', 'deploy', '*.js');

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeh, I'm not sure if there is a better way either mate. That's actually the main reason I put it out there to you guys.

Will make the change to the path.join.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm fairly certain that path.join will normalize the '/' for you, so there's no need to artificially break the segments up as separate arguments. And indeed, I confirmed this is so (at least on Win11/Node 0.10 and 0.12)

screen shot 2015-03-06 at 9 31 24 am

This message is fired only for users that seem to have config from
`v0.0.6`.  For these users the message will be displayed everytime they
run an ember-cli-deploy command
@achambers achambers force-pushed the 70-npm-post-install-message branch from 78dc9f1 to 82cca5f Compare March 7, 2015 19:02
lukemelia added a commit that referenced this pull request Mar 7, 2015
npm post install message for users of v0.0.6
@lukemelia lukemelia merged commit c2a0c3c into ember-cli-deploy:master Mar 7, 2015
@achambers achambers deleted the 70-npm-post-install-message branch March 7, 2015 19:10
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.

Upgrade instructions for users of achambers/ember-cli-deploy

4 participants