-
Notifications
You must be signed in to change notification settings - Fork 148
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
Typescript starter fails test #455
Comments
Would love to submit a PR for this if I can be pointed in the right direction |
Hey @cogoo ! Apologies for how long this has taken me to respond to. I'd love some help with this. I'm a little behind on Gluegun and working hard to catch up. |
Thats fine, your hard work already on Gluegun is appreciated. Will try and help on this issue, do you have any insight to share that could help with this |
I'd have to look into it a bit, but is it just a matter of changing the js to ts in the generator script? |
That would be part one. Will also need the TS Compiler to compile the |
I see, yeah, that seems doable but just needs someone to take the task on. |
Looked into this, unfortunately the TS compiler doesn't accept "custom" extensions, in this case '.ejs'. An alternative could be in the npm build script, we copy the template folder into the output directory |
Possibly related to #509. |
Hello, just wanted to comment that im running into same issue but it looks almost like it's intermittent(i swore it worked once). Still playing around with this atm but following the guide i get the same error but only when i TS starter. |
Hey!
Starting a new project with TypeScript has some issues.
The initial tests don't pass. This is due to some inconsistencies with the initial generate command. It's looking for a
model.js.ejs
template, but the actual template ismodel.ts.ejs
.When you build the project, the
model.ts.ejs
file doesnt get compiled to a js file.How can we fix this for the JS build, as we have to reference a template file for the generate command. How do we handle the TS to JS change
The text was updated successfully, but these errors were encountered: