From 919e9e775f7204a69cf08fa294df29ebfc884fd0 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 10 Oct 2026 11:13:44 +0000 Subject: [PATCH] add missing LICENSE.txt and npmx.dev badges --- LICENSE.txt | 21 +++++++++++++++++++++ README.md | 2 +- src/index.test.ts | 3 ++- src/index.ts | 29 ++++++++++++++++++++++++++--- 4 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 LICENSE.txt diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..eefc530 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Mopsgamer + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 2217080..65b57a8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
-# @view-ignored/create [![npm-version](https://img.shields.io/npm/v/view-ignored.svg?label=view-ignored)](https://www.npmjs.com/package/view-ignored) [![wiki](https://img.shields.io/badge/docs-wiki-blue)](https://github.com/view-ignored/view-ignored/wiki/How-to-create-plugin-public-npm-package) +# @view-ignored/create [![version](https://npmx.dev/api/registry/badge/version/@view-ignored/create)](https://npmx.dev/package/@view-ignored/create) [![view-ignored](https://npmx.dev/api/registry/badge/version/view-ignored)](https://npmx.dev/package/view-ignored) [![wiki](https://img.shields.io/badge/docs-wiki-blue)](https://github.com/view-ignored/view-ignored/wiki/How-to-create-plugin-public-npm-package) diff --git a/src/index.test.ts b/src/index.test.ts index 5da44f2..ecee5b9 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -48,6 +48,7 @@ describe("@view-ignored/create generator", () => { ".release-it.json", "bunfig.toml", "README.md", + "LICENSE.txt", "CHANGELOG.md", ".vscode/extensions.json", ".vscode/settings.json", @@ -257,5 +258,5 @@ describe("@view-ignored/create generator", () => { if (unformattedDetails.length > 0) { expect.unreachable(unformattedDetails.join("\n\n")) } - }) + }, 30000) }) diff --git a/src/index.ts b/src/index.ts index 907bdcd..8b344ca 100644 --- a/src/index.ts +++ b/src/index.ts @@ -583,7 +583,7 @@ jobs: fi ` - const readmeContent = `# ${packageName} + const readmeContent = `# ${packageName} [![version](https://npmx.dev/api/registry/badge/version/${packageName})](https://npmx.dev/package/${packageName}) [![view-ignored](https://npmx.dev/api/registry/badge/version/view-ignored)](https://npmx.dev/package/view-ignored) view-ignored target plugin for ${targetName}. @@ -604,7 +604,29 @@ const ctx = await scan({ target: ${functionName}() }) ## License -MIT License. +MIT License. See [LICENSE.txt](LICENSE.txt) for details. +` + const licenseTxtContent = `MIT License + +Copyright (c) 2024 Mopsgamer + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. ` const changelogContent = `# Changelog @@ -630,6 +652,7 @@ and this project adheres to ".vscode/extensions.json": vscodeExtensionsJsonContent, ".vscode/settings.json": vscodeSettingsJsonContent, "README.md": readmeContent, + "LICENSE.txt": licenseTxtContent, "CHANGELOG.md": changelogContent, "bunfig.toml": bunfigTomlContent, "package.json": packageJsonContent, @@ -651,7 +674,7 @@ and this project adheres to if (install) { const o = { cwd: outputDir, stdio: "inherit" } as const - execSync("bun install", o) + execSync("bun install --prefer-offline", o) execSync("bun run prod", o) }