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

Creating a new backbone view in a yeoman scaffolded backbone project

yeoman init backbone:view input This generates two files: app/scripts/templates/input.ejs and app/scripts/views/input-view.js How do instantiate this view from within the application?
Leila Hamon
  • 2,505
  • 7
  • 24
  • 32
1
vote
1 answer

extend yeoman build process to minify json

i'm looking for a way to extend the build process of yeoman with something to minify json files ... i found a npm package which can minify json files but it doesn't export any functions :/ anyone that knows how to integrate this into the yeoman…
Daan Poron
  • 2,708
  • 5
  • 29
  • 33
1
vote
1 answer

mocha stuck, no output on console

I'm using mocha within yeoman as a build target: yeoman test. But the only output I see is Running "mocha:all" (mocha) task Testing index.html When I open that very same index.html in a browser, it works. I'd expect the test results to show up in…
Andy
  • 4,783
  • 2
  • 26
  • 51
1
vote
2 answers

Using yeoman for development of a mobile website?

I am currently looking for a tool/workflow to support me in creating a mobile version of our website. Due to the main subject of our website, this should be a dedicated mobile version instead of a responsive version of our main site. I came across…
j0nes
  • 8,041
  • 3
  • 37
  • 40
1
vote
1 answer

Yeoman Generator in CoffeeScript - HookFor Warning

I'm trying to develop a custom generator for Yeoman using CoffeeScript but I'm facing a problem. When I use the hookFor method in the constructor of my class Generator, I get a warning hookFor must be used within the constructor when I try to init…
1
vote
1 answer

How to add Ember-Bootstrap to an EmberJS project created via Yeoman

I've started working on an EmberJS application and used Yeoman to generate the skeleton structure. Now, I'd like to add Ember-Bootstrap to my project but am having trouble doing so. I downloaded the latest version from GitHub and unzipped it but I'm…
juice
  • 23
  • 5
0
votes
0 answers

Unable to debug office.js add-ins on Windows using Visual Studio Code without admin privilege

I created a Word Add-in using Yeoman generator and try to set up my development environment with VSC on Windows 10. When I start command npm start or npx office-addin-debugging start ./manifest.xml, I got the following message Debugging is being…
zjda
  • 31
  • 2
  • 6
0
votes
1 answer

Avoid escaping in Yeoman Generator

I want to replace a template in the YEOMAN Generator with the string 'lr_task->'. But in the result file is the string escaped to 'lr_task->' (html like). I'm using this.fs.copyTpl( ) for the replacement of the templates. How can I avoid this…
0
votes
0 answers

Debug configuration for debugging yeoman generator in vscode

I am trying to debug a custom yeoman generator. The yeoman generator I am writing is in typescript. The launch.json looks like this: { "version": "0.2.0", "configurations": [ { "name": "Yeoman Generator Debug", …
0
votes
0 answers

npm-wp-s-theme domain.enter is not a function error

when I go yo npm-wp-s-theme I get the error domain.enter is not a function error versions: yo 4.3.1 npm 9.7.2 node 20.4.0 macOS terminal
librasteve
  • 6,832
  • 8
  • 30
0
votes
1 answer

Unable to install yo - with Node V8 and V10 - Error - x yo version

I found a bug trying to install Yeoman Generator ( npm install yo --global) , but only with Node V8 and V10 and I only manage to install when a use the version V14. My current SPFX solution is using SPFX 1.10 and have compatibility with v8 and…
0
votes
0 answers

Custom Yeoman generator - how do I specify which package manager to use?

I made a custom Yeoman generator using yeoman-generator v 5.8.0, and everything seems to be working fine except that I get an error in the console: Error detecting the package manager. Falling back to npm. Which in the end is also fine, it still…
Dylan Cristy
  • 916
  • 11
  • 29
0
votes
0 answers

npm start command returns errors for Excel webAddins

I have generated an Excel WebAddin template (TypeScript / JavaScript) with Yeoman but can run it. It returns the following errors: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! office-addin-taskpane@0.0.1 start: office-addin-debugging start…
0
votes
1 answer

Error while generating a UI5 project using "generator-easy-ui5" in CLI

While I am performing the steps according to the tutorial Create an App for SAP Build Work Zone, standard edition, it throws the following error: I tried to execute by following the steps but can't proceed because of the error.
0
votes
0 answers

unable to install yeoman using npm

I'm trying to install yeoman using npm install -g yo. I've followed the following steps: I've uninstalled the nodejs. Deleted the npm & npm-cache folders Removed the path in environment variable if any Re-installed the nodejs tried to install the…
venu
  • 1
  • 2