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
0
votes
1 answer

Running a script asynchronous

I am making a Yeoman generator to install CraftCMS with some custom settings and files preloaded for faster development. I've got the to point where the script does a composer create-project craftcms/craft. For me, the next logical step would be to…
0
votes
1 answer

How do I resolve this NPM / Yeoman error log for an Office Add-in (Outlook)?

I am following Microsoft Office Add-in Project Generator - YO OFFICE!. When I try to npm start, it crashed, and I show the command line output below. Points to note: the Yeoman yo office command reported no errors and ended with "Congratulations!…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
0
votes
0 answers

JHipster blueprint unit tests

I'm creating a JHipster Blueprint and I would like to add unit tests in order to have reliable tests and a short feedback loop. However neither the official showcase blueprint nor the JHipster blueprint generator have unit tests using mocha or…
0
votes
1 answer

Yeoman, using yosay before composeWith

I am new to Javascript, and for what i see, i may have a async code problem here: I have a function to call composewith in my main generator. Before calling composeWith in that function, I use yosay() if needed. My problem is that all yoSay…
0
votes
1 answer

How to use the createDummyGenerator() function?

I can't understand how to use the createDummyGenerator() function when testing a generator that relies on external generators. I have tried: test.js: ... return helpers.run(require.resolve('../generators/app')) .withGenerators([ …
springloaded
  • 1,079
  • 2
  • 13
  • 23
0
votes
1 answer

Unknown provider: aProvider Error inside Yeoman AngulajrJS generated app

I generated an AngularJS app with Yeoman AngularJS generator, which is working fine when running with original source code. But when I try to run the app from the dist folder generated by Grunt build I get the following error: vendor.972e9c35.js:5…
nadavgam
  • 2,014
  • 5
  • 20
  • 48
0
votes
1 answer

Yeoman Generator - How to Parse Package.json of Generator Project

I have the following, standard folder structure within my generator. The task I am current struggling with is I currently have a templated _package.json that I write to disk for the main generation. There is one variable in the written…
Ben.Vineyard
  • 1,149
  • 8
  • 14
0
votes
1 answer

Can not run 'npm start' ReactJS

I'm new in ReactJS nad Yeoman generator. Soo I have a problem, becasue when I generate project with this command npm install -g yo npm install -g generator-react-webpack yo react-webpack Then I set up project name, use css, and enable postcss.…
artist
  • 319
  • 1
  • 5
  • 18
0
votes
1 answer

Yeoman giving permission errors even with sudo

I was following this tutorial and installed Yeoman and the Azure's generator. So, when I did: sudo yo azuresfcontainer, it gives me the following error: /usr/local/lib/node_modules/yo/node_modules/fast-glob/out/providers/reader-sync.js:45 …
Dawny33
  • 10,543
  • 21
  • 82
  • 134
0
votes
1 answer

Writing Karma tests on an app developed with Yeoman

I'm working on an angular app which was scaffolded using Yeoman. The generator comes with Karma/Jasmine configured and a test file on the main controller. I have over written the code in the main controller with code needed for my app. Now I'm…
0
votes
1 answer

How to change the dependency manager of the installed JHipster generator and a JHipster project?

I installed JHipster generator using Yarn: yarn global add generator-jhipster Now I have two concerns: 1- What if I change my mind and want to generate new JHipster projects managed by "npm" when I use the yeoman command? I mean: yo…
AliReza
  • 706
  • 2
  • 10
  • 30
0
votes
1 answer

Changing the default version of the Net Core SDK on Yeoman

Recently I installed version 2.0 of the Apsnet core SDK on my Deepin Linux. I'm using Yeoman for template generation. However, templates are always generated based on version 1.0 of the SDK. Changing the version directly in the Global.json file does…
Rogério Oliveira
  • 414
  • 1
  • 4
  • 15
0
votes
0 answers

await not working in runInstall

I've been using async/await code inside a generator that I've been creating and have not faced any issue async prompting() { await someFunction() } But when i try to use this same pattern on runInstall, yarnInstall or npmInstall it seems to…
a1626
  • 2,953
  • 1
  • 19
  • 34
0
votes
1 answer

How can I include css and image files into my AngularJS project using grunt?

I have an AngularJS project, created using the Yeoman template. I'm trying to build the final distribution with Grunt, using 'grunt build'. The problem is that some of my CSS, JavaScript, and image files are not in the standard scripts/ or styles/…
Jesse Barnum
  • 6,507
  • 6
  • 40
  • 69
0
votes
1 answer

Why Yeoman is not present after i installed it?

I try to install yeoman but it's not working : npm install -g yo /Users/john/npm/bin/yo-complete -> /Users/john/npm/lib/node_modules/yo/lib/completion/index.js /Users/john/npm/bin/yo -> /Users/john/npm/lib/node_modules/yo/lib/cli.js > yo@2.0.1…
Pracede
  • 4,226
  • 16
  • 65
  • 110
1 2 3
99
100