Questions tagged [generate]

Any question related to the Generate developer framework and CLI tool should tagged using the `generate` tag. How to use the generate CLI to run this generator ? How to use this generator as a plugin ? How to run a task from a subgenerator ? How to create my own Generate generator ?

What is generate ?

Generate is an extremely modern command line tool and developer framework for scaffolding out any kind of developer projects. Generate offers the robustness and configurability of Yeoman, the expressiveness and simplicity of Slush, and more powerful flow control and composability than either.

It is an open source framework hosted on github under the MIT license.

It has its own Github organization to namespace all the generators authored by the same author, Jon Schlinkert.

Generate is part of the awesome node toolkit created by the same author: https://github.com/node-toolkit

Some of the best related projects composing the node-toolkit:

Related StackOverflow tags

371 questions
0
votes
1 answer

What is the most efficient way to generate dynamic interval switch structure for dividing an area into equal pieces in python?

Suppose you've got a rectangle (x=3456) * (y=1943). These dimension values may vary. What I need to make is dividing this area equally into z pixel square portions and print A1, A2, A3,..,B1, B2, B3..,C1, C2, C3 depending on where my cursor is on.…
ybaylav
  • 41
  • 8
0
votes
1 answer

Angular 7 CLI ng generate component error: 'Cannot read property 'sourceRoot' of undefined'

I was receiving the following error when I tried to run the following command on the CLI: ng generate component [component-name] I kept getting: Cannot read property 'sourceRoot' of undefined I am guessing I started getting it after updating the…
0
votes
1 answer

How to generate a digital signal from a dump file update?

Is it possible to generate a digital signal for a PLC after a .dmp file is updated? I'm currently working with a .exe that generates a shared dump file and updates it with gibberish ASCII upon finding an "endpoint." I'd like to generate some type of…
MacItaly
  • 345
  • 4
  • 16
0
votes
1 answer

maven project creation fails

I try to generate a new project in an empty folder on Windows 10. I am sure the directory is EMPTY. Reference: Error when creating a new maven project C:\Projects\Java\>mvn -version Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3;…
Kok How Teh
  • 3,298
  • 6
  • 47
  • 85
0
votes
1 answer

Generating code from a uml model(activity, statechart)

I need to generate java code from uml. I tested different modeling Tools such as modelio, eclipse modeling framework emf, visual paradigm.... However all of these help me to generate java code from class diagram, which will only help me in…
fatima
  • 35
  • 4
0
votes
1 answer

Simple C random lottery number

I would like to generate 5 different numbers in the simplest way and put them into an array. Something is wrong with my way of thinking, could you please correct my code? void lottery(int *array){ int i = 0; while(i != 5){ bool good…
kaycaborr
  • 49
  • 1
  • 5
0
votes
2 answers

Given a string as the type name of a generic class, how can I create the instance in runtime. If it is not possible, Is there another way?

User supports userType and userFunction by config: {"userType": "com.user.Person", "userFunction": "com.user.userFunction"} we expect to get data for user and feed data to userFunction: public class DataConsumer { //get data from some…
0
votes
1 answer

JHipster without database but still with the possibility to generate entitys

Is it possible to create a JHipster project without a database and use instead of this persistenz-layer a third party framework? I already saw the possibility to create a JHipster microservice without a database but then you can’t generate any…
0
votes
1 answer

How to vary a struct going through a port in system verilog - generate doesnt work

module testy #( parameter W = 10, parameter C = 2 ) ( aa ); generate if (W == 8) begin:W8 if(C == 1) begin:W8C1 typedef struct { …
user9906612
  • 77
  • 1
  • 9
0
votes
0 answers

Stop PHP from auto generating values

I am new in php. I have a PHP script which auto generates a tracking number in mysql database cons_no is the name of the table, I wish to enter the cons_no data manually. Also when I try to edit the cons_no value from the edit page, other things are…
0
votes
1 answer

Creating exhaustive case columns in R

I am trying to generate a column "Gender Combinations" that creates exhaustive categories of interaction terms like in the table below. Is there an easy way to do this in R? +--------------+--------------+--------------+---------------------+ | EMP…
abi
  • 285
  • 1
  • 7
  • 17
0
votes
3 answers

Creating exhaustive case columns in SQL

I am trying to generate a column "Gender Combinations" that creates exhaustive categories of interaction terms like in the table below. Is there an easy way to do this in SQL (microsoft…
abi
  • 285
  • 1
  • 7
  • 17
0
votes
1 answer

How can I (using JavaScript) generate a downloadable directory and place my generated files into that directory?

I'm trying to generate React files already set up to import their children, all placed into a single downloadable folder. Generating the individual files was easy, but I cannot figure out how to generate a folder and place these files into it.…
0
votes
1 answer

C# class to Json e6 class

I understand there is a plethora of tools out there to convert from json class / object to a C# class. Is there a way to do it the other way around? Get a C# class .. paste it in and generate a json object or typescript class? Thanks
Mike Gmez
  • 111
  • 3
  • 18
0
votes
5 answers

How to generate dynamic id for JavaScript object when inserting new element?

I have array of JavaScript object elements inside. Here is example: var contacts =[{"id":1,"first":"Mike","last":"Johnson","email":"mjohnson@gmail.com","phone":"(203)…
espresso_coffee
  • 5,980
  • 11
  • 83
  • 193