Coder Social home page Coder Social logo

Comments (9)

cmichaelgraham avatar cmichaelgraham commented on June 21, 2024

Hi @kristianmandrup :)

The main goals behind this effort are:

  1. validate aurelia.d.ts with real examples
  2. validate requirejs and amd loaders (instead of mainstream systemjs jspm)
  3. validate esri map integration

there is an initiative underway to manage sample code in a website. once this comes out, it would probably make sense to migrate this code into that pattern.

i was really targeting folks that use visual studio and have some limited javascript experience. because of this, i thought it would be easier for that type of user to just clone the entire thing and start playing with visual studio projects.

i'm really new to all of this. i'm sure there will be big re factoring as i learn more.

feel free to clone and adapt and publish other work. we can include references to the work here - you can just submit pull requests to the doc files.

let me know your thoughts :)

from aurelia-typescript.

kristianmandrup avatar kristianmandrup commented on June 21, 2024

Hi @cmichaelgraham,

Thanks for the clarification. I'm just surprised that you are inlining webcomponents, aurelia code base etc. instead of referencing particular versions from a package or jspm config file. Inlining code libs makes it harder to manage IMO (more difficult to stay in sync with or upgrade to later versions).
Looking forward to see sample apps that work with TypeScript outside of Visual Studio.
Looking forward to TypeScript:
https://github.com/Microsoft/TypeScript/milestones/TypeScript%201.5

Cheers :)

from aurelia-typescript.

cmichaelgraham avatar cmichaelgraham commented on June 21, 2024

totally agree on the inlining of components - its not supportable in the long run. i really appreciate your input !! :)

from aurelia-typescript.

csrow avatar csrow commented on June 21, 2024

The problem I am running into using config.js and SystemJS set up is that the Typescript debugging does not work in IE under IIS express in VS. For some reason your set up of single bundle load under requireJS works with Typescript debugging in VS with IE but not with JSPM loaded version.

Debugging works fine in Chrome for both set up but that is debugging in browser.

from aurelia-typescript.

cmichaelgraham avatar cmichaelgraham commented on June 21, 2024

@csrow we have had issues with IE debugging here also. seems like if you get everything set just right, it works, but it is tricky. our issues were around the dojo require and the fix had to do with the async flag, but i'm really not sure of all the details. it is definitely very helpful when it works :)

from aurelia-typescript.

kristianmandrup avatar kristianmandrup commented on June 21, 2024

FYI. Webstorm IDE (IntelliJ) will support TypeScript in their next version (10), which is already available in Early Access Program. Will be big!!!

http://blog.jetbrains.com/webstorm/2015/02/webstorm-10-eap-140-2753/

from aurelia-typescript.

cmichaelgraham avatar cmichaelgraham commented on June 21, 2024

That is VERY cool !! :)

from aurelia-typescript.

csrow avatar csrow commented on June 21, 2024

I think VS debugger is getting confused and not recognizing the modules as a part of the project because Aurelia handles loading of modules in AMD format internally without the use of requireJS.

How are you able to use requireJS on top of Aurelia?

from aurelia-typescript.

cmichaelgraham avatar cmichaelgraham commented on June 21, 2024

Hi @csrow :)

It is due to the genius of @EisenbergEffect - he was able to make Aurelia work properly using systemjs loader as well as requirejs amd loader, as well as dojo require-based amd loader. It is the dojo scenario i'm the most interested in, because that makes the integration with esri very nice for creating mapping apps.

i believe that this magic is located in https://github.com/aurelia/loader-default

if you look at the bundling, you will see that r.js can be used to collect up and bundle all of the aurelia libraries. That's what the samples in here are using when they run. That strategy also makes it work well with the Telerik mobile platform, another key area of interest for me.

from aurelia-typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.