mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-06-27 16:00:04 +08:00
38 lines
960 B
JavaScript
38 lines
960 B
JavaScript
require.config({
|
|
|
|
//load lib files required
|
|
paths: {
|
|
jquery: '../bower_components/jquery/dist/jquery',
|
|
lodash: "../bower_components/lodash/dist/lodash.min",
|
|
backbone: '../bower_components/backbone/backbone',
|
|
localforage: '../bower_components/localforage/dist/localforage',
|
|
localforagebackbone: '../bower_components/localforage-backbone/dist/localforage.backbone',
|
|
modernizr: "vendor/custom.modernizr",
|
|
socket: "../bower_components/socket.io-client/socket.io",
|
|
text: '../bower_components/text/text',
|
|
},
|
|
map: {
|
|
"*": {
|
|
// alias underscore to lodash for backbone
|
|
"underscore": "lodash"
|
|
}
|
|
},
|
|
shim: {
|
|
backbone: {
|
|
deps: ["lodash", "jquery"],
|
|
exports: "Backbone"
|
|
}
|
|
},
|
|
|
|
waitSeconds: 5
|
|
|
|
});
|
|
|
|
//start the app
|
|
require([
|
|
'views/page'
|
|
],
|
|
function (App) {
|
|
new App();
|
|
});
|