meanjs / generator-meanjs

MEAN.JS Official Yeoman Generator
http://meanjs.org/
473 stars 177 forks source link

vertical-module #119

Open iamnizzam opened 8 years ago

iamnizzam commented 8 years ago

how to generate vertical module? like before yo meanjs:vertical-module not working now...?

jrbenny35 commented 8 years ago

I have this same problem, just getting the following

yo meanjs:vertical-module projects undefined You're using the official MEAN.JS generator.

I have uninstalled and reinstalled as well

iamnizzam commented 8 years ago

i want to use MEAN.JS generator for 0.3.3... its awsome

codydaig commented 8 years ago

The generator just went through an overhaul to be inline with the current meanjs project which is on version 0.4.2. The sub generators are under development and not included in the latest release. If you want to use 0.3.3 and the vertical sub generator you'll have to install the 0.1.x version of the generator.

iamnizzam commented 8 years ago

i install 0.1.x writing this command "npm install generator-mean@0.1.x" but still not working...

jrbenny35 commented 8 years ago

This bit of code has worked for me

npm install meanjs/generator-meanjs#0.4-dev

Found here: https://groups.google.com/forum/#!topic/meanjs/wKavBQOCZvw

mleanos commented 8 years ago

@iamnizzam @jrbenny35 The meanjs yeoman generator has been updated to the most recent meanjs release 0.4.1. https://www.npmjs.com/package/generator-meanjs

If you have previously installed the meanjs generator you will have to update it, using npm install -g generator-meanjs

iamnizzam commented 8 years ago

thanks @jrbenny35 ... its work

RandyDavis commented 8 years ago

i've gone through all of the steps @jrbenny35 and @iamnizzam listed and I still get "undefined" after trying to install a vertical module. no matches found: meanjs/generator-meanjs#0.4-dev is returned after i try running npm install meanjs/generator-meanjs#0.4-dev as well. any other ideas?

ilanbiala commented 8 years ago

Don't install 0.4-dev, you should just install v0.4.1

RandyDavis commented 8 years ago

I went back and redid my app using v0.4.1 from scratch as I originally started with v0.4.0 and got to the same point and whenever I run "yo meanjs:vertical-module " it behaves like it's trying to create a new meanjs app and responds "undefined" first and then with "What mean.js version would you like to generate?..." Where am I going wrong here?

ilanbiala commented 8 years ago

@RandyDavis vertical modules don't exist right now. We currently only have the generator for the main app set up for 0.4.x.

RandyDavis commented 8 years ago

So what is the exact command that I need to use to create a new module? Just want to make sure I don't mess this up as I assume that I don't use "crud-module" anymore. Thanks!

ilanbiala commented 8 years ago

@RandyDavis that feature doesn't exist yet for 0.4.x. Feel free to set up a PR for it.

RandyDavis commented 8 years ago

Oh so if I want to use meanjs and create modules, I need to rollback to 0.3.x? If so, then that makes sense now.

On Sep 21, 2015 10:59 AM, Ilan Biala notifications@github.com wrote:

@RandyDavishttps://github.com/RandyDavis that feature doesn't exist yet for 0.4.x. Feel free to set up a PR for it.

— Reply to this email directly or view it on GitHubhttps://github.com/meanjs/generator-meanjs/issues/119#issuecomment-142026676.

ilanbiala commented 8 years ago

Yes, though hopefully we'll have module generation out very soon, so maybe start working on the basics of it and I'll try and finish it up this weekend.

RandyDavis commented 8 years ago

Thanks for the clarification! Looking forward to trying it out when it's ready.

On Sep 21, 2015 11:23 AM, Ilan Biala notifications@github.com wrote:

Yes, though hopefully we'll have module generation out very soon, so maybe start working on the basics of it and I'll try and finish it up this weekend.

— Reply to this email directly or view it on GitHubhttps://github.com/meanjs/generator-meanjs/issues/119#issuecomment-142033406.

ShackAttack97 commented 8 years ago

Hey guys. Found this quick fix on SO that worked for me. Let me know if it helps!

http://stackoverflow.com/questions/32618604/yo-meanjsvertical-module-runs-the-application-creator

iamnizzam commented 8 years ago

is module generation finish yet @ilanbiala ?

ilanbiala commented 8 years ago

@iamnizzam no.

MichaelGatesDev commented 8 years ago

Will rolling my project back from 0.4.1 to 0.3.x destroy my project? I'm afraid all the hours I've put in are now gone if that's so.

