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
153
votes
40 answers

NPM: npm-cli.js not found when running npm

Usually I can install a library using npm but today when installing yeoman I encountered this errors. Please help to figure out what's root cause. D:\Works\phonegap\ionic\todo>npm install -g yo module.js:340 throw err; ^ Error:…
user1192476
  • 3,185
  • 3
  • 15
  • 9
141
votes
17 answers

NPM modules won't install globally without sudo

I have just reinstalled Ubuntu 12.04 LTS, and before anything else i did these steps: Installed Node via package manager with the following script sudo apt-get update sudo apt-get install python-software-properties python g++ make sudo…
HeberLZ
  • 12,715
  • 4
  • 22
  • 24
123
votes
13 answers

How to fix bower ECMDERR

I'm using "yeoman" and "bower" on windows 7 but got the following error when I create the app yo webapp The error is bower not-cached git://github.com/jlong/sass-bootstrap.git#~3.0.0 bower resolve …
leoh
  • 10,378
  • 7
  • 28
  • 39
74
votes
6 answers

npm / yeoman install generator-angular without sudo

I tried to install generator-angularjs using Yo (Yoeman) without sudo: npm install -g generator-angular I get: Error: EACCES, mkdir '/usr/lib/node_modules/generator-angular' When I type in sudo yo, yo tells me that I should not use sudo (which is…
Karan
  • 14,824
  • 24
  • 91
  • 157
72
votes
3 answers

What is the preferred way of updating Yeoman generators?

I've created a Yeoman generator and want my team to use it. What happens if I update my generator on Github? They installed the generator locally in an older version. Do they always have to install again to get the latest version? Team members…
Markus
  • 2,214
  • 3
  • 19
  • 32
65
votes
15 answers

Fontawesome is not working when project is built with grunt

I'm using the font library font awesome. It works when the project is not built/uglified with grunt. But when I'm building the project with grunt it's not working. I get this error in console: .../fonts/fontawesome-webfont.woff?v=4.0.3 404 (Not…
Joe
  • 4,274
  • 32
  • 95
  • 175
56
votes
4 answers

How do I force a subtree push to overwrite remote changes?

We use a subtree deployment a lá this Gist to deploy a subdirectory of our Yeoman project. In our case, the branch is called production, not gh-pages. This worked perfectly until yesterday when the Git server rejected the command git subtree push…
ele
  • 6,021
  • 5
  • 25
  • 35
50
votes
5 answers

AngularJS + sails.js

I am developing an app that can utilize sails.js for back-end and AngularJS for Front-end. I thought that I'll create an Angular App using Yeoman-angular generator https://github.com/yeoman/generator-angular, and once I am done with the front-end…
rishy
  • 1,559
  • 3
  • 14
  • 17
49
votes
3 answers

grunt Fatal error: Unable to find local grunt in Yeoman

I installed yeoman and started the examples which are provided in the official documentation. I went through the suggested operations yo webapp bower install underscore grunt After running grunt I have the message grunt-cli: The…
blackbird014
  • 2,069
  • 1
  • 18
  • 23
46
votes
1 answer

<%= yeoman.app %> and <%=yeoman.dist %> variables for a gruntfile

I often see in some example gruntfiles the use of <%= yeoman.app %> and <%= yeoman.dist %> environment variables. I haven't used this myself but where do those variables get derived from? Also, is it possible to override those variables? Does one…
chrisjlee
  • 21,691
  • 27
  • 82
  • 112
46
votes
4 answers

How to remove a Yeoman generator

I accidentally installed a generator that I don't want. I can't find any method to remove it. What should I do to accomplish this?
funerr
  • 7,212
  • 14
  • 81
  • 129
46
votes
5 answers

Using grunt server, how can I redirect all requests to root url?

I am building my first Angular.js application and I'm using Yeoman. Yeoman uses Grunt to allow you to run a node.js connect server with the command 'grunt server'. I'm running my angular application in html5 mode. According to the angular docs,…
Charlie Martin
  • 8,208
  • 3
  • 35
  • 41
41
votes
1 answer

How to upgrade existing project scaffolded with Yeoman

I used generator-angular a few months ago to scaffold a project and the whole ecosystem (karma, Node versions, grunt packages) has moved on quite significantly. I keep running into problems running tests, building things, and so on. I know I can use…
mgnb
  • 2,803
  • 2
  • 16
  • 15
40
votes
3 answers

What does Ynaxdh stand for? (Yeoman)

I'm new to JavaScript automation stuff, especially yeoman (so new that I'm still delighted by the ASCII greet) _-----_ | | |--(o)--| .--------------------------. `---------´ | Welcome to Yeoman, | ( _´U`_ ) | …
ina
  • 19,167
  • 39
  • 122
  • 201
1
2 3
99 100