Skip to content

Instantly share code, notes, and snippets.

@enricostano
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enricostano/75be06b02046a99a82b6 to your computer and use it in GitHub Desktop.
Save enricostano/75be06b02046a99a82b6 to your computer and use it in GitHub Desktop.
{
"name": "katuma-web",
"version": "0.0.1",
"homepage": "https://github.com/coopdevs/katuma-web",
"description": "Single page frontend application for Katuma API",
"main": "index.html",
"license": "AGPL",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"backbone": "1.1.2",
"marionette": "1.8.4",
"requirejs": "2.1.11"
}
}
// app/js/main.js
'use_strict';
require.config({
paths: {
jquery: 'libs/jquery/src/jquery'
}
});
require(['jquery'], function(jq){
console.log(jq.fn.jquery);
});
@enricostano
Copy link
Author

I use bower, btw

@enricostano
Copy link
Author

I get

GET http://localhost:8000/app/js/core.js [HTTP/1.1 404 Not Found 10ms]
GET http://localhost:8000/app/js/selector.js [HTTP/1.1 404 Not Found 16ms]
GET http://localhost:8000/app/js/traversing.js [HTTP/1.1 404 Not Found 30ms]
GET http://localhost:8000/app/js/callbacks.js [HTTP/1.1 404 Not Found 24ms]
GET http://localhost:8000/app/js/deferred.js [HTTP/1.1 404 Not Found 43ms]
GET http://localhost:8000/app/js/core/ready.js [HTTP/1.1 404 Not Found 22ms]
...

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