UNPKG

3.76 kBMarkdownView Raw
1<!-- toc -->
2
3- [Build](#build)
4 * [v:publish-](#vpublish-)
5 * [script:js](#scriptjs)
6- [Groups2](#groups2)
7 * [console:js](#consolejs)
8 * [input:js-](#inputjs-)
9 * [log:much:js](#logmuchjs)
10
11<!-- tocstop -->
12
13# Build
14
15Build group description
16
17## v:publish-
18
19Update v and push
20
21```bash
22node src/utils/release/publish.js
23```
24
25## add:command
26
27```bash
28oclif command
29```
30
31## script:js
32
33```js
34const chalk = require("chalk");
35console.log(`${chalk.underline.bold("RUNS JS\n\nt")}`);
36```
37
38# Groups2
39
40That darn second group!!!!!
41
42## console:js
43
44Only one script here with bash
45
46```bash
47node src/sampleScripts/exampleLogTimeout.js
48```
49
50## input:js-
51
52Get some input from user
53
54```bash
55node src/sampleScripts/exampleInput.js
56```
57
58## log:much:js
59
60Basically logs till yo momma says stop!
61
62```js
63const chalk = require("chalk");
64const sample = arr => arr[Math.floor(Math.random() * arr.length)];
65const quotes = [
66 "The trickster's functiowhat they reslly s function is to break taboos, create mischief, stir things up. In the end, the trickster gives people what they res function is to break taboos, create mischief, stir things up. In the end, the trickster gives people what they rewant, some sort of freedom. - Tom Robbins",
67 '"Disbelief in magic can really s function is to break taboos, create mischief, stir things up. In the end, the trickster gives people what they res function is to break taboos, create mischief, stir things up. In the end, the trickster gives people what they rewant, some sort of freedom. - Tom Robbins",\n' +
68 ' "Disbelief in magic can force a poor soul into believing in government and business. - Tom Robbins',
69 'The trouble with the fasforce a poor soul into believing in government and business. - Tom Robbins",\n' +
70 ' "The trouble with the fasforce a poor soul into believing in government and business. - Tom Robbins",\n' +
71 ' "The trouble with the fast lane is that all the movement is horizontal. And I like to go vertical sometimes. - Tom Robbins',
72 "Our world isn't made of earth, air and water or even molecules and atoms; our world is made of language. - Tom Robbimade of earth, air and water or even molecules and atoms; our world is made of language. - Tom Robbins",
73 "I'm not infatuated with frivoith frivoith frivoith frivoith frivoith frivoith frivoith frivolousness. We're just good friends. - Tom Robbins",
74 "In fiction, when you paint yourself into a corner, you can write a pair of suction cups onto the bottoms of your shoes and walk up the wall and out the skylight and see the sun breaking through the clouds. In nonfiction, you don't have that luxury. - Tom Robbins"
75];
76let sxy;
77const getOption = st => {
78 // if (Math.random() > 0.5) {
79 // st = st + sample(quotes) + sample(quotes) + sample(quotes);
80 // }
81 let options = [
82 chalk.blue(st),
83 chalk.underline.green(st),
84 chalk.green.bgRed.bold(st),
85 chalk.blue(st, st, st, st),
86 chalk.red(st, chalk.underline.bgBlue(st) + st)
87 ];
88 return sample(options);
89};
90let isMil = 0;
91const theRun = async () => {
92 return new Promise(resolve => {
93 sxy = setInterval(() => {
94 const qt = sample(quotes);
95 console.log(new Date() + " ------- ----- ---- \n");
96 console.log(getOption(qt));
97 console.log(new Date() + " ------- ----- ---- \n");
98 console.log("----- ---- \n");
99 console.log("----- ---- \n");
100 console.log("----- ---- \n");
101 if (isMil === 30) {
102 clearInterval(sxy);
103 console.log("DONE DONE DONE");
104 resolve();
105 } else {
106 isMil += 10;
107 }
108 }, 1000);
109 });
110};
111
112theRun();
113```