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

"chare init" prints usage message instead of creating project from template #1

Closed
dpurge opened this issue Aug 3, 2017 · 2 comments

Comments

@dpurge
Copy link

dpurge commented Aug 3, 2017

I've tried to use chare to create a project from dwqs/vue-typescript template.
It has printed usage information on the screen, and did not create the project.

Here is copy from my console:

> chare init dwqs/vue-typescript vue-learn



  Usage: chare-init <template-name> [project-name]


  Options:

    -c, --clone   use git clone
    -o, --origin  set git remote origin
    -h, --help    output usage information
  Examples:

    # create a new project with an template from github.
    $ chare init dwqs/vue-startup my-project
    $ chare init dwqs/vue-startup my-project -o [email protected]:xx/xxxx.git

This is from the current code, installed with npm link

Using template from local directory does work:

$ chare init C:/src/pub/dwqs/vue-typescript  vue-learn


Template is from C:/src/pub/dwqs/vue-typescript

** generating project vue-learn...

? Project name: vue-learn
? Author: <!-- edited -->
? Project version: 0.0.1
? Project description: A new Vue.js + TypeScript project
? state manage for your app: mobx
? client port: 3000
? Need image minifying in production?: Yes

√ vue-learn generated  success


   To get started:

     cd vue-learn
     npm install
     npm run dll
     npm run dev

   Documentation can be found at https://github.com/dwqs/vue-typescript
@dwqs
Copy link
Owner

dwqs commented Aug 8, 2017

Maybe there is some wrong for this template, let's me see. You can try others template, vue-startup, react-startup, etc.

@dwqs
Copy link
Owner

dwqs commented Aug 8, 2017

Maybe my owner repos is too many(31), so the template dwqs/vue-typescript doesn't exist the response from the Github API, the code is here. Because it returns the first page of data default(the page size is 30). But I have 31 repos and the vue-typescript is the 31st. So you got nothing when use it to generate your project. I have fix it and just upgrade chare-cli.

@dwqs dwqs closed this as completed in 7c8e2e1 Aug 8, 2017
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