Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Add new samples for UI frameworks #12

Open
@mhegazy

Description

@mhegazy

We need some new samples using some of the newer UI frameworks:

Activity

yuit

yuit commented on May 13, 2015

@yuit

For documentation and reference, I think Basarat has sample for TypeScript + AngularJS (https://github.com/basarat/todomvc-typescript)

DanielRosenwasser

DanielRosenwasser commented on May 13, 2015

@DanielRosenwasser
Member

Pinging @basarat - we'll have to wait for @mhegazy to come back and figure things out, but just wanted to loop you in on it.

basarat

basarat commented on May 14, 2015

@basarat
Contributor

That sample uses --out. I'd rather create a new one that uses amd.

For React : @pspeter3 from asana and @fdecampredon
For Aurelia : @cmichaelgraham (obviously 🌹) (code: https://github.com/cmichaelgraham/aurelia-typescript)

pspeter3

pspeter3 commented on May 14, 2015

@pspeter3

I could write a sample for TypeScript and React. Is there anything that you think makes a particularly good sample?

DanielRosenwasser

DanielRosenwasser commented on May 14, 2015

@DanielRosenwasser
Member

Actually @yuit also suggested we contact the others offline after the original comment, but I wasn't sure if it would be appropriate to trouble everyone. Glad we're not coming off as imposing. 😄

@pspeter3 we'd really appreciate that! While I don't want to put words in @mhegazy's mouth, I think we'd be willing to take contributions.

That sample uses --out. I'd rather create a new one that uses amd.

@basarat, I think that would be appropriate given the way I understand most projects in TS are being written now.

Is there anything that you think makes a particularly good sample?

Discussed with @danquirk today - a sample doesn't need to be anything particularly crazy. While a bunch of TodoMVC samples may sound a little contrived, it's not actually the worst idea. The real point is to help users understand how to write a project using TypeScript with their preferred framework. If the first thing a user learns is to write TodoMVC, that could help tremendously, plus the samples could be contributed to http://todomvc.com/.

On the other hand, if you feel like your creativity is being stifled, you can go ahead and come up with something interesting to engage a new TypeScript user. Just keep in mind that the sample primarily serves an educational purpose, and complexity will run counter to that goal.

mhegazy

mhegazy commented on May 18, 2015

@mhegazy
ContributorAuthor

@pspeter3 we would definitely be happy to accept new samples. Please do send us a PR! As for the sample idea, i would pick something that showcases the capabilities of the framework you are targeting. also feel free to pull in any supporting technologies that are needed (e.g. jade, less, sass, mocha... etc..). Take a look at the existing samples for imageboard for an example.

basarat

basarat commented on Jun 17, 2015

@basarat
Contributor

Sorry for the long delay. I've given it a lot of thought at the back of my mind. There are a 100 ways to organize angular projects and there is no simple this is the way that scales indefinitely. I've done something custom and so does anybody else that has real world requirements. That said the official angular 1.x seed project is https://github.com/angular/angular-seed. I'll just tsify that and PR this weekend 🌹

basarat

basarat commented on Jul 3, 2015

@basarat
Contributor

@pspeter3 I can try and create a sample (most probably just a Readme.md) based on the official getting started guide : https://facebook.github.io/react/docs/getting-started.html Using the latest tsx support in typescript master.

If you've already done some work then I won't do this 🌹

mhegazy

mhegazy commented on Jul 4, 2015

@mhegazy
ContributorAuthor

@RyanCavanaugh do you have a seed for a jsx sample that you can share? just to save effort duplication.

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @yuit@pspeter3@basarat@DanielRosenwasser@mhegazy

      Issue actions

        Add new samples for UI frameworks · Issue #12 · microsoft/TypeScriptSamples