Backbone from NPM via JSPM
Backbone from NPM via JSPM
Backbone from NPM via JSPM
It’s an idiomatic check to see if the script is being run in a web-page inside a web-browser or not. One might assume that JavaScript only runs in web-pages as that’s what it was originally designed for, but this isn’t true: JavaScript is a versatile language that can also be used for writing server-side code … Read more
Yes, what you’re looking for is possible and works nicely. It appears as though you have the dependencies right. I think you are missing only the following, which needs to be at the beginning of your top level typescript or JavaScript file. Specifically, these need to be prior to the first line is that loads … Read more
Well JSPM is much larger and ambitious project than Bower. Bower has only one purpose-to download source files you need from the web to your hard disk. For you as a consumer, bower doesn’t do anything else. If you want to execute script files from bower, you need to create your script tags for each … Read more
Update Apparently, moment now provides its own type definitions (according to sivabudh at least from 2.14.1 upwards), thus you do not need typings or @types at all. import * as moment from ‘moment’ should load the type definitions provided with the npm package. That said however, as said in moment/pull/3319#issuecomment-263752265 the moment team seems to … Read more