Coder Social home page Coder Social logo

Comments (17)

svnlto avatar svnlto commented on July 17, 2024

yes, yes and yes. will be looking at integrating this. If we are going for this tho, we really need to pay attention to semver tho ;) /cc @janl @gr2m @caolan

from discussion.

janl avatar janl commented on July 17, 2024

like it.

from discussion.

Acconut avatar Acconut commented on July 17, 2024

Maybe use a grunt plugin? https://github.com/vojtajina/grunt-bump

from discussion.

svnlto avatar svnlto commented on July 17, 2024

@Acconut we use this in hoodie.js not a fan of it, also completely detached from testing / integration tests.

from discussion.

Acconut avatar Acconut commented on July 17, 2024

Since there have been two issues with hoodie-cli which have been fixed in the repo but not been pushed to npm: Any progress on this?

from discussion.

svnlto avatar svnlto commented on July 17, 2024

This wouldn't have fixed the issue as we'd be relying on tags. Which, creating tags needs about the same amount of work as running npm publish

from discussion.

Acconut avatar Acconut commented on July 17, 2024

Ok, that's a good point.

from discussion.

svnlto avatar svnlto commented on July 17, 2024

Let's see how this pans out next time we add a tag.

from discussion.

Acconut avatar Acconut commented on July 17, 2024

Nice, πŸ‘

from discussion.

svnlto avatar svnlto commented on July 17, 2024

Somewhat related. hoodiehq/hoodie-server#257

from discussion.

boennemann avatar boennemann commented on July 17, 2024

This issue is related to hoodiehq/hoodie-server#257, hoodiehq/hoodie#218 and vojtajina/grunt-bump#47 but it's hard to discuss one and the same thing in 3 different spots w/o confusion so I'll try to cover everything related to automated versioning & releases here.

There is consent that versions should be released in a consistent and automated way, so here is my suggested workflow.

grunt-bump

Let grunt-bump take care of the version numbers and a tagged commit.

The concerns regarding grunt-bump are no longer valid, as it is possible (now?) to manipulate and add files between the version bump and the commit. Demo from the docs:

$ grunt bump-only:minor
$ grunt changelog
$ grunt bump-commit

creating tags needs about the same amount of work as running npm publish

I disagree here, because grunt bump also takes care of bower.json or source files. Also it offers an abstraction layer for version numbers with the :major, :minor and :patch flags, so there is even less thinking (read inconsistencies) involved.

I'd configure grunt-bump to automatically push to origin, so there is no way to forget the --tags flag, while doing it yourself.

TravisCI npm deploy

364164f0e7e2aeee177d0064b0ed1e2514ae7eaf is already perfect. What I like about the Travis deploy hook, is that there is no way to accidentally publish a failing build.

Changelog

In my opinion a changelog should come with every release. The easiest way is to generate it from the commit messages, but that requires commit message conventions. I know there are already some in place, but the excellent tools the angular team provides are worth the switch.

type(scope): message
e.g.
feat(payments): add stripe

  1. conventions doc
  2. pre-commit validation
  3. changelog generator

To v or not to v

Tags aren't necessarily version numbers, so the added unambiguity of a v prefix is a good thing. Can you please elaborate why you'd ditch them?

If there's consent about these things I can take care of implementing them across repos, but first some more discussion \o/

from discussion.

gr2m avatar gr2m commented on July 17, 2024

@boennemann thanks for taking the time and putting it all together! Regarding To v or not to v – I don't care what we do, as long as it's consistent. I have a preference like all of us, but if you're willing to take the responsibility to setup all the things (grunt task, changelog, docs), just go ahead and choose whatever you like, or what is mostly used right now in the repositories.

Thoughts? @caolan @janl @zoepage @svnlto

from discussion.

svnlto avatar svnlto commented on July 17, 2024

thanks for taking the time and putting it all together!

Just as an FYI:
npm version {major|minor|patch} adds the v prefix by default..

from discussion.

janl avatar janl commented on July 17, 2024

+1

On 13.05.2014, at 00:42, Stephan BΓΆnnemann [email protected] wrote:

This issue is related to hoodiehq/hoodie-server#257, hoodiehq/hoodie#218 and vojtajina/grunt-bump#47 but it's hard to discuss one and the same thing in 3 different spots w/o confusion so I'll try to cover everything related to automated versioning & releases here.

There is consent that versions should be released in a consistent and automated way, so here is my suggested workflow.

grunt-bump

Let grunt-bump take care of the version numbers and a tagged commit.

The concerns regarding grunt-bump are no longer valid, as it is possible (now?) to manipulate and add files between the version bump and the commit. Demo from the docs:

$ grunt bump-only:minor
$ grunt changelog
$ grunt bump-commit
creating tags needs about the same amount of work as running npm publish

I disagree here, because grunt bump also takes care of bower.json or source files. Also it offers an abstraction layer for version numbers with the :major, :minor and :patch flags, so there is even less thinking (read inconsistencies) involved.

I'd configure grunt-bump to automatically push to origin, so there is no way to forget the --tags flag, while doing it yourself.

TravisCI npm deploy

364164f is already perfect. What I like about the Travis deploy hook, is that there is no way to accidentally publish a failing build.

Changelog

In my opinion a changelog should come with every release. The easiest way is to generate it from the commit messages, but that requires commit message conventions. I know there are already some in place, but the excellent tools the angular team provides are worth the switch.

type(scope): message
e.g.
feat(payments): add stripe

conventions doc
pre-commit validation
changelog generator
To v or not to v

Tags aren't necessarily version numbers, so the added unambiguity of a v prefix is a good thing. Can you please elaborate why you'd ditch them?

If there's consent about these things I can take care of implementing them across repos, but first some more discussion \o/

β€”
Reply to this email directly or view it on GitHub.

from discussion.

zoepage avatar zoepage commented on July 17, 2024

+1

thank you @boennemann for doing this! <3

from discussion.

boennemann avatar boennemann commented on July 17, 2024

So I'll just interpret this as a "go for it".

I will start w/ hoodie-cli so we can discuss details and then apply it to the rest of the repos.

Fun fact: There is a defined process already: https://github.com/hoodiehq/hoodie.js/blob/master/CONTRIBUTING.md#releasing-a-new-version

from discussion.

gr2m avatar gr2m commented on July 17, 2024

Excellent! Thanks Stephan!

from discussion.

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.