-
Notifications
You must be signed in to change notification settings - Fork 14
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 Partially supported out-of-the-box #186
Comments
Thanks for creating this tracking issue @ScreamZ 👍 I also appreciate the template project to help folks get started. We could add passing a URL to the
As for the out-of-the-box TypeScript support, I figured out why adding the The fix should probably be implemented in For the second task, what should ship by default with typings? xs-dev? or the typescript project template? For the third task, I totally agree with improving the documentation for TypeScript usage. It would be a nice guide on the xs-dev docs if you're up for submitting a PR. 😄 |
Wasn't aware of
I don't have a closed opinion on the subject, but currently, the template file from the xs-dev CLI is only creating two files, and there are no typescript types included.
I'll work on it. |
This is the first milestone to improve TypeScript usage of
xs-dev
.State of art
Currently you can run a new Ts project using
xs-dev init <project_name> --typescript
. This gives two thingmain.ts
: a file with some example codemanifest.json
: application manifestDetails
At this point you can run
xs-dev run
inside the project folder and this will run, but there are few issues.Issues & Questions
Not sure about
What does it do exactly? Means all require inside the js file will point to
./main
(only js ext ? or also .ts ?)Once you add a package.json simple as this one
The CLI command doesn't work anymore yielding
@HipsterBrown Poke still a
punycode
issue here ahahTherefore not sure how to proceed. Currently I'm going to use my bundling toolchain with a packager. The pro is that I can easily generate a single file with all deps and eventually minify code, which is great.
But for the quick prototype this could be nice to no need to do this.
Therefore i suggest two pattern:
Note
Edit : I made it : https://github.com/ScreamZ/xs-dev-Typescript-template
Tasks
package.json
file, therefore we can include typescript typings.Related topics
Things related like PullRequest or Other issues.
The text was updated successfully, but these errors were encountered: