From 9518ea93835758e005fb0137156f33575ec3ddc1 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Thu, 28 Nov 2024 14:14:49 +0000 Subject: [PATCH] fix: add coc --- CODE_OF_CONDUCT.md | 3 +++ src/check-project/check-licence-files.js | 1 + src/check-project/files/CODE_OF_CONDUCT.md | 3 +++ src/check-project/files/gitignore | 2 ++ 4 files changed, 9 insertions(+) create mode 100644 CODE_OF_CONDUCT.md create mode 100644 src/check-project/files/CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..51dab18f4 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,3 @@ +# Contributor Code of Conduct + +The `js-libp2p` project follows the [`IPFS Community Code of Conduct`](https://github.com/ipfs/community/blob/master/code-of-conduct.md) diff --git a/src/check-project/check-licence-files.js b/src/check-project/check-licence-files.js index 99a9fcb31..c227cf498 100644 --- a/src/check-project/check-licence-files.js +++ b/src/check-project/check-licence-files.js @@ -29,4 +29,5 @@ export async function checkLicenseFiles (projectDir) { await ensureFileNotPresent(projectDir, 'LICENSE') await ensureFileHasContents(projectDir, 'LICENSE-APACHE') await ensureFileHasContents(projectDir, 'LICENSE-MIT') + await ensureFileHasContents(projectDir, 'CODE_OF_CONDUCT.md') } diff --git a/src/check-project/files/CODE_OF_CONDUCT.md b/src/check-project/files/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..51dab18f4 --- /dev/null +++ b/src/check-project/files/CODE_OF_CONDUCT.md @@ -0,0 +1,3 @@ +# Contributor Code of Conduct + +The `js-libp2p` project follows the [`IPFS Community Code of Conduct`](https://github.com/ipfs/community/blob/master/code-of-conduct.md) diff --git a/src/check-project/files/gitignore b/src/check-project/files/gitignore index 7ad9e674e..ab77e515c 100644 --- a/src/check-project/files/gitignore +++ b/src/check-project/files/gitignore @@ -7,3 +7,5 @@ node_modules package-lock.json yarn.lock .vscode +.tmp-compiled-docs +tsconfig-doc-check.aegir.json \ No newline at end of file