Upgrade to Pro — share decks privately, control downloads, hide ads and more …

require.js + CoffeeScriptでお幸せに

require.js + CoffeeScriptでお幸せに

Ian Lewis

June 08, 2014
Tweet

More Decks by Ian Lewis

Other Decks in Technology

Transcript

  1. define [“jquery”, “underscore”], ($, _) -> ### My module ###

    MyModule = {} class MyModule.MyClass ### My class ### return MyModule
  2. require [“cs!mymodule”], (MyModule) -> ### New Module ### NewModule =

    {} class NewModule.SubClass extends MyModule.MyClass ### New sub-class ### return NewModule