This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathGeneratingReactProject.html
236 lines (236 loc) · 19.9 KB
/
GeneratingReactProject.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>GeneratingReactProject</title>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
</style>
<style type="text/css">
a.sourceLine { display: inline-block; line-height: 1.25; }
a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
a.sourceLine:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode { white-space: pre; position: relative; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
code.sourceCode { white-space: pre-wrap; }
a.sourceLine { text-indent: -1em; padding-left: 1em; }
}
pre.numberSource a.sourceLine
{ position: relative; left: -4em; }
pre.numberSource a.sourceLine::before
{ content: attr(title);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; pointer-events: all; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
color: #aaaaaa;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
div.sourceCode
{ }
@media screen {
a.sourceLine::before { text-decoration: underline; }
}
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
</style>
</head>
<body>
<h1 id="generating-react-project">Generating React Project</h1>
<p>takes soooo much time!</p>
<p><img src=".gitbook/assets/image%20%2812%29.png" /></p>
<pre class="text"><code>npx create-react-app my-app
cd my-app
npm start</code></pre>
<p><img src=".gitbook/assets/image%20%2818%29.png" /></p>
<p><img src=".gitbook/assets/image%20%2814%29.png" /></p>
<p><img src=".gitbook/assets/image%20%2813%29.png" /></p>
<p><img src=".gitbook/assets/image%20%2819%29.png" /></p>
<p><img src=".gitbook/assets/image%20%2816%29.png" /></p>
<p><img src=".gitbook/assets/image%20%2817%29.png" /></p>
<h4 id="babel-can-translate-between-different-versions-of-javascript-so-that-your-code-can-run-on-browsers-that-are-limited-to-es5-compatibility-included-by-default-with-every-new-react-project.">Babel can translate between different versions of javascript so that your code can run on browsers that are limited to ES5 compatibility… included by default with every new react project.</h4>
<div class="sourceCode" id="cb2"><pre class="sourceCode bash"><code class="sourceCode bash"><a class="sourceLine" id="cb2-1" title="1"><span class="kw">|</span><span class="ex">15</span>:25:30<span class="kw">|</span><span class="ex">bryan@LAPTOP-9LGJ3JGS</span>:[05-installing-nodejs] 05-installing-nodejs_exitstatus:0__________________________________________________________o<span class="op">></span></a>
<a class="sourceLine" id="cb2-2" title="2"></a>
<a class="sourceLine" id="cb2-3" title="3"><span class="ex">npx</span> create-react-app my-app</a>
<a class="sourceLine" id="cb2-4" title="4"><span class="ex">y-app</span></a>
<a class="sourceLine" id="cb2-5" title="5"><span class="ex">npm</span> start</a>
<a class="sourceLine" id="cb2-6" title="6"><span class="ex">Creating</span> a new React app in /mnt/c/MY-WEB-DEV/10-React-V3/05-installing-nodejs/my-app.</a>
<a class="sourceLine" id="cb2-7" title="7"></a>
<a class="sourceLine" id="cb2-8" title="8"></a>
<a class="sourceLine" id="cb2-9" title="9"><span class="ex">Installing</span> packages. This might take a couple of minutes.</a>
<a class="sourceLine" id="cb2-10" title="10"><span class="ex">Installing</span> react, react-dom, and react-scripts with cra-template...</a>
<a class="sourceLine" id="cb2-11" title="11"></a>
<a class="sourceLine" id="cb2-12" title="12"><span class="ex">yarn</span> add v1.22.5</a>
<a class="sourceLine" id="cb2-13" title="13">[<span class="ex">1</span>/<span class="ex">4</span>] Resolving packages...</a>
<a class="sourceLine" id="cb2-14" title="14">[<span class="ex">2</span>/<span class="ex">4</span>] Fetching packages...</a>
<a class="sourceLine" id="cb2-15" title="15"><span class="ex">info</span> [email protected]: The platform <span class="st">"linux"</span> is incompatible with this module.</a>
<a class="sourceLine" id="cb2-16" title="16"><span class="ex">info</span> <span class="st">"[email protected]"</span> is an optional dependency and failed compatibility check. Excluding it from installation.</a>
<a class="sourceLine" id="cb2-17" title="17"><span class="ex">info</span> [email protected]: The platform <span class="st">"linux"</span> is incompatible with this module.</a>
<a class="sourceLine" id="cb2-18" title="18"><span class="ex">info</span> <span class="st">"[email protected]"</span> is an optional dependency and failed compatibility check. Excluding it from installation.</a>
<a class="sourceLine" id="cb2-19" title="19">[<span class="ex">3</span>/<span class="ex">4</span>] Linking dependencies...</a>
<a class="sourceLine" id="cb2-20" title="20"><span class="ex">warning</span> <span class="st">"react-scripts > @typescript-eslint/eslint-plugin > [email protected]"</span> has unmet peer dependency <span class="st">"typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"</span>.</a>
<a class="sourceLine" id="cb2-21" title="21">[<span class="ex">----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</span>[4/4] Building fresh packages...</a>
<a class="sourceLine" id="cb2-22" title="22"><span class="ex">success</span> Saved lockfile.</a>
<a class="sourceLine" id="cb2-23" title="23"><span class="ex">success</span> Saved 7 new dependencies.</a>
<a class="sourceLine" id="cb2-24" title="24"><span class="ex">info</span> Direct dependencies</a>
<a class="sourceLine" id="cb2-25" title="25">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-26" title="26">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-27" title="27">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-28" title="28">└─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-29" title="29"><span class="ex">info</span> All dependencies</a>
<a class="sourceLine" id="cb2-30" title="30">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-31" title="31">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-32" title="32">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-33" title="33">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-34" title="34">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-35" title="35">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-36" title="36">└─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-37" title="37"><span class="ex">Done</span> in 768.43s.</a>
<a class="sourceLine" id="cb2-38" title="38"></a>
<a class="sourceLine" id="cb2-39" title="39"><span class="ex">Installing</span> template dependencies using yarnpkg...</a>
<a class="sourceLine" id="cb2-40" title="40"><span class="ex">yarn</span> add v1.22.5</a>
<a class="sourceLine" id="cb2-41" title="41">[<span class="ex">1</span>/<span class="ex">4</span>] Resolving packages...</a>
<a class="sourceLine" id="cb2-42" title="42">[<span class="ex">2</span>/<span class="ex">4</span>] Fetching packages...</a>
<a class="sourceLine" id="cb2-43" title="43"><span class="ex">info</span> [email protected]: The platform <span class="st">"linux"</span> is incompatible with this module.</a>
<a class="sourceLine" id="cb2-44" title="44"><span class="ex">info</span> <span class="st">"[email protected]"</span> is an optional dependency and failed compatibility check. Excluding it from installation.</a>
<a class="sourceLine" id="cb2-45" title="45"><span class="ex">info</span> [email protected]: The platform <span class="st">"linux"</span> is incompatible with this module.</a>
<a class="sourceLine" id="cb2-46" title="46"><span class="ex">info</span> <span class="st">"[email protected]"</span> is an optional dependency and failed compatibility check. Excluding it from installation.</a>
<a class="sourceLine" id="cb2-47" title="47">[<span class="ex">3</span>/<span class="ex">4</span>] Linking dependencies...</a>
<a class="sourceLine" id="cb2-48" title="48"><span class="ex">warning</span> <span class="st">"react-scripts > @typescript-eslint/eslint-plugin > [email protected]"</span> has unmet peer dependency <span class="st">"typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"</span>.</a>
<a class="sourceLine" id="cb2-49" title="49"><span class="ex">warning</span> <span class="st">" > @testing-library/[email protected]"</span> has unmet peer dependency <span class="st">"@testing-library/dom@>=7.21.4"</span>.</a>
<a class="sourceLine" id="cb2-50" title="50">[<span class="ex">4</span>/<span class="ex">4</span>] Building fresh packages...</a>
<a class="sourceLine" id="cb2-51" title="51"><span class="ex">success</span> Saved lockfile.</a>
<a class="sourceLine" id="cb2-52" title="52"><span class="ex">success</span> Saved 17 new dependencies.</a>
<a class="sourceLine" id="cb2-53" title="53"><span class="ex">info</span> Direct dependencies</a>
<a class="sourceLine" id="cb2-54" title="54">├─ <span class="ex">@testing-library/[email protected]</span></a>
<a class="sourceLine" id="cb2-55" title="55">├─ <span class="ex">@testing-library/[email protected]</span></a>
<a class="sourceLine" id="cb2-56" title="56">├─ <span class="ex">@testing-library/[email protected]</span></a>
<a class="sourceLine" id="cb2-57" title="57">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-58" title="58">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-59" title="59">└─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-60" title="60"><span class="ex">info</span> All dependencies</a>
<a class="sourceLine" id="cb2-61" title="61">├─ <span class="ex">@testing-library/[email protected]</span></a>
<a class="sourceLine" id="cb2-62" title="62">├─ <span class="ex">@testing-library/[email protected]</span></a>
<a class="sourceLine" id="cb2-63" title="63">├─ <span class="ex">@testing-library/[email protected]</span></a>
<a class="sourceLine" id="cb2-64" title="64">├─ <span class="ex">@testing-library/[email protected]</span></a>
<a class="sourceLine" id="cb2-65" title="65">├─ <span class="ex">@types/[email protected]</span></a>
<a class="sourceLine" id="cb2-66" title="66">├─ <span class="ex">@types/[email protected]</span></a>
<a class="sourceLine" id="cb2-67" title="67">├─ <span class="ex">@types/[email protected]</span></a>
<a class="sourceLine" id="cb2-68" title="68">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-69" title="69">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-70" title="70">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-71" title="71">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-72" title="72">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-73" title="73">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-74" title="74">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-75" title="75">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-76" title="76">├─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-77" title="77">└─ <span class="ex">[email protected]</span></a>
<a class="sourceLine" id="cb2-78" title="78"><span class="ex">Done</span> in 706.12s.</a>
<a class="sourceLine" id="cb2-79" title="79"><span class="ex">Removing</span> template package using yarnpkg...</a>
<a class="sourceLine" id="cb2-80" title="80"></a>
<a class="sourceLine" id="cb2-81" title="81"><span class="ex">yarn</span> remove v1.22.5</a>
<a class="sourceLine" id="cb2-82" title="82">[<span class="ex">1</span>/<span class="ex">2</span>] Removing module cra-template...</a>
<a class="sourceLine" id="cb2-83" title="83">[<span class="ex">2</span>/<span class="ex">2</span>] Regenerating lockfile and installing missing dependencies...</a>
<a class="sourceLine" id="cb2-84" title="84"><span class="ex">info</span> [email protected]: The platform <span class="st">"linux"</span> is incompatible with this module.</a>
<a class="sourceLine" id="cb2-85" title="85"><span class="ex">info</span> <span class="st">"[email protected]"</span> is an optional dependency and failed compatibility check. Excluding it from installation.</a>
<a class="sourceLine" id="cb2-86" title="86"><span class="ex">info</span> [email protected]: The platform <span class="st">"linux"</span> is incompatible with this module.</a>
<a class="sourceLine" id="cb2-87" title="87"><span class="ex">info</span> <span class="st">"[email protected]"</span> is an optional dependency and failed compatibility check. Excluding it from installation.</a>
<a class="sourceLine" id="cb2-88" title="88"><span class="ex">warning</span> <span class="st">" > @testing-library/[email protected]"</span> has unmet peer dependency <span class="st">"@testing-library/dom@>=7.21.4"</span>.</a>
<a class="sourceLine" id="cb2-89" title="89"><span class="ex">warning</span> <span class="st">"react-scripts > @typescript-eslint/eslint-plugin > [email protected]"</span> has unmet peer dependency <span class="st">"typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"</span>.</a>
<a class="sourceLine" id="cb2-90" title="90"><span class="ex">success</span> Uninstalled packages.</a>
<a class="sourceLine" id="cb2-91" title="91"><span class="ex">Done</span> in 619.62s.</a>
<a class="sourceLine" id="cb2-92" title="92"></a>
<a class="sourceLine" id="cb2-93" title="93"><span class="ex">Success</span>! Created my-app at /mnt/c/MY-WEB-DEV/10-React-V3/05-installing-nodejs/my-app</a>
<a class="sourceLine" id="cb2-94" title="94"><span class="ex">Inside</span> that directory, you can run several commands:</a>
<a class="sourceLine" id="cb2-95" title="95"></a>
<a class="sourceLine" id="cb2-96" title="96"> <span class="ex">yarn</span> start</a>
<a class="sourceLine" id="cb2-97" title="97"> <span class="ex">Starts</span> the development server.</a>
<a class="sourceLine" id="cb2-98" title="98"></a>
<a class="sourceLine" id="cb2-99" title="99"> <span class="ex">yarn</span> build</a>
<a class="sourceLine" id="cb2-100" title="100"> <span class="ex">Bundles</span> the app into static files for production.</a>
<a class="sourceLine" id="cb2-101" title="101"></a>
<a class="sourceLine" id="cb2-102" title="102"> <span class="ex">yarn</span> test</a>
<a class="sourceLine" id="cb2-103" title="103"> <span class="ex">Starts</span> the test runner.</a>
<a class="sourceLine" id="cb2-104" title="104"></a>
<a class="sourceLine" id="cb2-105" title="105"> <span class="ex">yarn</span> eject</a>
<a class="sourceLine" id="cb2-106" title="106"> <span class="ex">Removes</span> this tool and copies build dependencies, configuration files</a>
<a class="sourceLine" id="cb2-107" title="107"><span class="op"><<<<<<<</span> <span class="ex">HEAD</span></a>
<a class="sourceLine" id="cb2-108" title="108"> <span class="ex">and</span> scripts into the app directory. If you do this, you can<span class="st">'t go back!</span></a>
<a class="sourceLine" id="cb2-109" title="109"><span class="st">=======</span></a>
<a class="sourceLine" id="cb2-110" title="110"><span class="st"> and scripts into the app directory. If you do this, you can’t go back!</span></a>
<a class="sourceLine" id="cb2-111" title="111"><span class="st">>>>>>>> ace4f24c30dd772f3a1c56c7392c3eef123bb0c2</span></a>
<a class="sourceLine" id="cb2-112" title="112"></a>
<a class="sourceLine" id="cb2-113" title="113"><span class="st">We suggest that you begin by typing:</span></a>
<a class="sourceLine" id="cb2-114" title="114"></a>
<a class="sourceLine" id="cb2-115" title="115"><span class="st"> cd my-app</span></a>
<a class="sourceLine" id="cb2-116" title="116"><span class="st"> yarn start</span></a>
<a class="sourceLine" id="cb2-117" title="117"></a>
<a class="sourceLine" id="cb2-118" title="118"><span class="st">Compiled successfully!</span></a>
<a class="sourceLine" id="cb2-119" title="119"></a>
<a class="sourceLine" id="cb2-120" title="120"><span class="st">You can now view my-app in the browser.</span></a>
<a class="sourceLine" id="cb2-121" title="121"></a>
<a class="sourceLine" id="cb2-122" title="122"><span class="st"> Local: http://localhost:3000</span></a>
<a class="sourceLine" id="cb2-123" title="123"><span class="st"> On Your Network: http://172.25.168.12:3000</span></a>
<a class="sourceLine" id="cb2-124" title="124"></a>
<a class="sourceLine" id="cb2-125" title="125"><span class="st">Note that the development build is not optimized.</span></a>
<a class="sourceLine" id="cb2-126" title="126"><span class="st">To create a production build, use yarn build.</span></a></code></pre></div>
<p><img src=".gitbook/assets/image%20%286%29.png" /></p>
<h1 id="head"><<<<<<< HEAD</h1>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<p>ace4f24c30dd772f3a1c56c7392c3eef123bb0c2</p>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</body>
</html>