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

wepy-cli: added wepy init && wepy list commander #833

Merged
merged 7 commits into from Jan 28, 2018

Conversation

dlhandsome
Copy link
Collaborator

Checklist
  • npm run test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • cases or donate is changed or added
  • documentation is changed or added

@coveralls
Copy link

coveralls commented Jan 24, 2018

Coverage Status

Coverage remained the same at 86.083% when pulling 684af77 on dlhandsome:master into d5c71c1 on Tencent:master.

```
$ wepy list
	undefined:1
undefined
^

SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at Request._callback (/Users/gcaufy/mine/code/js/wepy_group/wepy/packages/wepy-cli/lib/bin/wepy-list.js:20:28)
    at self.callback (/Users/gcaufy/mine/code/js/wepy_group/wepy/packages/wepy-cli/node_modules/request/request.js:186:22)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at Request.onRequestError (/Users/gcaufy/mine/code/js/wepy_group/wepy/packages/wepy-cli/node_modules/request/request.js:878:8)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at ClientRequest.onConnect (/Users/gcaufy/mine/code/js/wepy_group/wepy/packages/wepy-cli/node_modules/tunnel-agent/index.js:168:23)
    at Object.onceWrapper (events.js:319:30)
```

if (!hasSlash) {
// use official template
download.downloadOfficialZip(template)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

 $ wepy init standardxxx xxx
Debugger listening on ws://127.0.0.1:9229/470d8846-dc90-4994-8247-285cf4f44d15
For help see https://nodejs.org/en/docs/inspector
Debugger attached.
⠴ downloading template(node:2422) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): HTTPError: Response code 404 (Not Found)
(node:2422) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


import program from 'commander';

program
Copy link
Collaborator

@Gcaufy Gcaufy Jan 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这样写好像参数都没有用了

 $ wepy build --no-cache

  error: unknown option `--no-cache'

@Gcaufy Gcaufy merged commit 684af77 into Tencent:master Jan 28, 2018
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

Successfully merging this pull request may close these issues.

None yet

3 participants