Last active
August 29, 2015 14:00
-
-
Save enricostano/75be06b02046a99a82b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/js/main.js | |
'use_strict'; | |
require.config({ | |
paths: { | |
jquery: 'libs/jquery/src/jquery' | |
} | |
}); | |
require(['jquery'], function(jq){ | |
console.log(jq.fn.jquery); | |
}); |
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
I use bower, btw