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

Add -validate option to CLI #19

Closed
jorgepedret opened this issue May 5, 2013 · 2 comments
Closed

Add -validate option to CLI #19

jorgepedret opened this issue May 5, 2013 · 2 comments
Assignees

Comments

@jorgepedret
Copy link
Collaborator

The only way to validate that your template works in Harp Platform is to compile the template and see if it shows any errors.

It'd be better to have a validate option to take care of that for you.

$ harp -validate
OK
$ harp -validate
{
  "status": 400,
  "message": "Template Render Error",
  "dump": {
    "path": "/Users/jorge/Dropbox/harp.io/apps/jorge.harp.io/public/index.jade"
  }
}
$ harp
...
validate [path] checks if project compiles correctly
...
@ghost ghost assigned sintaxi May 27, 2013
@sintaxi
Copy link
Owner

sintaxi commented May 27, 2013

This is a good idea. There is some refactoring involved to make this work though. My not get to it right away.

@kennethormandy
Copy link
Collaborator

Another good use case came up for this in #93. The takeaway is that harp compile should run harp validate first. Right now, it will compile as much as it can to www until it hits an error. If you don’t see the error in the CLI, this makes it seem like the compile step was successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants