Skip to content

Commit

Permalink
chore: configure dependabot (#603)
Browse files Browse the repository at this point in the history
Monitor all Javascript packages as normal, and also keep an eye on the
.NET projects (JSII Runtime & related integration tests), as well as
the python and Ruby runtimes.

It is not possible to monitor the Java runtime in the same way due to
the `pom.xml` files being generated as part of the build.

Had to replace references to "private" packages with local package
references, as dependabot requires this (necessary tooling otherwise
chokes on packages that do not resolve due to not being published).
  • Loading branch information
RomainMuller committed Jul 16, 2019
1 parent 6526469 commit 1315be5
Show file tree
Hide file tree
Showing 38 changed files with 473 additions and 232 deletions.
52 changes: 52 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
# See: https://dependabot.com/docs/config-file/
version: 1
update_configs:
# Dependabot will detect the lerna mono-repo and discover packages in there
- directory: /
package_manager: javascript
update_schedule: live
ignored_updates:
- match:
# Don't suggest upgrading @types/node to versions >= 9
dependency_name: '@types/node'
version_requirement: '>= 9'
- match:
# Don't suggest upgrading decamelize to version >= 2
dependency_name: decamelize
version_requirement: '>= 2'
- match:
# Don't suggest upgrading @types/decamelize to version >= 2
dependency_name: '@types/decamelize'
version_requirement: '>= 2'
version_requirement_updates: increase_versions

- directory: /packages/jsii-dotnet-jsonmodel/src/Amazon.JSII.JsonModel
package_manager: dotnet:nuget
update_schedule: daily

- directory: /packages/jsii-dotnet-jsonmodel/src/Amazon.JSII.JsonModel.UnitTests
package_manager: dotnet:nuget
update_schedule: daily

- directory: /packages/jsii-dotnet-runtime/src/Amazon.JSII.Runtime
package_manager: dotnet:nuget
update_schedule: daily

- directory: /packages/jsii-dotnet-runtime/src/Amazon.JSII.Runtime.UnitTests
package_manager: dotnet:nuget
update_schedule: daily

- directory: /packages/jsii-dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests
package_manager: dotnet:nuget
update_schedule: daily

- directory: /packages/jsii-python-runtime
package_manager: python
update_schedule: live
version_requirement_updates: auto

- directory: /packages/jsii-ruby-runtime/project
package_manager: ruby:bundler
update_schedule: live
version_requirement_updates: increase_versions
4 changes: 4 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ npm ci --global-style

export PATH=node_modules/.bin:$PATH

echo "============================================================================================="
echo "installing local links..."
node scripts/install-local-deps.js

echo "============================================================================================="
echo "boostrapping..."
lerna bootstrap --reject-cycles --ci
12 changes: 6 additions & 6 deletions packages/codemaker/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 0 additions & 36 deletions packages/jsii-build-tools/package-lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/jsii-calc-base-of-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"devDependencies": {
"jsii": "^0.14.0",
"jsii-build-tools": "^0.14.0"
"jsii-build-tools": "file:../jsii-build-tools"
},
"author": {
"name": "Amazon Web Services",
Expand Down
6 changes: 3 additions & 3 deletions packages/jsii-calc-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
},
"devDependencies": {
"jsii": "^0.14.0",
"jsii-build-tools": "^0.14.0"
"jsii-build-tools": "file:../jsii-build-tools"
},
"dependencies": {
"@scope/jsii-calc-base-of-base": "^0.14.0"
"@scope/jsii-calc-base-of-base": "file:../jsii-calc-base-of-base"
},
"peerDependencies": {
"@scope/jsii-calc-base-of-base": "^0.14.0"
"@scope/jsii-calc-base-of-base": "file:../jsii-calc-base-of-base"
},
"author": {
"name": "Amazon Web Services",
Expand Down
6 changes: 3 additions & 3 deletions packages/jsii-calc-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
},
"devDependencies": {
"jsii": "^0.14.0",
"jsii-build-tools": "^0.14.0"
"jsii-build-tools": "file:../jsii-build-tools"
},
"dependencies": {
"@scope/jsii-calc-base": "^0.14.0"
"@scope/jsii-calc-base": "file:../jsii-calc-base"
},
"peerDependencies": {
"@scope/jsii-calc-base": "^0.14.0"
"@scope/jsii-calc-base": "file:../jsii-calc-base"
},
"author": {
"name": "Amazon Web Services",
Expand Down
16 changes: 8 additions & 8 deletions packages/jsii-calc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@
"jsii-calc-bundled"
],
"dependencies": {
"@scope/jsii-calc-base": "^0.14.0",
"@scope/jsii-calc-base-of-base": "^0.14.0",
"@scope/jsii-calc-lib": "^0.14.0",
"jsii-calc-bundled": "^0.14.0"
"@scope/jsii-calc-base": "file:../jsii-calc-base",
"@scope/jsii-calc-base-of-base": "file:../jsii-calc-base-of-base",
"@scope/jsii-calc-lib": "file:../jsii-calc-lib",
"jsii-calc-bundled": "file:../jsii-calc-bundled"
},
"peerDependencies": {
"@scope/jsii-calc-base": "^0.14.0",
"@scope/jsii-calc-base-of-base": "^0.14.0",
"@scope/jsii-calc-lib": "^0.14.0"
"@scope/jsii-calc-base": "file:../jsii-calc-base",
"@scope/jsii-calc-base-of-base": "file:../jsii-calc-base-of-base",
"@scope/jsii-calc-lib": "file:../jsii-calc-lib"
},
"devDependencies": {
"jsii": "^0.14.0",
"jsii-build-tools": "^0.14.0"
"jsii-build-tools": "file:../jsii-build-tools"
},
"author": {
"name": "Amazon Web Services",
Expand Down
20 changes: 10 additions & 10 deletions packages/jsii-diff/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/jsii-diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@types/tar-fs": "^1.16.1",
"@types/yargs": "^13.0.0",
"jsii": "^0.14.0",
"jsii-build-tools": "^0.14.0",
"jsii-build-tools": "file:../jsii-build-tools",
"nodeunit": "^0.11.3",
"nyc": "^14.1.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/jsii-dotnet-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"package": "package-dotnet"
},
"dependencies": {
"jsii-dotnet-jsonmodel": "^0.14.0"
"jsii-dotnet-jsonmodel": "file:../jsii-dotnet-jsonmodel"
},
"devDependencies": {
"jsii-build-tools": "^0.14.0"
"jsii-build-tools": "file:../jsii-build-tools"
},
"author": {
"name": "Amazon Web Services",
Expand Down
2 changes: 1 addition & 1 deletion packages/jsii-dotnet-jsonmodel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"package": "package-dotnet"
},
"devDependencies": {
"jsii-build-tools": "^0.14.0",
"jsii-build-tools": "file:../jsii-build-tools",
"typescript": "^3.5.3"
},
"author": {
Expand Down
4 changes: 2 additions & 2 deletions packages/jsii-dotnet-runtime-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"test": "/bin/bash ./test.sh"
},
"devDependencies": {
"jsii-calc": "^0.14.0",
"jsii-dotnet-runtime": "^0.14.0",
"jsii-calc": "file:../jsii-calc",
"jsii-dotnet-runtime": "file:../jsii-dotnet-runtime",
"jsii-pacmak": "^0.14.0",
"typescript": "^3.5.3"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/jsii-dotnet-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"package": "package-dotnet"
},
"devDependencies": {
"jsii-build-tools": "^0.14.0",
"jsii-build-tools": "file:../jsii-build-tools",
"jsii-runtime": "^0.14.0",
"typescript": "^3.5.3"
},
"dependencies": {
"jsii-dotnet-jsonmodel": "^0.14.0"
"jsii-dotnet-jsonmodel": "file:../jsii-dotnet-jsonmodel"
},
"author": {
"name": "Amazon Web Services",
Expand Down
2 changes: 1 addition & 1 deletion packages/jsii-java-runtime-test/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ node ./user.xml.t.js > ./project/user.xml
node ./pom.xml.t.js > ./project/pom.xml

# build jsii-calc and all dep and output to MAVEN_REPO
jsii-pacmak node_modules/jsii-calc --outdir ${staging} -t java --recurse --verbose $@
jsii-pacmak ../jsii-calc --outdir ${staging} -t java --recurse --verbose $@
4 changes: 2 additions & 2 deletions packages/jsii-java-runtime-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"test": "cd project && mvn test --settings=user.xml"
},
"devDependencies": {
"jsii-calc": "^0.14.0",
"jsii-java-runtime": "^0.14.0",
"jsii-calc": "file:../jsii-calc",
"jsii-java-runtime": "file:../jsii-java-runtime",
"jsii-pacmak": "^0.14.0"
},
"author": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jsii-java-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"package": "package-java"
},
"devDependencies": {
"jsii-build-tools": "^0.14.0",
"jsii-build-tools": "file:../jsii-build-tools",
"jsii-runtime": "^0.14.0",
"typescript": "^3.5.3"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/jsii-kernel/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/jsii-kernel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"package": "package-js"
},
"devDependencies": {
"@scope/jsii-calc-base": "^0.14.0",
"@scope/jsii-calc-lib": "^0.14.0",
"@scope/jsii-calc-base": "file:../jsii-calc-base",
"@scope/jsii-calc-lib": "file:../jsii-calc-lib",
"@types/fs-extra": "^8.0.0",
"@types/node": "^8.10.50",
"@types/nodeunit": "^0.0.30",
"@types/tar": "^4.0.3",
"fs-extra": "^8.1.0",
"jsii-build-tools": "^0.14.0",
"jsii-calc": "^0.14.0",
"jsii-build-tools": "file:../jsii-build-tools",
"jsii-calc": "file:../jsii-calc",
"nodeunit": "^0.11.3",
"tslint": "^5.18.0",
"typescript": "^3.5.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/jsii-pacmak/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail
# embed the dotnet code generator program as a resource
dng="lib/targets/dotnet-generator"
mkdir -p ${dng}
rsync -av node_modules/jsii-dotnet-generator/cli/publish/ ${dng}/
rsync -av ../jsii-dotnet-generator/cli/publish/ ${dng}/

commit=${CODEBUILD_RESOLVED_SOURCE_VERSION:-}
# CODEBUILD_RESOLVED_SOURCE_VERSION is not defined (i.e. local build or CodePipeline build),
Expand Down
Loading

0 comments on commit 1315be5

Please sign in to comment.