Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
requirejs+flight
// requirejs config in main.js
require.config({
paths: {
jquery: 'components/jquery/jquery',
es5shim: 'components/es5-shim/es5-shim',
es5sham: 'components/es5-shim/es5-sham'
},
map: {
'*': {
'flight/component': 'components/flight/lib/component',
}
},
shim: {
'components/flight/lib/index': {
deps: ['jquery', 'es5shim', 'es5sham']
},
'app/js/app': {
deps: ['components/flight/lib/index']
}
}
});
require(['app/js/app'], function (App) {
App.initialize();
});
@mkuklis

This comment has been minimized.

Copy link
Owner Author

mkuklis commented Feb 5, 2013

for layout:

▾ app/
▸ css/
▾ js/
app.js
▾ components/
▸ es5-shim/
▸ flight/
▸ jquery/
▸ requirejs/
index.html
main.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.