cibernox / ember-cli-yuidoc

EmberCLI addon for generate documentation from YUIDoc coments
MIT License
55 stars 25 forks source link

Get version from package.json #16

Closed chriseldredge closed 9 years ago

chriseldredge commented 9 years ago

It would be nice if the version could be pulled from package.json instead of having to specify it in yuidoc.json.

For compatibility, the addon could look for a version defined in yuidoc.json first, and if it is undefined then get the version from package.json.

cibernox commented 9 years ago

Try the newly released 0.6.2 version. I think you will like the new behaviour.

If your current commit is tagged (p.e v1.4.2) that will be the version number. If your current commit is not tagged, it uses the version in your package.json + the sha of the current commit. If the package.json doesn't define a version number, it will use the name of you current branch + sha. P.e develop.a1b2c3d4

cibernox commented 9 years ago

Please close this issue if the new behaviour satisfy your needs.

chriseldredge commented 9 years ago

That does the trick. Thanks!