ilanbiala commented 8 years ago

@MichaelGatesDev It depends on what you have done with it. You should try to use 0.4.1, it has lots of goodies. :)

MichaelGatesDev commented 8 years ago

@ilanbiala I would love to except it doesn't have vertical module support yet? That's exactly what I'm needing atm. I wanna generate a new CRUD module On Sep 29, 2015 1:48 AM, "Ilan Biala" notifications@github.com wrote:

@MichaelGatesDev https://github.com/MichaelGatesDev It depends on what you have done with it. You should try to use 0.4.1, it has lots of goodies. :)

— Reply to this email directly or view it on GitHub https://github.com/meanjs/generator-meanjs/issues/119#issuecomment-143951970 .

englishandy commented 8 years ago

any updates on the fix? i unable to do much without the CRUD module generator.

pateldeepp commented 8 years ago

Hello, This is back burning issue for many users. Please fix this ASAP cause I have seen people do migrate to Mean.IO after trying a lot to work on CRUD Module. Issue seems there for 3 of my team-mates we in different environment.

codydaig commented 8 years ago

We have an open PR that we are in the code review process for. I hope to see it merged in within a couple days. That PR works as is so you can use that Branch to generate vertical-modules until it's merged in.

emathias commented 8 years ago

Any news on that ? Maybe an alternative solution in the meantime ?

ghost commented 8 years ago

After hours of haunting errors I managed to find a way to generate crud module. As you guys know 0.4.x generators are still under development so there's a way to create another meanjs project folder with 0.3 version. You can downgrade to meanjs 0.3x without destroying the meanjs 0.4 project folder. All you have to do is to downgrade generator-meanjs to 0.1.12 version and downgrade yo to 1.3.3 or the versions till january 2015. Let me know if you get stuck into some issues.

iamnizzam commented 8 years ago

any update @ilanbiala

ilanbiala commented 8 years ago

@iamnizzam #131

hafsteinn commented 8 years ago

Any news on the vertical module generator ?

Using 0.4.1 and doing 'yo meanjs:vertical-module asdf' results in yo trying to scaffold a brand new project ...

ilanbiala commented 8 years ago

@hafsteinn #131 is still open and we need to finish that up.

matenoz commented 8 years ago

A rude bash script (workaround for linux user): 1) create a template directory (see below) in the app's root {copy and modify articles module as template}:

template/ ├── client │   ├── client.module.js │   ├── config │   │   ├── client.config.js │   │   └── client.routes.js │   ├── controllers │   │   └── client.controller.js │   ├── services │   │   └── client.service.js │   └── views │   ├── create.client.view.html │   ├── edit.client.view.html │   ├── list.client.view.html │   └── view.client.view.html ├── server │   ├── config │   │   └── server.config.js │   ├── controllers │   │   └── server.controller.js │   ├── models │   │   └── server.model.js │   ├── policies │   │   └── server.policy.js │   └── routes │   └── server.routes.js └── tests ├── client │   └── client.controller.tests.js ├── e2e │   └── e2e.tests.js └── server ├── server.model.tests.js └── server.routes.tests.js

then in the root folder run:

$ sh rude-v-mod-generator.sh my_module_name

(Test it before run)

rude script https://github.com/matenoz/isicast/blob/master/rude-v-mod-generator.sh Template folders https://github.com/matenoz/isicast/tree/master/template

tbaustin commented 8 years ago

I am getting this error when I run yo meanjs:vertical-module customers : Error meanjs:vertical-module customers

You don't seem to have a generator with the name meanjs:vertical-module installed. You can see available generators with npm search yeoman-generator and then install them with npm install [name]. To see the 2 registered generators run yo with the --help option.

jpimentel commented 8 years ago

Im getting the same error as @tbaustin

ilanbiala commented 8 years ago

This feature hasn't been added yet, we'll post on this thread once we have released new subgenerators.

Siddharth-ss42279 commented 8 years ago

same error as of @tbaustin , any solution ??

ilanbiala commented 8 years ago

Try mean-module, which is the first half of the vertical module generator when you install 0.4.3. We are working on getting the second half in as part of 0.4.4.

amercode commented 8 years ago

I came up with a hack to fix this issue: please check out my video: https://www.youtube.com/watch?v=Nkpdp1ofux8

eliavmaman commented 8 years ago

also need it please.. :)

amercode commented 8 years ago

This is my solution: https://www.youtube.com/watch?v=Nkpdp1ofux8