Skip to content

Commit

Permalink
feat(cloudsmith): create plugin to allow us to set cloudsmith options
Browse files Browse the repository at this point in the history
Tool Kit will not allow you to declare options for plugins that don't
exist (to avoid the likely case that there was a typo), but we want to
declare Cloudsmith specific options that are used to generate CircleCI
config. Declare a barebones plugin to facilitate this.
  • Loading branch information
ivomurrell committed Dec 3, 2024
1 parent 3eaa79a commit fcc9e27
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 4 deletions.
22 changes: 18 additions & 4 deletions package-lock.json

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

1 change: 1 addition & 0 deletions plugins/circleci-deploy/.toolkitrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins:
- '@dotcom-tool-kit/circleci'
- '@dotcom-tool-kit/cloudsmith'

options:
hooks:
Expand Down
1 change: 1 addition & 0 deletions plugins/circleci-deploy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"license": "ISC",
"dependencies": {
"@dotcom-tool-kit/circleci": "^7.0.2",
"@dotcom-tool-kit/cloudsmith": "^0.1.0",
"tslib": "^2.3.1"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions plugins/cloudsmith/.toolkitrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version: 2
31 changes: 31 additions & 0 deletions plugins/cloudsmith/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "@dotcom-tool-kit/cloudsmith",
"version": "0.1.0",
"description": "",
"main": "lib",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "FT.com Platforms Team <[email protected]>",
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/financial-times/dotcom-tool-kit.git",
"directory": "plugins/cloudsmith"
},
"bugs": "https://github.com/financial-times/dotcom-tool-kit/issues",
"homepage": "https://github.com/financial-times/dotcom-tool-kit/tree/main/plugins/cloudsmith",
"files": [
"/lib",
".toolkitrc.yml"
],
"engines": {
"node": "18.x || 20.x",
"npm": "7.x || 8.x || 9.x || 10.x"
},
"peerDependencies": {
"dotcom-tool-kit": "4.x"
}
}

0 comments on commit fcc9e27

Please sign in to comment.