Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The ModuleStyle doesn't show correctly? #23

Open
Troland opened this issue Jul 22, 2013 · 6 comments
Open

The ModuleStyle doesn't show correctly? #23

Troland opened this issue Jul 22, 2013 · 6 comments

Comments

@Troland
Copy link

Troland commented Jul 22, 2013

Hi,i'm im windows and use the command yo bbb,and it prompt me to choose the modestyle where i choose amd.After installing,i found the moduleStyle is commonJS.
Why is that happend?
Thans for any help..

@SBoudrias
Copy link
Member

Hi, I'll have a look a little bit later.

Meanwhile, make sure you use the lastest version (npm update, maybe -g for global depending where you installed the generator)

@SBoudrias
Copy link
Member

OK, just tested it. Seemed to work fine with what I expected. Although, right now, the only difference between AMD and CommonJs is that the AMD is wrapped, eg:

define(function(require, exports, module) {
  var $ = require("jquery");
});

-- vs --

var $ = require("jquery");

And you'd like to have it classic AMD way?

define([ "jquery" ], function( $ ) {

});

@Troland
Copy link
Author

Troland commented Jul 23, 2013

Exactly,thanks SBoudrias, i'd like the classic AMD way..while anyway i think i'm adopt to the commonjs style now.

@SBoudrias
Copy link
Member

Yeah, although the commonjs style have some little drawback. I was thinking about this today, and I'll probably add a classic AMD style supports for modules. Just need to figure out the best way yet!

@Troland Troland closed this as completed Jul 23, 2013
@Troland Troland reopened this Jul 23, 2013
@Troland
Copy link
Author

Troland commented Jul 23, 2013

Thanks SBoudrias.

@Troland Troland closed this as completed Jul 25, 2013
@SBoudrias
Copy link
Member

Hey, keep it open so I can keep track ;)

@SBoudrias SBoudrias reopened this Jul 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants