jonschlinkert / grunt-readme

DEPRECATED. Use Verb instead
https://github.com/assemble/verb
Other
30 stars 10 forks source link

Raw license not printing #47

Closed mrzmyr closed 10 years ago

mrzmyr commented 10 years ago

Trying to generate the license value from package.json by using {%= license %}. Its a custom license and grunt-readme prints just Released under the license.

How can i get the raw value with key the license from package.json?

jonschlinkert commented 10 years ago

Sorry about that, for now try using the array format for licenses:

  "licenses": [
    {
      "type": "MIT",
      "url": "https://github.com/assemble/fs-utils/blob/master/LICENSE-MIT"
    }
  ],

I'm about to release a refactor of this and this mixin shouldn't cause this issue anymore.

jonschlinkert commented 10 years ago

Actually after reading this again I may have misunderstood. Do you want the actual full license string to print out? If so, that can be done no prob, but would you mind creating a feature request?

mrzmyr commented 10 years ago

The licenses array works well for me, thanks. I guess it would be great to have the possibility to use the license value in the package.json as plain text.

jonschlinkert commented 10 years ago

Hi @mrzmyr, since you used grunt-readme in the past, just letting you know that we created a new and improved version of this: Verb, along with grunt and gulp tasks, a cli and a generator. It does what grunt-readme does, but super easy to use (requiring zero config) and waaaay more powerful for anyone who wants more than the defaults. If you like the idea of what grunt-readme does, or should do, please give Verb a look!