Open 79it opened 7 years ago
This is a perfect candidate for a guide. It should only be a couple of steps I'd imagine, maybe a loader for Webpack, some slight changes to main.js, etc.
I would need some help, though, because I'm no Typescript guru. Just a checklist should be enough, and I'll create the full guide for people.
79it, if you'd like to help, I would appreciate that. Or any Typescript people who come across this issue.
Also, it sounds weird but it is exciting to have an issue here. Thank you!
[package.json] DevDependencies add: "ts-loader": "^2.0.3", "typescript": "^2.4.1";
[webpack.config.js] from ts-loader-Documentation add :
resolve: { // Add
.tsand
.tsxas a resolvable extension. extensions: ['.ts', '.tsx', '.js'] // note if using webpack 1 you'd also need a '' in the array as well }
and in your Rules section add:
{ test: /\.tsx?$/, use: "ts-loader" }
Add [tsconfig.json] file :
{ "compilerOptions": { "sourceMap": true } }
And I think tath's all. Hop it helps you
I have forked your project and modified it to support typescript, Sorry not sure how to go about it, I think a pull request would change your project considerably and people might want to use the JS babel instead. Would you mind if I publish it as a project and obviously reference this one and credit you? please let me know. Thanks
Just to give you an update I am now in the process of creating custom aurelia components to wrap F7 components, inspired on their vue bindings. I will publish this as a separate project. I will post the link when published
I’m excited to hear about it. Please do!
Hello,
Do you have plans to create a version with TypeScript or instructions to add TypeScript if not?
Thanks
Chris