Questions tagged [yeoman]

Yeoman is a command-line tool for frontend web development. As a "web application boilerplate," its main features include project scaffolding, a build process based in part on Grunt.js, and package management for updating project dependencies.

Yeoman Features

  1. Scaffolding: Automates project structure using HTML5 Boilerplate, jQuery, and Modernizr - and optionally Compass, Twitter Bootstrap, RequireJS, and Twitter Bootstrap plugins.
  2. Watch Process: Integrates LiveReload with a native fallback watch process for updating changes in the browser without refreshing.
  3. Linting: Runs JSHint on specified project files during its build process.
  4. Preview Server: Using the grunt server command starts a built-in HTTP server for monitoring project changes auto-compiling CoffeeScript/Compass files.
  5. Image Optimization: Integrates OptiPNG and JPEGTran into the build process.
  6. Build Process: In addition to the features already mentioned, grunt build concatenates, minifies, and generates an application cache manifest. The build process also incorporates the RequireJS r.js optimization script.
  7. Package Management: Update project dependencies such as third-party libraries and extensions from the command line using Bower.
  8. Testing: Supports generating test cases for Mocha or Jasmine and automatically building them as part of the build process via Karma.

Yeoman Resources

  • Main Website - installation, CLI reference, package manager, metrics tool, FAQs
  • GitHub - project repository and additional README documentation
  • GitHub Issues - main support site for early release troubleshooting
  • Google Groups - mostly administrative issues with some support questions
  • Google Plus - promotional updates and links to media coverage
  • Twitter - support discussions and links to media coverage
2349 questions
1
vote
1 answer

Stubbing out ajax requests with yeoman server

When running yeoman server I want to be able to create URL stubs to simulate backend responses. Take for example the following controller: angularApp.controller('AppuserListCtrl', function ($scope, $http) { $http({method: 'GET', url:…
javito
  • 1,529
  • 6
  • 16
  • 24
1
vote
1 answer

Unfound packages in yeoman

Im trying to install socket.io throu yeoman, it loads sockets just fine when then I guess it tries to load up the dependencies and it can't find them and gives me fatal error ws not found (for the ws package). It's trying to fetch from theses…
Got The Fever Media
  • 750
  • 1
  • 9
  • 27
1
vote
2 answers

Yeoman use Backbone/Ember with requireJs

I would like to use Yeoman to start a project with a framework and requireJs enabled. If I init a project with Amd and install backbone after, the models/controllers/routes... aren't generated with requireJs. I have find this topic : Howto…
Frédéric GRATI
  • 805
  • 1
  • 6
  • 19
1
vote
2 answers

How can I overwrite default settings in Zurb Foundation using Yeoman?

I've installed Zurb Foundation into my Yeoman project using yeoman install foundation then included it in my project by updating my Gruntfile.js using require: 'zurb-foundation' The problem now arises when I try to edit my app/styles/main.scss file.…
0xDonut
  • 595
  • 5
  • 24
1
vote
1 answer

Using latest Ember.js (1.0.0-PRE.3) with yeoman

The ember.js team just released the new version of the ember framework version 1.0.0-pre.3 this version includes the new "router" API that I'm very eager to use. I'm about to start a new app and yeoman is in my workflow to help, but the yeoman…
intuitivepixel
  • 23,302
  • 3
  • 57
  • 51
1
vote
1 answer

Using compass with Yeoman project, but outside of Yeoman server

I'm circumventing the built-in Yeoman server and severing files directly from the /app directory. Since Yeomen's server manages compass/sass compliation I'm having a hard time running compass outside of it. Running the compass cli directly doesn't…
Thomas
  • 5,736
  • 8
  • 44
  • 67
1
vote
2 answers

Call Yeoman commands from a NodeJS server

How to call a Yeoman command from a NodeJS server? I want to make a simple client webpage which allows me to execute Yeoman commands, on the NodeJS server, such as yeoman install angular yeoman server
Phil
  • 46,436
  • 33
  • 110
  • 175
1
vote
0 answers

Yeoman template engine support

Possible Duplicate: Integrating Jade in Yeoman’s server/watch/reload tasks Coming from Rails, I'm wondering how to enable either jade or slim template support for Yeoman. It has been incredibly fast and satisfying to set up Yeoman, but I don't…
adrian
  • 161
  • 7
1
vote
1 answer

angularjs + yeoman + ng-switch + build:minify -> assertion

I am using an ng-switch in angularjs to have dynamic content in my page, dependent on the url. And I am managing my project with yeoman. Here is the code of the dynamic content generation: html:
David Graf
  • 1,152
  • 2
  • 13
  • 24
1
vote
1 answer

How to manage and concat CoffeeScript files with Grunt/Yeoman?

I am new to Grunt/Yeoman and I have an existing app with 40+ Coffeescript files like this: scripts/ lib/ ... common/ ... util/ ... app/ views/ models/ A.cofffee B.cofffee C.cofffee I want to concatenate…
hakunin
  • 4,041
  • 6
  • 40
  • 57
1
vote
1 answer

Yeoman install component fails

When I execute yeoman install git://github.com/paperjs/paper.js.git, it fails. This is the output: Running "bower:install:git://github.com/paperjs/paper.js.git" (bower) task bower cloning git://github.com/paperjs/paper.js.git bower…
ndequeker
  • 7,932
  • 7
  • 61
  • 93
1
vote
1 answer

Running tests in both headless and browser

I'd like to run my tests in PhantomJS using yeoman test as well as in browser using yeoman server:test. The problem though is that PhantomJS doesn't find my includes in my index.html: ...because…
kraftwer1
  • 5,253
  • 10
  • 36
  • 54
1
vote
1 answer

CLI testing with Jasmine / PhantomJS

Running yeoman server:test opens Jasmine in my browser and says that my test has passed. Now I want to try the same, but without a browser - using PhantomJS on the CLI. Unfortunately, running yeoman test only throws a: Running "jasmine:all"…
kraftwer1
  • 5,253
  • 10
  • 36
  • 54
1
vote
1 answer

Yeoman building backbone app not combining model and view files to the minified js

I am having a backbone project in yeoman and below is my grunt file configuration module.exports = function( grunt ) { 'use strict'; // // Grunt configuration: // // https://github.com/cowboy/grunt/blob/master/docs/getting_started.md // …
Renjith
  • 546
  • 1
  • 8
  • 28
1
vote
1 answer

What is the app/templates directory for when using Yeoman?

As the title suggests I want to know what the app/templates directory is for when using Yeoman. Thanks
Sam
  • 4,437
  • 11
  • 40
  • 59