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
23
votes
8 answers

Npm module "grunt-contrib-imagemin" not found, Is it installed?

I run into this error, when I try to do build a project with "grunt build". There seems to be no problem when I test the project by doing "grunt server". The project has been scaffolded and managed with: yeoman/grunt/bower. In Windows. Everything…
jsidera
  • 1,791
  • 1
  • 17
  • 19
23
votes
1 answer

How execute other prompt when prompt previous is true on Yeoman?

How execute prompt2 when prompt1 is true on Yeoman as shown below? var prompts = [ {name: 'prompt1', message: 'Ask 1?'}, {name: 'prompt2', message: 'Ask 2?'} ];
Fuechter
  • 1,200
  • 2
  • 10
  • 27
23
votes
5 answers

How to use jquery ui with bower?

I'm experimenting with yeoman and bower. I have created a yeoman webapp using the following command yo webapp I want to use jqueryui so I have installed it using bower: bower install jquery-ui --save This works fine, but the jQuery UI component…
cremersstijn
  • 2,375
  • 4
  • 28
  • 41
22
votes
1 answer

How to gracefully abort yeoman generator on error?

I'm writing a yeoman generator and want to check some prerequisites, for example a git being installed. I can easily check this using .exec, but how do i gracefully abort generator and report error to user? I searched docs, but it seems that i'm…
grigoryvp
  • 40,413
  • 64
  • 174
  • 277
21
votes
6 answers

`yo angular` gives error: npm ERR! code ENOENT npm ERR! errno 34 (yes I have cleaned the cache and set .npmignore)

I tried to run yo angular in a new project directory, but it gave me the ENOENT error somewhere along the way. Yes I have looked at this similar question, but its solution doesn't work for me. I ran these things on the empty new project directory…
randwa1k
  • 1,502
  • 4
  • 19
  • 30
21
votes
9 answers

How should I configure grunt-usemin to work with relative path

I have a grunt project backed by a yeoman-generator that I've built based on the generator-webapp, if it's of any help, you can find it on GitHub The grunt project makes us of the grunt-usemin task. My project involve building a multilingual…
Jérémie Parker
  • 3,184
  • 2
  • 20
  • 33
21
votes
2 answers

AngularJS: Controllers / Services should be Pascal Case? (using Yo in yeoman)

I have started using Yo (yeoman) to scaffold my controllers, services etc for angularjs. I normally do a yo angular:service passwordService I am using camel case as this is the name of the file it creates but I have noticed it also uses the same…
Martin
  • 23,844
  • 55
  • 201
  • 327
21
votes
9 answers

Error no such file or directory 'bower_components'

I am trying to make my first yeoman app. I followed every step in the below link: http://ponderingdeveloper.com/2013/03/08/preparing-a-windows-machine-to-use-yeoman/ When I execute yo webapp everything goes well. But when I use the grunt command I…
norbert
  • 525
  • 2
  • 6
  • 16
21
votes
1 answer

Yeoman: EACCES error running karma unit test for Angularjs

I'm following the sample Yeoman workflow listed on yeoman.io: npm install -g generator-angular generator-karma # install generators yo angular # scaffold out a AngularJS project bower install angular-ui # install a…
Caleb
  • 2,303
  • 1
  • 20
  • 21
20
votes
2 answers

Testing yeoman generator locally

I'm creating a yeoman generator for my web projects. But I wonder how I can try and test my changes before publishing it? Since I have installed it once, it will not run my local development version, instead it runs my installed version. Any…
Andreas Norman
  • 999
  • 1
  • 9
  • 19
19
votes
1 answer

npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm

I am installing node.js on a CentOS 7 server, and am getting the following error when I try to install yeoman: npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm The install…
CodeMed
  • 9,527
  • 70
  • 212
  • 364
19
votes
7 answers

using ui.bootstrap causing issues with carousel

I am having issues with getting the carousel working properly. I used yeomen to scaffold the angular app. I am getting this error Error: [$compile:ctreq] Controller 'carousel', required by directive 'slide', can't be…
Asim Zaidi
  • 27,016
  • 49
  • 132
  • 221
18
votes
1 answer

AngularJS Error: Module ngAnimate is not available

I'am new to angular and running into a problem. I used the yeoman angular generator and added the ngAnimate module. When I run grunt test I get the following error: Error: [$injector:modulerr] Failed to instantiate module portfolioApp due to: Error:…
user3116668
  • 183
  • 1
  • 1
  • 4
18
votes
3 answers

Best or simplest way to integrate less in yeoman?

I'm experimenting with yeoman. I want to integrate less into my yeoman or grunt build. But I haven't found I simple way to do it. I do have found to yeoman-less repository which refers to grunt-contrib-less. But that plugin is quite hard to plugin…
cremersstijn
  • 2,375
  • 4
  • 28
  • 41
17
votes
3 answers

Can no longer use npm command after trying to update

I was trying to install yeoman but it threw an error regarding self signed certificates. I looked this up and I found out I had to upgrade node. Upgrading node however threw this: (forgot to use sudo with it...) npm ERR! error rolling back Error:…
user2483724
  • 2,089
  • 5
  • 27
  • 43