Skip to content
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 #1

Open
79it opened this issue Jan 30, 2017 · 5 comments
Open

TypeScript #1

79it opened this issue Jan 30, 2017 · 5 comments

Comments

@79it
Copy link

79it commented Jan 30, 2017

Hello,

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

Thanks

Chris

@alflennik
Copy link
Owner

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!

@elsabina1980
Copy link

  • [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

@luisvsilva
Copy link

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
Copy link

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

@alflennik
Copy link
Owner

alflennik commented Oct 6, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants