tower-archive / tower

UNMAINTAINED - Small components for building apps, manipulating data, and automating a distributed infrastructure.
http://tower.github.io
MIT License
1.79k stars 120 forks source link

support/format.coffee breaks client side #73

Closed goldibex closed 12 years ago

goldibex commented 12 years ago

The new module system in 0.4.0-1 breaks the client side, in particular this code (tower.js 1091, from client.coffee 7):

Tower.modules = {
    validator: global,
    accounting: global.accounting,
    moment: global.moment,
    geo: global.geolib,
    inflector: global.inflector
  };

Most of these don't actually exist yet, and when code from support/format.coffee tries to read them, it understandably breaks. I think this may have resulted from an accidental commit of development-branch code to master.

goldibex commented 12 years ago

I would just like to add that Tower rocks, by the way.

lancejpollard commented 12 years ago

You're right, I am going to fix this template issue as well and publish a new version on npm today. Thanks for posting.

lancejpollard commented 12 years ago

Alright pushed 0.4.0-2 and it's working for me. Try updating tower with npm install tower in your app and npm install tower -g globally, and grab the latest client-side tower.js, or generate a new app.