au7 icon indicating copy to clipboard operation
au7 copied to clipboard

TypeScript

Open 79it opened this issue 8 years ago • 5 comments

Hello,

Do you have plans to create a version with TypeScript or instructions to add TypeScript if not?

Thanks

Chris

79it avatar Jan 30 '17 22:01 79it

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!

alflennik avatar Jan 31 '17 04:01 alflennik

  • [package.json] DevDependencies add: "ts-loader": "^2.0.3", "typescript": "^2.4.1";

  • [webpack.config.js] from ts-loader-Documentation add : resolve: { // Add .tsand.tsx as 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

elsabina1980 avatar Jul 18 '17 06:07 elsabina1980

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

luisvsilva avatar Sep 28 '17 13:09 luisvsilva

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

luisvsilva avatar Oct 06 '17 10:10 luisvsilva

I’m excited to hear about it. Please do!

alflennik avatar Oct 06 '17 16:10 alflennik