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

Is There a Way to Generate Code for OpenDDS

I know that RTI has a code generator to create the publisher and subscriber which then allow you to create DataReaders and DataWriters. Is there any way to generate the needed code in OpenDDS? I have already established the idl file that lists the…
rosiepati
  • 19
  • 4
0
votes
2 answers

Generating consecutive numbered urls

I want to generate a text file containing the folowing lines: http://example.com/file1.pdf http://example.com/file2.pdf http://example.com/file3.pdf . . http://example.com/file1000.pdf Can any one advise how to do it using unix command line,…
Majid
  • 13
  • 4
0
votes
2 answers

Generate PDF from dynamic php file

I have a php page which is dynamically populated with data, now when I press a download button I want to be able to download that page with that specific data on it, as a PDF. I found a library called tcpdf that is working for me but I don't know…
Rwi
  • 107
  • 1
  • 2
  • 10
0
votes
3 answers

Nodejs Generate document on BE and send to user (FE)

I don't have any idea how to handle this so I have no code to show, I only need (I think ) some guidance. I have a nodeJs server (API) and a vueJs frontend. I have an endpoint that give me a summary (it change from user to user ) and the data comes…
Ussagui
  • 13
  • 1
  • 4
0
votes
1 answer

Cant generate php artisan key

Ia m trying to set up Snipe IT on Windows server 2016 (VM) . I stack on part where i need to generate key. When i execute php artisan key:generate i get following error.I checked ".env" file and I think everything is correct. I tried with composer…
Hrvoje
  • 11
  • 1
0
votes
1 answer

VHDL: for...loop instead of for...generate

Hello I have a problem in using for...loop instead of for...generate. I'd like to use for...loop because our Professor only taught us about it. library ieee; use ieee.std_logic_1164.all; entity supersomm_4bit is port ( c_in: in std_logic; …
Corby
  • 3
  • 1
  • 3
0
votes
2 answers

Oracle 11g: how to generate numbers like in chart of accounts

In oracle 11g (SQL or PL/SQL), for chart of accounts I want to generate numbers like: start from level 2: (level 1 a/c nos. are 1,2,3,4,5) if it is in head 1 which is Asset then it will generate First number as 101 if it is in head 2 which is…
Oralover
  • 83
  • 2
  • 16
0
votes
0 answers

Passing variables from function to function in Python

import random def p_deal(pd,pc,ps): pc.append(random.choice(pd)) ps = sum(pc) print(pc,ps) if ps < 22: main(deck,p_cards,p_sum,d_cards,d_sum) else: print('busted, you lose') def d_deal(dd,dc,ds): if ds > 21: …
mugenbyte
  • 1
  • 1
0
votes
1 answer

Missing datas in components when using fetch() and navigating via nuxt-link in generated static site

I have a question regarding the use of fetch in components. I'm developing a website using the target: static parameter. I get my datas from DATO using asynData() in pages and fetch() in components. Unfortunately when I generate my site I do have…
Elisabeth Hamel
  • 178
  • 1
  • 11
0
votes
3 answers

The best way to generate a randomised matrix in Java

So I'm using a preference matrix (2d array) within my program, in which each person ranks the other members from most favorable to least favorable. The individual ranks themselves last in the array. For example: {[1, 2, 3, 4, 5, 0], [2, 3, 4, 5, 0,…
amazmus
  • 3
  • 1
0
votes
2 answers

How to generate an alphanumeric tree changes with criteria?

I'm working on excel sheet template used for SAP System and I have 2 columns looks like below: Column C Column E Level Element Code 3 ABCD.01.01.01 4 …
Meho2016
  • 25
  • 5
0
votes
3 answers

Efficient ways to dynamiclly generate nested DIV-structures in Java Script

I've created a simple program, that gets data from a database and displays it in an Instagram post fashion. Everything is working so far, but I hoped to find a more compact way to generate this type of structure. I am using the…
0
votes
1 answer

Generate all RGB Colors as Images

I want to generate all possible RGB colors as images and save them to my drive. For testing purposes I only want to generate the first 1000 or so. It should start by HEX #000000 and go up to #FFFFFF. The images should be 1x1 pixels. My question now…
lespucci
  • 29
  • 5
0
votes
1 answer

IntelliJ Plugin - How to automatic generate Code Snippet [Java]

I am currently working on a project that is realized via an IntelliJ plugin. Unfortunately I can't find an example/guide how to set up the function for "automatic code generation". An example would be the getter/setter methods of IntelliJ. (Alt +…
SBifi
  • 7
  • 1
  • 3
0
votes
1 answer

how to generate random one indefenitly till it respects a condition in Java?

Do you have an idea how to generate a random Object until an object doesn't respect a condition ? I tried like this : //Btw getTeam1() is a hashMap of Integer,Fighter (a type of objects that I use) //randomIndex Object randomName =…