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

No global installation of mern-cli and cross-env please #20

Closed
ghost opened this issue Feb 18, 2016 · 6 comments
Closed

No global installation of mern-cli and cross-env please #20

ghost opened this issue Feb 18, 2016 · 6 comments
Milestone

Comments

@ghost
Copy link

ghost commented Feb 18, 2016

Hi,

Can we put mern-cli into scripts section of package.json, please.
Each project can have it's own mern-cli version.

...
"scripts": {
  ...
  "mern-cli": "mern-cli",
  "cross-env": "cross-env",
  ...
}
...

Now we can use mern-cli by calling npm. npm run mern-cli <mern-cli-command> or npm run cross-env <cross-env-command>

@ghost ghost changed the title No global installation of mern-cli please No global installation of mern-cli and cross-env please Feb 18, 2016
@panda-sandeep
Copy link
Member

Hi Denny

Right now mern-cli doesn't do much apart from cloning mern-starter project. But we have some great plans for future (Roadmap being prepared). By passing some flags to mern command, one should be able to configure the project in a different way. For instance, you can run mern app --withLifeCycle which will create React components with life cycle functions.

Let us know what you think.

@Exegetech
Copy link

+1, like that idea

@ghost
Copy link
Author

ghost commented Feb 20, 2016

We can do all this and don't need to install mern-cli globally.

I had many troubles with gulp while I had it globally installed and in some not so frequently updated projects, gulp failed to run tasks after some time.

When we put mern-cli to scripts of package.json we can still run all Mern commands. The only disadvantage is that we need another way of initiating new Mern based projects.

mkdir my_app && cd my_app
npm init && npm i mern-cli
mern app --withLifeCycle

Something like this. By running npm init I can care for details like git repository, name, description, tags, private.

My thoughts.

@mayankchd
Copy link
Contributor

@fibric, Thanks for your suggestions, I will try to look into it and maybe change it!

@mayankchd
Copy link
Contributor

sindresorhus/ama#17

@somus somus added this to the 2.0.0 milestone May 26, 2016
@somus
Copy link
Contributor

somus commented Jun 6, 2016

Now, mern-cli can clone variants of MERN project from various repositories which require it to be installed globally. For more details, visit Hashnode/mern-cli#10.

@somus somus closed this as completed Jun 6, 2016
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

4 participants