First of all this is review of my first client side application with yeoman 🙂
Yeoman is a great tool for creating client side application it’s make it super easy to get your application structure and also manage your deps via bower but i found some problems when using yeoman and require.js it’s my fault so here it’s some tips
- yeoman shipped default with jquery 1.9 if you want to use another version just change jquery version in bower.json file to the version u want and type bower install
- if you want to add external js lib for require.js you just add this to your require.config path
freebase:’https://www.gstatic.com/freebase/suggest/4_1/suggest.min’
and if it’s has a deps add this to shim
shim: {
freebase: {
deps: [‘jquery’],
exports: ‘jquery’ }
} - also add freebase to your require statement
require([‘app’, ‘jquery’,’freebase’, ‘bootstrap’], function (app, $,freebase) - when u finish ur application and wanna deploy type
grunt build
you will find ur build inside dist folder
Advertisements