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

Default project template (no --configure) #4

Open
raphaelgoetter opened this issue Dec 23, 2015 · 5 comments
Open

Default project template (no --configure) #4

raphaelgoetter opened this issue Dec 23, 2015 · 5 comments

Comments

@raphaelgoetter
Copy link

Hello,

First, well done for "create-project"!

I would like to create projects with always the same default template ( without having to go through a --configure ) .

Clearly , I would like create- project . ( mine is called bretzel-start) to always retrieve the default template https://github.com/alsacreations/bretzel

I haven't found how to modify the .bin file for this: / https://github.com/alsacreations/bretzel-start/blob/master/bin.js

Can you help me out?

thank you

@mafintosh
Copy link
Owner

If I'm understanding you correctly, just add

{
  "github": {
    "user": "alsacreations",
    "repo": "bretzel",
    "branch": "master"
  },
  "defaults": {}
}

to ~/.config/create-project.json

@raphaelgoetter
Copy link
Author

Thank you for answer.

I have no ~/.config/create-project.json

is this file is created automatically ? If then, is it possible to include by défault those values (without adding them manually) ?

@raphaelgoetter
Copy link
Author

My wish is to :

1- npm install -g bretzel-start
2- bretzel-start . and have https://github.com/alsacreations/bretzel content in my project folder, by default

(without modifying any data)

@mafintosh
Copy link
Owner

Ah I understand what you mean now I think. We could add the repo location as a command line option help with.

@raphaelgoetter
Copy link
Author

Sorry I didn't understand. Have you an example ?

Is it possible to obtain this (simple) process ?

1- npm install -g bretzel-start
2- bretzel-start . and have https://github.com/alsacreations/bretzel content in my project folder, automatically by default

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