Giter VIP home page Giter VIP logo

Comments (3)

webpro avatar webpro commented on August 22, 2024

The package.json should only be small, e.g.:

{
  "name": "example",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "@release-it/conventional-changelog": "^1.1.0"
  }
}

The lockfile (package-lock.json) can be large indeed, like the number of directories in node_modules. All of this is handled by npm. The dependencies of this project also have sub-dependencies, etc.

from conventional-changelog.

hernanmd avatar hernanmd commented on August 22, 2024

Thank you, for now I added a minimal package.json as you suggested, then kept the hook

    "hooks": {
        "after:bump": "npx auto-changelog -p"
      },

and removed the plugin code

    "plugins": {
        "@release-it/conventional-changelog": {
          "preset": "cli",
          "infile": "CHANGELOG.md"
        }

In my release-it.json

I still need to understand the difference between

    "git": {
    ...
     "changelog": "npx auto-changelog --stdout --commit-limit false -u --template ./.changelog.hbs"
   }

and

   "hooks": {
        "after:bump": "npx auto-changelog -p"
      }

For a humble feedback I suggest to make clear in the docs for non-JS projects since not everybody work daily with JS and it could be not obvious what/where to add artifacts.

from conventional-changelog.

webpro avatar webpro commented on August 22, 2024

The git.changelog command should return the Git changelog and this will be used for two things:

  • Show on the command-line the changelog to help selecting a next version
  • Use it as release notes when doing a GitHub or GitLab release (unless e.g. github.releaseNotes is used to override this).

The hook command auto-changelog -p is executing auto-changelog to update the CHANGELOG.md file (which you could also do with the @release-it/conventional-changelog plugin by setting its infile option).

I've also updated the documentation a bit (https://github.com/release-it/release-it/blob/master/docs/github-releases.md#release-notes). Thanks!

from conventional-changelog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.