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
11
votes
2 answers

How to generate graphql query from endpoint

I would like to build a script that generates an example query with all fields from a GraphQL endpoint. I found some mechanisms to get the schema as a JSON structure and to adapt the schema files to a query. but nothing takes an endpoint and…
Ruth
  • 856
  • 2
  • 13
  • 26
7
votes
1 answer

Extract CSS in NUXTjs generate

When using nuxt generate I am generating various HTML pages that happen to be about 300 kB in size. Majority of the file is CSS style placed inline to it. Is it a way to put it in an external file and reduce size of HTML ?
bensiu
  • 24,660
  • 56
  • 77
  • 117
5
votes
1 answer

nuxt generate payload undefined

I have a Nuxt project, in nuxt.config.js file, I have a function like this: generate: { async routes() { function postRoutes() { return axios .post('https://my-server.com/api/posts') .then((r) =>…
jellytran
  • 61
  • 1
  • 5
5
votes
3 answers

Generate an executable from python project

I need to generate an executable from a python project containing multiple folders and files. I tried to work with library cx_Freeze, but only worked for a single file project. Can you tell me how to do please?
Noam
  • 53
  • 4
5
votes
4 answers

Aqueduct db generate error: Bad state: NoSuchMethodError: The getter 'length' was called on null

On the system: Dart VM version: 2.9.0-14.0.dev.flutter-2b917f5b6a (be) (Wed Jun 10 15:46:47 2020 +0000) on "windows_x64" It is OK when run "aqueduct db generate" to create 00000001_initial.migration.dart But, after edit models and rerun "aqueduct db…
Tony
  • 51
  • 1
  • 2
5
votes
1 answer

Generate HTML in ERB Template View

I need to add options to a HTML-selector combobox inside an ERB template. First I create an array named var_arr with -items out of an array with items/values like foo and then I try to write it between the…
von spotz
  • 875
  • 7
  • 17
4
votes
0 answers

Android generate signed bundle or APK dialog shows unwanted project

After upgrading to Android Studio 2021.2.1 Patch 1 (from 2020.3.1 Patch 4) when generating bundles (or APK) the list of modules has quadrupled, showing modules I don't have as seen on screenshot. Every original module now comes with 3 extras,…
3c71
  • 4,313
  • 31
  • 43
4
votes
2 answers

webSphere Liberty: How to generate an output file from an server.xml with only includes

i have a server.xml with only includes. But i want to see the merged one that is used in runtime. Is there a tool or script that generates a output file from a server.xml with only includes (thats also used in the runtime of liberty ?) This would…
4
votes
4 answers

What is a fast way to generate parquet data files with Spark for testing Hive/Presto/Drill/etc?

I frequently find myself needing to generate parquet files for testing infrastructure components like Hive, Presto, Drill, etc. There are surprisingly few sample parquet data sets online, and one of the only ones I come across here…
John Humphreys
  • 37,047
  • 37
  • 155
  • 255
3
votes
1 answer

Adding a new variable with a code/formula that generates a moderate association with a previous one

I try adding a new variable that has an association with the previous one. Is there a math/code trick/formula to increase the width of confidence bands in this association? library(tidyverse) d = tibble(a = rnorm(50, 100, 20)) #adding a new…
st4co4
  • 445
  • 3
  • 10
3
votes
2 answers

How can I add a + as a String using C Language?

I am trying to generate numbers from 1-5 using for loop and display their sum. I am aiming to have an output that looks like this: 1 + 2 + 3 + 4 + 5 = 15 But instead, I get the output: + 1 + 2 + 3 + 4 + 5 = 15 #include void…
Sue
  • 33
  • 2
3
votes
3 answers

COBOL generating XML-file with CDATA

I am trying to make a XML file in COBOL using the GENERATE statement. So far so good. But with this particular xml it needs to contain a seperate xml file within. So i want to use the CDATA tag around it. But, is there a way to do this in COBOL…
Martijn
  • 31
  • 4
3
votes
1 answer

How to pass arguments via go generate

Here is how my project is structure ├── cmd │   ├── orders │   │   ├── main.go └── scripts └── codegenerator.go the codegenerator.go file is the file where i have put my code to generate the code. Here is the logic for codegenerator.go rename…
Em Ae
  • 8,167
  • 27
  • 95
  • 162
3
votes
4 answers

How to generate number with 3 digit from list of number by c++?

I'm a new programmer, and want to generate array of number with 3-digits from number list (2,5,8). I have created a code, but the output is not my expected result. This is my simple code: int main() { int arr[3]={2,5,8}; int d=3; int…
jowwyss79
  • 33
  • 6
3
votes
1 answer

Prisma generate: Field configuration to merge has duplicate field names

Running prisma generate I encurred in this output and no code is generated. prisma generate Generating schema... [ { species: { type: [Object], args: [Object] } }, { species: { type: [Object], args: [Object] }, Generating schema ! ! Field…
Massimo Variolo
  • 4,669
  • 6
  • 38
  • 64
1
2 3
24 25