First of all this is review of my first client side application with yeoman :)

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

  1. 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
  2. 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’ }

    }
  3. also add freebase to your require statement
    require([‘app’, ‘jquery’,’freebase’, ‘bootstrap’], function (app, $,freebase) 
  4. when u finish ur application and wanna deploy type
    grunt build
    you will find ur build inside dist folder
Advertisements

About mido18

Student how addicted to computer and internet
This entry was posted in CS and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s