cfpb / generator-cf

Yeoman generator for Capital Framework
http://cfpb.github.io/capital-framework/getting-started/
Creative Commons Zero v1.0 Universal
9 stars 13 forks source link

How to specify cf-component version numbers #5

Closed himedlooff closed 9 years ago

himedlooff commented 9 years ago

Currently when running $ yo cf I get this in my bower.json file:

"dependencies": {
    "cf-core": "cfpb/cf-core",
    "cf-buttons": "cfpb/cf-buttons",
    "cf-expandables": "cfpb/cf-expandables#~0.6.0",
    "cf-forms": "cfpb/cf-forms#~1.1.0",
    "cf-grid": "cfpb/cf-grid",
    "cf-icons": "cfpb/cf-icons",
    "cf-pagination": "cfpb/cf-pagination#~0.4.1"
},

Where are the version numbers coming from? I don't see how this gets added in app/templates/_bower.json.

contolini commented 9 years ago

When you run bower install --save whatever-component it automagically gets the version number from the component's bower.json manifest. https://github.com/cfpb/generator-cf/blob/master/app/index.js#L129

This reminds me I need update the component names now that they're published to bower's registry.

himedlooff commented 9 years ago

How come some were added and some were not?

contolini commented 9 years ago

Good q!

himedlooff commented 9 years ago

Now i'm seeing this:

  "dependencies": {
    "cf-buttons": "*",
    "cf-expandables": "~0.6.2",
    "cf-forms": "~1.1.1",
    "cf-grid": "~0.9.1",
    "cf-icons": "*",
    "cf-layout": "~0.1.1",
    "cf-pagination": "~0.4.2"
  },

Some use * and some use version numbers. Kind of weird.