Closed e2jk closed 9 years ago
Double quote all the things.
{
"framework" : 'hapi",
"quotes" : "double"
}
Also, I think you'll need to remove that semicolon at the end.
Somewhere along the way, it seems the parsing of this file required strict json.
Indeed, using double quotes is the solution.
I first tried with the code you pasted (which still has a single quotes before 'hapi"
), and it failed on that first single quote (it would not have worked anyway, as opening with single and closing with double quote is not valid. Just for the sake of testing I replaced the double quote by a single quote, and that still failed the same way):
"framework" : 'hapi",
^
SyntaxError: Unexpected token '
When replacing all the single quotes by double quotes, the wizard just works fine. I will submit a pull request to replace all the single quotes by double quotes in the documentation.
Sorry- was responding from my phone. Glad you got it figured out.
Yes, please submit a PR for the documentation. Thanks!
Generating a new project with
ampersand
works fine.Going through the documentation I wanted to experiment with a
.ampersandrc
file, so I've copy/pasted the content of the sample mentioned in the docs, and kept only 2 lines (which I've modified to see if that would have any impact on the template that is generated, in particular the double quotes)But running
ampersand
now results in a crash:Trying to figure out if this was related to the keyword framework I've removed the first line in the dotfile, but now the error complains about
So it looks to break on the first character. I thought "Let's just quote the first elements
'framework'
and'quotes'
", but it still fails, this time withSyntaxError: Unexpected token '
. So it's still having issues with the first character.Any suggestions on how to create a proper
.ampersandrc
file?