Commit Graph

31 Commits (v10.17.7)

Author SHA1 Message Date
Rhys Arkins 8ea800dce0
fix: drop “fix devDependencies” customisation () 2017-11-19 06:32:06 +01:00
Rhys Arkins 804d7ba955 refactor: don't cache lock files ()
* refactor: don’t store yarn.lock content in packageFile

* chore: don’t log full lockfile

* refactor: don’t save package-lock.json

* update tests
2017-11-17 14:53:29 +01:00
Rhys Arkins 46f8dd751d
refactor: resolve package files in parallel ()
Speeds up monorepos substantially
2017-11-17 06:06:06 +01:00
Rhys Arkins f0b094b006
feat: use persistent cache for npm registry queries ()
This PR refactors the npm registry code to use `make-fetch-happen` instead of got. Additionally, it will use `cacache` for a disk-based caching solution.
2017-11-13 15:08:30 +01:00
Rhys Arkins 6d17d4a58d
fix: only ignore monorepo packages if matching glob ()
Previously, packages within a workspace or lerna project were ignores across the entire repo. Now, they are only ignored within package files that exist in the same lerna project or yarn workspace.

Closes 
2017-11-12 10:16:46 +01:00
Rhys Arkins ce88c32f94
refactor: drop {{#if isGitHub}} from templates ()
Pull Request and PR are already search/replaced in JS code for GitLab.
2017-11-12 07:22:13 +01:00
Rhys Arkins 28a7ea7193
feat: enable Docker minor and patch tag upgrades () 2017-11-10 13:11:51 +01:00
Rhys Arkins 51cde5d03f
feat: multipleMajorPrs ()
With this PR, Renovate will default to raising only one major PR at a time. e.g. if you have Webpack 1.x then you will get only one major PR for webpack v3 and not also for v2. set multipleMajorPrs=true to get multiple.

Closes 
2017-11-10 04:57:07 +01:00
Rhys Arkins c5c6a55c1a
fix: docker separateMajorReleases and groupName ()
Bring docker config support up to npm support.
2017-11-09 20:53:25 +01:00
Rhys Arkins 53b6848061
fix: don’t upgrade docker from unstable to new major unstable ()
Before, if current node version was 7 then Renovate would propose upgrades to versions 8 and 9. However, like with npm we should allow upgrades to unstable only if it’s the same major version or if ignoreUnstable is explicitly set to false.
2017-11-09 10:15:08 +01:00
Rhys Arkins 4cebc7ad64
feat: unstablePattern ()
This adds a configuration option unstablePattern - used only by Docker currently - that can be used to define a regex patternt to identify “unstable” versions.

Closes 
2017-11-08 21:57:34 +01:00
Rhys Arkins 0251fad68b
fix: allow multiple whitespace in dockerfile from line () 2017-11-08 14:47:52 +01:00
Rhys Arkins f044aca321 refactor: streamline platform file operations ()
Remove original getFile, getFileContent, and getFileJson and replace with getFile (which used to be getFileContent.. shortened now for convenience). Also remove unused getSubdirectories functions.
2017-11-08 12:23:32 +01:00
Rhys Arkins 8c479071fd
refactor: use global logger () 2017-11-08 06:44:03 +01:00
Rhys Arkins f8be45055a
refactor: remove config.api and use platform dispatcher () 2017-11-07 11:46:10 +01:00
Rhys Arkins 35e83b2211
fix: split registry and namespace correctly () 2017-11-06 13:19:41 +01:00
Rhys Arkins 1af60f5158
feat: Support 'AS' names in Dockerfile from line ()
This PR adds support for 'AS' names in Dockerfiles. e.g. `FROM node:8 AS base`. It also adds logic to detect and ignore - for now - any image sources from custom registries.
2017-11-06 11:36:06 +01:00
Rhys Arkins 76a680b98d
fix: add check for Dockerfile content before parsing () 2017-11-05 14:23:20 +01:00
Rhys Arkins edfca74ede
refactor: make common platform public API ()
Refactors file system of platforms and adds test to ensure GitHub and GitLab have same module.exports signatures.
2017-11-05 08:18:20 +01:00
Rhys Arkins f4d0fea6ae
fix: use colon not at when describing existing docker image:tag () 2017-11-05 06:17:16 +01:00
Rhys Arkins 80bed05146
feat: return result from renovateRepository
Repository logic code has been rearranged for better logic and file separation.

Closes 
2017-11-05 05:45:49 +01:00
Rhys Arkins 9769f5a5db
refactor: detectPackageFiles returns packageFiles not config () 2017-11-03 09:25:18 +01:00
Rhys Arkins 9c1b7d78cd
refactor: move monorepos logic to npm manager ()
* refactor: move monorepos logic to npm manager

* fix test
2017-11-03 09:06:42 +01:00
Rhys Arkins aada8f0b73 feat: support globs in ignorePaths ()
Renovate will now check ignorePaths values for either (a) a string match, or (b) glob pattern. e.g. a string of ‘node_modules/‘ will ignore ‘node_modules/foo/package.json’ and ‘backend/node_modules/foo/package.json’ but it will also ignore ‘not_node_modules/foo/package.json` too. Therefore a blog pattern of `**/node_modules/**` is superior.

Closes 

BREAKING CHANGE: ignorePaths now supports globs and may match more than before, but that’s probably a good thing.
2017-11-01 13:13:55 +01:00
Rhys Arkins f3273618b2
fix: add uniqueness to docker-digest pr title ()
Use first 6 chars of sha256 digest in PR title to ensure uniqueness and not block future digest updates.

Closes 
2017-10-27 23:33:55 +02:00
Rhys Arkins 31e7c8a881 refactor: move languages from branch worker to manager () 2017-10-25 06:48:08 +02:00
Rhys Arkins 7d06bebe2e refactor: push detect dockerfiles to manager ()
* refactor platform

* refactor detect package files

* fix

* refactor npm detect

* refactor meteor detect

* refactor: move detect package files completely to manager

* update snapshots
2017-10-25 06:00:07 +02:00
Rhys Arkins da1ded5344 refactor: move more package worker logic to manager 2017-10-24 15:46:47 +02:00
Rhys Arkins 3b180aa679 refactor: move workers/package/npm to manager/npm/package 2017-10-24 15:46:47 +02:00
Rhys Arkins d134d8b38e refactor: move workers/package/docker to manager/docker/package 2017-10-24 15:46:47 +02:00
Rhys Arkins 3960da6e38 refactor: use manager subdirectory for grouping () 2017-10-24 13:12:44 +02:00