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

0.9.0: cli: TypeError when using globally stored tasks: [readme] #86

Closed
tunnckoCore opened this issue Feb 14, 2016 · 3 comments · Fixed by base/base-runner#2 · May be fixed by GerHobbelt/verb#18
Closed

0.9.0: cli: TypeError when using globally stored tasks: [readme] #86

tunnckoCore opened this issue Feb 14, 2016 · 3 comments · Fixed by base/base-runner#2 · May be fixed by GerHobbelt/verb#18

Comments

@tunnckoCore
Copy link

As we know currently we can store things globally through --save, so i stored some configs

verb --save tasks:readme
verb --save layout:empty
verb --save toc:false

So, when run just verb it simply fails with

[TypeError: tasks.split is not a function]

very cool :D I'm digging to find from where come from about an hour ;d Maybe composer or even bach, but i can't see such thing lol.

notice it's specific, all other is working correctly (for example verb readme is as expected), also works if configs are stored locally in package.json on the project.

~/data-store/verb.json

{
  "layout": "empty",
  "tasks": [
    "readme"
  ],
  "toc": false
}
@tunnckoCore
Copy link
Author

Oookey, that was cool, found it. lol.
I can bet problem is coming from here base-runner/index.js#L216, hope help.

@tunnckoCore
Copy link
Author

closing as per base/base-runner#2

@jonschlinkert
Copy link
Member

awesome, thanks for debugging. we'll get these all streamlined over time, it will get easier

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 a pull request may close this issue.

2 participants