-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
94 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# FRSOURCE Tooling | ||
# FRSOURCE Toolkit | ||
|
||
A repository that holds configuration files for tooling used throughout the FRSOURCE organization. | ||
A repository that holds shared toolkit used throughout the FRSOURCE organization: | ||
|
||
- configuration files, | ||
- GitHub Actions scripts. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@frsource/eslint-config", | ||
"version": "1.0.0", | ||
"version": "0.0.0", | ||
"main": "index.mjs", | ||
"type": "module", | ||
"scripts": { | ||
|
@@ -18,13 +18,14 @@ | |
"peerDependencies": { | ||
"eslint": ">= 9" | ||
}, | ||
"homepage": "https://github.com/FRSOURCE/tooling/", | ||
"homepage": "https://github.com/FRSOURCE/toolkit/", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/FRSOURCE/tooling.git" | ||
"url": "git+https://github.com/FRSOURCE/toolkit.git", | ||
"directory": "packages/eslint" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/FRSOURCE/tooling/issues" | ||
"url": "https://github.com/FRSOURCE/toolkit/issues" | ||
}, | ||
"author": "Jakub Freisler <[email protected]>", | ||
"license": "MIT", | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@frsource/prettier-config", | ||
"version": "1.0.0", | ||
"version": "0.0.0", | ||
"main": "index.mjs", | ||
"type": "module", | ||
"scripts": { | ||
|
@@ -18,13 +18,14 @@ | |
"peerDependencies": { | ||
"eslint": ">= 9" | ||
}, | ||
"homepage": "https://github.com/FRSOURCE/tooling/", | ||
"homepage": "https://github.com/FRSOURCE/toolkit/", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/FRSOURCE/tooling.git" | ||
"url": "git+https://github.com/FRSOURCE/toolkit.git", | ||
"directory": "packages/prettier-config" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/FRSOURCE/tooling/issues" | ||
"url": "https://github.com/FRSOURCE/toolkit/issues" | ||
}, | ||
"author": "Jakub Freisler <[email protected]>", | ||
"license": "MIT", | ||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/release-it/.release-it.cjs → packages/release-it-config/.release-it.cjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
const { monorepoIndependent } = require("./index.cjs"); | ||
|
||
module.exports = monorepoIndependent({ | ||
name: "release-it", | ||
name: "release-it-config", | ||
buildCmd: "", // no build needed | ||
}); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
const nodePath = require("path"); | ||
|
||
/** | ||
* Configuration for independent package in monorepo workspace | ||
* @param {Object} options | ||
* @param {string} options.name name of the package in the monorepo, e.g. `my-package` | ||
* @param {string} [options.path=`packages/${options.name}`] path of the package relative to the monorepo root, without starting slash. Always use "/" as delimiter. Will default to `packages/${options.name}` | ||
* @param {string} [options.buildCmd="pnpm build"] command that should be used to build the package, defaults to `pnpm build` | ||
*/ | ||
module.exports = ({ | ||
name, | ||
path = `packages/${name}`, | ||
buildCmd = "pnpm build", | ||
}) => { | ||
if (path.startsWith("/")) path = path.substring(1); | ||
const nestingLevel = path.split("/").length; | ||
if (nodePath.sep !== "/") path = path.replaceAll("/", nodePath.sep); | ||
|
||
return { | ||
npm: { | ||
publishPath: "package-pack.tgz", | ||
}, | ||
git: { | ||
requireBranch: "main", | ||
requireCommits: true, | ||
requireCommitsFail: false, // if there are no new commits release-it will stop the release process, but without throwing and error | ||
requireCleanWorkingDir: true, | ||
commitsPath: ".", | ||
commitMessage: "chore: release ${npm.name} ${version}", | ||
tagName: "${npm.name}-v${version}", | ||
tagMatch: "${npm.name}-v[0-9]*.[0-9]*.[0-9]*", | ||
getLatestTagFromAllRefs: false, // https://github.com/release-it/release-it/blob/main/docs/git.md#use-all-refs-to-determine-latest-tag | ||
}, | ||
github: { | ||
release: true, | ||
comments: { | ||
submit: true, | ||
issue: | ||
":rocket: _This issue has been resolved in ${npm.name}@${version}. See [${releaseName}](${releaseUrl}) for release notes._", | ||
pr: ":rocket: _This pull request is included in ${npm.name}@${version}. See [${releaseName}](${releaseUrl}) for release notes._", | ||
}, | ||
}, | ||
plugins: { | ||
"@release-it/conventional-changelog": { | ||
gitRawCommitsOpts: { | ||
path, | ||
}, | ||
}, | ||
}, | ||
hooks: { | ||
"before:bump": buildCmd, | ||
"after:bump": `pnpm install && git add ${"../".repeat( | ||
nestingLevel | ||
)}pnpm-lock.yaml`, | ||
"before:npm:release": "mv $(pnpm pack) package-pack.tgz", | ||
"after:npm:release": "rm package-pack.tgz", | ||
}, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
{ | ||
"name": "@frsource/release-it-config", | ||
"version": "1.0.0", | ||
"main": "dist/index.cjs", | ||
"types": "dist/index.d.ts", | ||
"version": "0.0.0", | ||
"main": "index.cjs", | ||
"type": "module", | ||
"scripts": { | ||
"release": "release-it" | ||
}, | ||
"dependencies": { | ||
"@release-it/bumper": "^6.0.1", | ||
"@release-it/conventional-changelog": "^8.0.1" | ||
}, | ||
"devDependencies": { | ||
|
@@ -17,13 +15,14 @@ | |
"peerDependencies": { | ||
"release-it": ">= 17" | ||
}, | ||
"homepage": "https://github.com/FRSOURCE/tooling/", | ||
"homepage": "https://github.com/FRSOURCE/toolkit/", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/FRSOURCE/tooling.git" | ||
"url": "git+https://github.com/FRSOURCE/toolkit.git", | ||
"directory": "packages/release-it-config" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/FRSOURCE/tooling/issues" | ||
"url": "https://github.com/FRSOURCE/toolkit/issues" | ||
}, | ||
"author": "Jakub Freisler <[email protected]>", | ||
"license": "MIT", | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.