Coder Social home page Coder Social logo

dbiele / cordova_typescript_requirejs_ Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 1.06 MB

Sample VS 2015 Apache Cordova + TypeScript project using RequireJS to load modules.

License: MIT License

JavaScript 98.19% TypeScript 1.44% CSS 0.01% HTML 0.36%

cordova_typescript_requirejs_'s People

Contributors

deanb2015 avatar

Watchers

 avatar  avatar

Forkers

ridomin

cordova_typescript_requirejs_'s Issues

Issue when dependencies are not in the www/scripts directory

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.

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.