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

Input prompt with options yeoman

I'm new to programming, and I'm creating a generator with yeoman-generator. How do I go through an array of objects and select the option I choose? I tried it but it didn't work. can you help me? prompting() { const prompts = [ { type:…
Allison1
  • 57
  • 3
  • 9
0
votes
0 answers

JHipster how to get yeoman prompt input without using props?

Suppose I have an array that contains an object in yeoman prompt: const getDatabaseName = [ { type: 'input', name: 'dbName', message: 'Please enter your database name:', default: 'testdb', …
jukyduky
  • 39
  • 6
0
votes
1 answer

How to generate JHipster source files multiple times using a loop?

In generator-jhipster repository, specifically files.js in ../generators/server/files.js, it generates java source files and directories based on some conditions. For example: { condition: generator => generator.databaseType ===…
jukyduky
  • 39
  • 6
0
votes
0 answers

JHipster yeoman repeating prompt based on option selected

Suppose I want to prompt the user to select among a list of database options with "type checkbox": { type: 'checkbox', name: 'databaseType', message: `Which ${chalk.yellow('*type*')} of database(s) would you…
jche
  • 129
  • 2
  • 16
0
votes
1 answer

yo angular-fullstack:endpoint message does not generate message.socket.js

yo angular-fullstack:endpoint shopPacket does not generate shopPacket.socket.js I tried to update yo angular full stack generator but still does not work yo angular-fullstack:endpoint shopPacket ? What will the url of your endpoint be?…
Lilian Bideau
  • 186
  • 2
  • 15
0
votes
1 answer

`yo office` gives error Spawn git ENONENT

I am using the yeoman-generator office as per the official docs https://learn.microsoft.com/en-us/office/dev/add-ins/quickstarts/project-quickstart Node: Version :10.16.0 (LTS) Ran the following command. No error npm install -g yo…
Ragavan Rajan
  • 4,171
  • 1
  • 25
  • 43
0
votes
2 answers

How do I get command dotnet to restore?

I am trying to create a web app using asp.net core in terminal on MacOS v10.14.5 using yeoman. dotnet restore dotnet new restore dotnet restore new ┌────────────────────────────────────────────────────────────┐ │ yo update check…
0
votes
1 answer

How to install yo on node@12 and npm@6.9.0 with zshrc via homebrew

I have been trying to install yo to integrate and test botkit but had issues with yo and npm and node as I updated brew on my mac to the latest. Here is how I resolved it.
0
votes
1 answer

Yeoman CLI tool enforce default options

I'm using yeoman cli tool to install a custom generator, I would like to call it from a gui application where the user could choose option using a window with some options. I want to pass this options colect from windows and pass this to the yeoman…
mastervv
  • 382
  • 1
  • 4
  • 20
0
votes
1 answer

Is there any query to find data between given dates?

I am sending the startDate and endDate in the URL and hits the query to find the data between startDate and endDate var startDate = res.req.query.startDate ? moment(res.req.query.startDate, 'YYYY-MM-DD').valueOf() : null var endDate =…
0
votes
1 answer

Copying from multiple location or appending from file to file

In nodejs , I want to copy multiple files to a single file and want to append one file into another file, What is the function name? this.fs.copy( this.templatePath('testing.json' + 'testing2.json'), …
0
votes
1 answer

Get the input from Prompt and use it to change a field inside a javascript file, Yeoman

I'm doing a generator using Yeoman I know it must be very simple, but I start using yeoman very recently and I'm not very familiar with it. I want to get the user's input and use it to change a class name or variable I ask the user what is the…
Mateus Gomes
  • 45
  • 2
  • 4
0
votes
1 answer

Call yeoman generator from code with options

I created a yeoman generator with user interaction, that can be called in the terminal like (after running npm link): yo mygenerator --name test --path /test/path --project testproject Now I want to include this generator in my vscode extension.…
Zoker
  • 2,020
  • 5
  • 32
  • 53
0
votes
1 answer

stdout/stderr not available from Yeoman/Node with spawnCommand

For some reason, I cannot capture the output of the following from Yeoman's this.spawnCommand or spawnCommandSync method: const result = this.spawnCommandSync( "git", ["checkout", "-b", branchName], { cwd:…
Elliot Rodriguez
  • 608
  • 6
  • 25
0
votes
0 answers

Error when running custom yeoman generator

I am building a custom Yeoman generator. When I run it the project is created as expected but an error is thrown. This is the stacktrace: events.js:183 throw er; // Unhandled 'error' event ^ Error: spawn EACCES at _errnoException…
alvaro
  • 452
  • 5
  • 13
1 2 3
99
100