37.md (3719B)
1 # PR #37 Update dependencies to enable Greenkeeper 🌴 2 3 - **Status:** closed 4 - **Author:** @greenkeeper[bot] 5 - **Created:** 2017-06-02T08:07:55Z 6 - **Branch:** greenkeeper/initial → master 7 - **Closed:** 2018-04-09T13:51:27Z 8 - **Labels:** greenkeeper 9 - **Diff:** [37.diff](./37.diff) 10 11 --- 12 13 14 Let’s get started with automated dependency management for nBot :muscle: 15 16 17 18 This pull request **updates all your dependencies to their latest version**. Having them all up to date really is the best starting point. I will look out for further dependency updates and make sure to handle them in isolation and in real-time, **as soon as you merge this pull request**. 19 20 **I won’t start sending you further updates, unless you have merged this very pull request**. 21 22 23 24 --- 25 <details> 26 <summary>🙈 How to ignore certain dependencies</summary> 27 28 In case you can not, or do not want to update a certain dependency right now, you can of course just [change the `package.json` file back to your liking](https://github.com/MTRNord/nBot/edit/greenkeeper/initial/package.json). 29 30 Add a `greenkeeper.ignore` field to your `package.json`, containing a list of dependencies you don’t want to update right now. 31 32 ```js 33 // package.json 34 { 35 … 36 "greenkeeper": { 37 "ignore": [ 38 "package-names", 39 "you-want-me-to-ignore" 40 ] 41 } 42 } 43 ``` 44 </details> 45 <details> 46 <summary>👩💻 How to update this pull request</summary> 47 48 ```bash 49 # change into your repository’s directory 50 git fetch 51 git checkout greenkeeper/initial 52 npm install-test 53 # adapt your code, so it’s working again 54 git commit -m 'chore: adapt code to updated dependencies' 55 git push origin greenkeeper/initial 56 ``` 57 </details> 58 <details> 59 <summary>✨ How the updates will look like</summary> 60 61 As soon as you merge this pull request **I’ll create a branch for every dependency update**, with the new version applied. The branch creation should trigger your testing services to check the new version. Using the results of these tests I’ll try to open meaningful and helpful pull requests and issues, so your dependencies remain working and up-to-date. 62 63 ```diff 64 - "underscore": "^1.6.0" 65 + "underscore": "^1.7.0" 66 ``` 67 68 In the above example you can see an in-range update. `1.7.0` is included in the old `^1.6.0` range, because of the [caret `^` character ](https://docs.npmjs.com/misc/semver#ranges). 69 When the test services report success I’ll delete the branch again, because no action needs to be taken – everything is fine. 70 When there is a failure however, I’ll create an issue so you know about the problem immediately. 71 72 This way every single version update of your dependencies will either continue to work with your project, or you’ll get to know of potential problems immediately. 73 74 ```diff 75 - "lodash": "^3.0.0" 76 + "lodash": "^4.0.0" 77 ``` 78 79 In this example the new version `4.0.0` is not included in the old `^3.0.0` range. 80 For version updates like these – let’s call them “out of range” updates – you’ll receive a pull request. 81 82 Now **you no longer need to check for exciting new versions by hand** – I’ll just let you know automatically. 83 And the pull request will not only serve as a reminder to update. In case it passes your decent test suite that’s a strong reason to merge right away :shipit: 84 </details> 85 <details> 86 <summary>💁♂️ Not sure how things are going to work exactly?</summary> 87 88 There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html) and of course you may always [ask my humans](https://github.com/greenkeeperio/greenkeeper/issues/new). 89 </details> 90 91 --- 92 93 94 Good luck with your project and see you soon :sparkles: 95 96 Your [Greenkeeper](https://greenkeeper.io) Bot :palm_tree: 97 98