diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-06-26 12:37:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-26 12:37:31 +0200 |
commit | dfe476b1a55a5e6043ab4eba2a78bb3a37ddda09 (patch) | |
tree | 12540732ab96df9c69fc39b0b7a513af98dfad9d /pkgs | |
parent | 168b1ff7269d25b3a42d95d5c3e4387346a66170 (diff) | |
parent | 6954a8acb9ab6e46c77ede9d8f4b7ea86a0e8684 (diff) |
Merge pull request #322504 from pyrox0/auto-changelog-init
auto-changelog: move out of node-packages
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/au/auto-changelog/package.json | 100 | ||||
-rw-r--r-- | pkgs/by-name/au/auto-changelog/package.nix | 31 | ||||
-rw-r--r-- | pkgs/development/node-packages/aliases.nix | 1 | ||||
-rw-r--r-- | pkgs/development/node-packages/node-packages.json | 1 | ||||
-rw-r--r-- | pkgs/development/node-packages/node-packages.nix | 36 |
5 files changed, 132 insertions, 37 deletions
diff --git a/pkgs/by-name/au/auto-changelog/package.json b/pkgs/by-name/au/auto-changelog/package.json new file mode 100644 index 0000000000000..573119c376c56 --- /dev/null +++ b/pkgs/by-name/au/auto-changelog/package.json @@ -0,0 +1,100 @@ +{ + "name": "auto-changelog", + "version": "2.4.0", + "description": "Command line tool for generating a changelog from git tags and commit history", + "main": "./src/index.js", + "bin": { + "auto-changelog": "./src/index.js" + }, + "engines": { + "node": ">=8.3" + }, + "scripts": { + "lint": "standard --verbose | snazzy", + "lint-fix": "standard --fix", + "lint-markdown": "markdownlint README.md test/data/*.md", + "test": "cross-env NODE_ENV=test mocha -r @babel/register test", + "test-coverage": "cross-env NODE_ENV=test nyc mocha test", + "report-coverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json", + "preversion": "npm run lint && npm run test", + "version": "node src/index.js --package && git add CHANGELOG.md", + "generate-test-data": "cross-env NODE_ENV=test node scripts/generate-test-data.js" + }, + "author": "Pete Cook <pete@cookpete.com> (https://github.com/cookpete)", + "homepage": "https://github.com/CookPete/auto-changelog", + "repository": { + "type": "git", + "url": "https://github.com/CookPete/auto-changelog.git" + }, + "bugs": { + "url": "https://github.com/CookPete/auto-changelog/issues" + }, + "keywords": [ + "auto", + "automatic", + "changelog", + "change", + "log", + "generator", + "git", + "commit", + "commits", + "history" + ], + "license": "MIT", + "dependencies": { + "commander": "^7.2.0", + "handlebars": "^4.7.7", + "node-fetch": "^2.6.1", + "parse-github-url": "^1.0.2", + "semver": "^7.3.5" + }, + "devDependencies": { + "@babel/core": "^7.14.3", + "@babel/register": "^7.13.16", + "babel-plugin-istanbul": "^6.0.0", + "babel-plugin-rewire": "^1.2.0", + "chai": "^4.3.4", + "codecov": "^3.8.2", + "cross-env": "^7.0.3", + "markdownlint-cli": "^0.30.0", + "mocha": "^9.2.0", + "nyc": "^15.1.0", + "snazzy": "^9.0.0", + "standard": "^16.0.3" + }, + "babel": { + "env": { + "test": { + "plugins": [ + "istanbul", + "rewire" + ] + } + } + }, + "standard": { + "ignore": [ + "test/data/" + ] + }, + "nyc": { + "all": true, + "include": "src", + "exclude": "src/index.js", + "sourceMap": false, + "instrument": false, + "report-dir": "./coverage", + "temp-dir": "./coverage/.nyc_output", + "require": [ + "@babel/register" + ], + "reporter": [ + "text", + "html" + ] + }, + "auto-changelog": { + "breakingPattern": "Breaking change" + } +} diff --git a/pkgs/by-name/au/auto-changelog/package.nix b/pkgs/by-name/au/auto-changelog/package.nix new file mode 100644 index 0000000000000..44a4273b9042a --- /dev/null +++ b/pkgs/by-name/au/auto-changelog/package.nix @@ -0,0 +1,31 @@ +{ + lib, + mkYarnPackage, + fetchYarnDeps, + fetchFromGitHub +}: mkYarnPackage rec { + pname = "auto-changelog"; + version = "2.4.0"; + + src = fetchFromGitHub { + owner = "cookpete"; + repo = "auto-changelog"; + rev = "v${version}"; + hash = "sha256-qgJ/TVyViMhISt/EfCWV7XWQLXKTeZalGHFG905Ma5I="; + }; + + packageJSON = ./package.json; + offlineCache = fetchYarnDeps { + yarnLock = "${src}/yarn.lock"; + hash = "sha256-rP/Xt0txwfEUmGZ0CyHXSEG9zSMtv8wr5M2Na+6PbyQ="; + }; + + meta = { + description = "Command line tool for generating a changelog from git tags and commit history"; + homepage = "https://github.com/cookpete/auto-changelog"; + changelog = "https://github.com/cookpete/auto-changelog/blob/master/CHANGELOG.md"; + license = lib.licenses.mit; + mainProgram = "auto-changelog"; + maintainers = with lib.maintainers; [ pyrox0 ]; + }; +} diff --git a/pkgs/development/node-packages/aliases.nix b/pkgs/development/node-packages/aliases.nix index 7e32922c981f3..815197aba46e3 100644 --- a/pkgs/development/node-packages/aliases.nix +++ b/pkgs/development/node-packages/aliases.nix @@ -57,6 +57,7 @@ mapAliases { alloy = pkgs.titanium-alloy; # added 2023-08-17 antennas = pkgs.antennas; # added 2023-07-30 inherit (pkgs) asar; # added 2023-08-26 + inherit (pkgs) auto-changelog; # added 2024-06-25 inherit (pkgs) aws-azure-login; # added 2023-09-30 balanceofsatoshis = pkgs.balanceofsatoshis; # added 2023-07-31 inherit (pkgs) bash-language-server; # added 2024-06-07 diff --git a/pkgs/development/node-packages/node-packages.json b/pkgs/development/node-packages/node-packages.json index 6794c3d18cd9d..c19de2e230304 100644 --- a/pkgs/development/node-packages/node-packages.json +++ b/pkgs/development/node-packages/node-packages.json @@ -21,7 +21,6 @@ , "alex" , "audiosprite" , "autoprefixer" -, "auto-changelog" , "aws-cdk" , "awesome-lint" , "bower" diff --git a/pkgs/development/node-packages/node-packages.nix b/pkgs/development/node-packages/node-packages.nix index de6c35a2c0f1f..de2d6d5765872 100644 --- a/pkgs/development/node-packages/node-packages.nix +++ b/pkgs/development/node-packages/node-packages.nix @@ -63492,42 +63492,6 @@ in bypassCache = true; reconstructLock = true; }; - auto-changelog = nodeEnv.buildNodePackage { - name = "auto-changelog"; - packageName = "auto-changelog"; - version = "2.4.0"; - src = fetchurl { - url = "https://registry.npmjs.org/auto-changelog/-/auto-changelog-2.4.0.tgz"; - sha512 = "vh17hko1c0ItsEcw6m7qPRf3m45u+XK5QyCrrBFViElZ8jnKrPC1roSznrd1fIB/0vR/zawdECCRJtTuqIXaJw=="; - }; - dependencies = [ - sources."commander-7.2.0" - sources."encoding-0.1.13" - sources."handlebars-4.7.8" - sources."iconv-lite-0.6.3" - sources."minimist-1.2.8" - sources."neo-async-2.6.2" - sources."node-fetch-2.7.0" - sources."parse-github-url-1.0.2" - sources."safer-buffer-2.1.2" - sources."semver-7.6.2" - sources."source-map-0.6.1" - sources."tr46-0.0.3" - sources."uglify-js-3.18.0" - sources."webidl-conversions-3.0.1" - sources."whatwg-url-5.0.0" - sources."wordwrap-1.0.0" - ]; - buildInputs = globalBuildInputs; - meta = { - description = "Command line tool for generating a changelog from git tags and commit history"; - homepage = "https://github.com/CookPete/auto-changelog"; - license = "MIT"; - }; - production = true; - bypassCache = true; - reconstructLock = true; - }; aws-cdk = nodeEnv.buildNodePackage { name = "aws-cdk"; packageName = "aws-cdk"; |