coffee-script icon indicating copy to clipboard operation
coffee-script copied to clipboard

A packager/release tool

Open maxtaco opened this issue 9 years ago • 10 comments

The tool should be written in iced, meaning we assume that we currently have a global working version of iced, which isn't too bad an assumption.

There should be one additional source file which specifies the iced version on top of the current CoffeeScript version forked from master. From this version, we can produce the iced version, which is:

<100*CoffeeScript.Major + CoffeeScript.Minor>. <CoffeeScript.Patch> . <IcedCoffeeScript.Patch>

The script should:

  • Make a release branch with the release version
  • Compile all of the sources
  • Commit
  • Run tests
  • Tag release
  • Run npm publish

maxtaco avatar May 02 '16 12:05 maxtaco

So the compiled release files will be in the same branch, but we will only commit them for the release? Kind of like it has been done so far. Do I understand this correctly?

zapu avatar May 02 '16 15:05 zapu

Yeah, exactly. I think we need a tool to automate all of this, otherwise, we're bound to make mistakes.

maxtaco avatar May 02 '16 17:05 maxtaco

Hm, so I don't think I understand the forking completely. Couldn't it just work on current commit in current git repository?

zapu avatar May 02 '16 17:05 zapu

Sorry, fork was the wrong word, sorry about that.

maxtaco avatar May 02 '16 17:05 maxtaco

I'd still like to revisit the idea of keeping compiled files in separate branch, but maybe that's for later - I'm not sure how this could be done right now. Thanks for clarifying! I'll get it done.

zapu avatar May 02 '16 17:05 zapu

The big issue with checking in the compiled code I've found is that it makes merging really hairy. Not impossible to deal with, just hairy...

maxtaco avatar May 02 '16 17:05 maxtaco

There should probably be a script to help with merges with mainline as well, what do you think?

zapu avatar May 02 '16 17:05 zapu

So the additional source file would specify iced version number (single number, the IcedCoffeeScript.patch). But where would the CoffeeScript version be obtained from?

zapu avatar May 06 '16 12:05 zapu

Can we read it directly out of package.json? ~~If not, it's exported from coffee-script.coffee~~

maxtaco avatar May 06 '16 12:05 maxtaco

Oh, right. Thanks

zapu avatar May 06 '16 12:05 zapu