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

How to update a project? #68

Open
frranck opened this issue Jul 2, 2016 · 3 comments
Open

How to update a project? #68

frranck opened this issue Jul 2, 2016 · 3 comments
Labels

Comments

@frranck
Copy link

frranck commented Jul 2, 2016

Hi,
What is the procedure and what are the best practices to update an existing project ?
Would be good to have this addressed in the documentation.

@ghost
Copy link

ghost commented Jul 7, 2016

@frranck typically with git projects what you'd want to do is add the kit as an upstream and pull from it once in a while:

git remote add upstream https://github.com/futurice/pepperoni-app-kit.git
git pull upstream master

I personally find the method heavy-handed as it tends to cause a lot of merge conflicts. Thankfully this project is somewhat limited in scope, so rather than running an pull you may just want to cherry-pick the upstream changes you decide you want to have in your project.

For keeping your project up-to-date dependency-wise consider using npm-check-updates and/or a Greenkeeper integration with your repo.

@jevakallio
Copy link
Contributor

@frranck, thanks, great question. @jhabdas's advice is solid and following it should get you going.

There are a few things we want to do for improving the upgrade experience in the short/long term:

  1. Move all the "sample" code (Counter, Colors etc.) from the master branch of the repository into a separate "sample app" branch, so changes to them don't swim downstream to projects that want to upgrade latest changes and will have already deleted that code.
  2. Document the process of upgrading.
  3. Start versioning Pepperoni and providing release notes, so changes are easier to understand.
  4. (In the long term) create a command line pepperoni tool for scripting tasks like this.

Let's keep this issue open to track the upgrade experience improvements.

@frranck
Copy link
Author

frranck commented Jul 8, 2016

@jevakallio @jhabdas OK, thanks for your inputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants