dbiele / cordova_typescript_requirejs_ Goto Github PK
View Code? Open in Web Editor NEWSample VS 2015 Apache Cordova + TypeScript project using RequireJS to load modules.
License: MIT License
Sample VS 2015 Apache Cordova + TypeScript project using RequireJS to load modules.
License: MIT License
Thanks for checking out the demo. Please add any issues here.
Thanks
Dean
I followed your tutorial, with the underlying goal to migrate a VS2013 project to VS2015.
When I started to add my bower dependencies, I realized that it will be complicated to add all .js files in the www/scripts directory.
So I rollback to your final code, and tried to point to jquery that is not directly in www/scripts directory.
To do so, I created a gulp task thanks to gulp-bower-files, in order to copy the bower_components contents in a www/scripts/vendors directory.
After that, I tried to configure the index.ts file to point the www/scripts/vendors/jquery/dist/jquery I obtained.
But there is no way to make it works, always getting the following errors:
Failed to load resource
jquery.js (0,0)
Uncaught Error: Script error for: jquery
http://requirejs.org/docs/errors.html#scripterror
require.js (140,0)
So, my question is: how to make dependencies work without copying .js files into the www/scripts directory?
Thank you in advance for your answer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.