@nx/next 0.0.0-pr-22179-271588f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +68 -0
  3. package/babel.d.ts +0 -0
  4. package/babel.js +12 -0
  5. package/executors.json +20 -0
  6. package/generators.json +47 -0
  7. package/index.d.ts +8 -0
  8. package/index.js +19 -0
  9. package/migrations.json +106 -0
  10. package/package.json +60 -0
  11. package/plugin.d.ts +1 -0
  12. package/plugin.js +5 -0
  13. package/plugins/component-testing.d.ts +2 -0
  14. package/plugins/component-testing.js +96 -0
  15. package/plugins/with-less.d.ts +3 -0
  16. package/plugins/with-less.js +79 -0
  17. package/plugins/with-nx.d.ts +25 -0
  18. package/plugins/with-nx.js +297 -0
  19. package/plugins/with-stylus.d.ts +3 -0
  20. package/plugins/with-stylus.js +12 -0
  21. package/src/executors/build/build.impl.d.ts +5 -0
  22. package/src/executors/build/build.impl.js +106 -0
  23. package/src/executors/build/lib/check-project.d.ts +1 -0
  24. package/src/executors/build/lib/check-project.js +12 -0
  25. package/src/executors/build/lib/create-next-config-file.d.ts +14 -0
  26. package/src/executors/build/lib/create-next-config-file.js +162 -0
  27. package/src/executors/build/lib/test-fixtures/ensure-exts/baz.json +1 -0
  28. package/src/executors/build/lib/update-package-json.d.ts +3 -0
  29. package/src/executors/build/lib/update-package-json.js +30 -0
  30. package/src/executors/build/schema.json +76 -0
  31. package/src/executors/export/export.impl.d.ts +17 -0
  32. package/src/executors/export/export.impl.js +58 -0
  33. package/src/executors/export/schema.json +30 -0
  34. package/src/executors/server/custom-server.impl.d.ts +6 -0
  35. package/src/executors/server/custom-server.impl.js +36 -0
  36. package/src/executors/server/schema.json +63 -0
  37. package/src/executors/server/server.impl.d.ts +6 -0
  38. package/src/executors/server/server.impl.js +66 -0
  39. package/src/generators/application/application.d.ts +4 -0
  40. package/src/generators/application/application.js +85 -0
  41. package/src/generators/application/files/app/api/hello/route.ts__tmpl__ +4 -0
  42. package/src/generators/application/files/app/global.__stylesExt____tmpl__ +1 -0
  43. package/src/generators/application/files/app/page.module.__style__ +1 -0
  44. package/src/generators/application/files/app/page.tsx__tmpl__ +30 -0
  45. package/src/generators/application/files/app-default-layout/layout.tsx__tmpl__ +18 -0
  46. package/src/generators/application/files/app-styled-components/layout.tsx__tmpl__ +21 -0
  47. package/src/generators/application/files/app-styled-components/registry.tsx__tmpl__ +33 -0
  48. package/src/generators/application/files/app-styled-jsx/layout.tsx__tmpl__ +16 -0
  49. package/src/generators/application/files/app-styled-jsx/registry.tsx__tmpl__ +23 -0
  50. package/src/generators/application/files/common/__dot__babelrc +21 -0
  51. package/src/generators/application/files/common/index.d.ts__tmpl__ +13 -0
  52. package/src/generators/application/files/common/next-env.d.ts__tmpl__ +5 -0
  53. package/src/generators/application/files/common/next.config.js__tmpl__ +82 -0
  54. package/src/generators/application/files/common/public/.gitkeep +0 -0
  55. package/src/generators/application/files/common/public/favicon.ico +0 -0
  56. package/src/generators/application/files/common/specs/__fileName__.spec.tsx__tmpl__ +18 -0
  57. package/src/generators/application/files/common/tsconfig.json__tmpl__ +29 -0
  58. package/src/generators/application/files/pages/__fileName__.module.__style__ +1 -0
  59. package/src/generators/application/files/pages/__fileName__.tsx__tmpl__ +30 -0
  60. package/src/generators/application/files/pages/_app.tsx__tmpl__ +18 -0
  61. package/src/generators/application/files/pages/_document.tsx__tmpl__ +33 -0
  62. package/src/generators/application/files/pages/styles.__stylesExt____tmpl__ +1 -0
  63. package/src/generators/application/lib/add-e2e.d.ts +3 -0
  64. package/src/generators/application/lib/add-e2e.js +72 -0
  65. package/src/generators/application/lib/add-jest.d.ts +3 -0
  66. package/src/generators/application/lib/add-jest.js +38 -0
  67. package/src/generators/application/lib/add-linting.d.ts +3 -0
  68. package/src/generators/application/lib/add-linting.js +62 -0
  69. package/src/generators/application/lib/add-plugin.d.ts +2 -0
  70. package/src/generators/application/lib/add-plugin.js +25 -0
  71. package/src/generators/application/lib/add-project.d.ts +3 -0
  72. package/src/generators/application/lib/add-project.js +66 -0
  73. package/src/generators/application/lib/create-application-files.d.ts +3 -0
  74. package/src/generators/application/lib/create-application-files.helpers.d.ts +2 -0
  75. package/src/generators/application/lib/create-application-files.helpers.js +846 -0
  76. package/src/generators/application/lib/create-application-files.js +114 -0
  77. package/src/generators/application/lib/normalize-options.d.ts +14 -0
  78. package/src/generators/application/lib/normalize-options.js +56 -0
  79. package/src/generators/application/lib/set-defaults.d.ts +3 -0
  80. package/src/generators/application/lib/set-defaults.js +14 -0
  81. package/src/generators/application/lib/show-possible-warnings.d.ts +3 -0
  82. package/src/generators/application/lib/show-possible-warnings.js +10 -0
  83. package/src/generators/application/lib/update-cypress-tsconfig.d.ts +3 -0
  84. package/src/generators/application/lib/update-cypress-tsconfig.js +16 -0
  85. package/src/generators/application/lib/update-jest-config.d.ts +3 -0
  86. package/src/generators/application/lib/update-jest-config.js +15 -0
  87. package/src/generators/application/schema.d.ts +24 -0
  88. package/src/generators/application/schema.json +146 -0
  89. package/src/generators/component/component.d.ts +28 -0
  90. package/src/generators/component/component.js +66 -0
  91. package/src/generators/component/schema.json +125 -0
  92. package/src/generators/custom-server/custom-server.d.ts +3 -0
  93. package/src/generators/custom-server/custom-server.js +104 -0
  94. package/src/generators/custom-server/files/server/main.ts__tmpl__ +46 -0
  95. package/src/generators/custom-server/files/tsconfig.server.json__tmpl__ +17 -0
  96. package/src/generators/custom-server/schema.d.ts +4 -0
  97. package/src/generators/custom-server/schema.json +30 -0
  98. package/src/generators/cypress-component-configuration/cypress-component-configuration.d.ts +5 -0
  99. package/src/generators/cypress-component-configuration/cypress-component-configuration.js +87 -0
  100. package/src/generators/cypress-component-configuration/schema.d.ts +6 -0
  101. package/src/generators/cypress-component-configuration/schema.json +42 -0
  102. package/src/generators/init/init.d.ts +5 -0
  103. package/src/generators/init/init.js +46 -0
  104. package/src/generators/init/lib/add-plugin.d.ts +2 -0
  105. package/src/generators/init/lib/add-plugin.js +26 -0
  106. package/src/generators/init/schema.d.ts +7 -0
  107. package/src/generators/init/schema.json +34 -0
  108. package/src/generators/library/lib/normalize-options.d.ts +7 -0
  109. package/src/generators/library/lib/normalize-options.js +26 -0
  110. package/src/generators/library/library.d.ts +5 -0
  111. package/src/generators/library/library.js +92 -0
  112. package/src/generators/library/schema.d.ts +28 -0
  113. package/src/generators/library/schema.json +156 -0
  114. package/src/generators/page/page.d.ts +5 -0
  115. package/src/generators/page/page.js +96 -0
  116. package/src/generators/page/schema.d.ts +20 -0
  117. package/src/generators/page/schema.json +111 -0
  118. package/src/migrations/update-15-8-8/add-style-packages.d.ts +3 -0
  119. package/src/migrations/update-15-8-8/add-style-packages.js +23 -0
  120. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
  121. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +9 -0
  122. package/src/migrations/update-16-3-0/remove-root-build-option.d.ts +2 -0
  123. package/src/migrations/update-16-3-0/remove-root-build-option.js +17 -0
  124. package/src/migrations/update-16-4-0/update-nx-next-dependency.d.ts +2 -0
  125. package/src/migrations/update-16-4-0/update-nx-next-dependency.js +17 -0
  126. package/src/migrations/update-17-2-7/remove-eslint-rules-patch.d.ts +2 -0
  127. package/src/migrations/update-17-2-7/remove-eslint-rules-patch.js +15 -0
  128. package/src/plugins/plugin.d.ts +11 -0
  129. package/src/plugins/plugin.js +182 -0
  130. package/src/utils/add-gitignore-entry.d.ts +2 -0
  131. package/src/utils/add-gitignore-entry.js +17 -0
  132. package/src/utils/add-swc-to-custom-server.d.ts +2 -0
  133. package/src/utils/add-swc-to-custom-server.js +37 -0
  134. package/src/utils/compose-plugins.d.ts +3 -0
  135. package/src/utils/compose-plugins.js +22 -0
  136. package/src/utils/config-invalid-function.fixture.d.ts +0 -0
  137. package/src/utils/config-invalid-function.fixture.js +1 -0
  138. package/src/utils/config-not-a-function.fixture.d.ts +0 -0
  139. package/src/utils/config-not-a-function.fixture.js +1 -0
  140. package/src/utils/config.d.ts +13 -0
  141. package/src/utils/config.js +24 -0
  142. package/src/utils/constants.d.ts +1 -0
  143. package/src/utils/constants.js +4 -0
  144. package/src/utils/create-cli-options.d.ts +1 -0
  145. package/src/utils/create-cli-options.js +13 -0
  146. package/src/utils/create-copy-plugin.d.ts +2 -0
  147. package/src/utils/create-copy-plugin.js +64 -0
  148. package/src/utils/generate-globs.d.ts +5 -0
  149. package/src/utils/generate-globs.js +29 -0
  150. package/src/utils/styles.d.ts +67 -0
  151. package/src/utils/styles.js +67 -0
  152. package/src/utils/types.d.ts +57 -0
  153. package/src/utils/types.js +2 -0
  154. package/src/utils/versions.d.ts +12 -0
  155. package/src/utils/versions.js +15 -0
  156. package/tailwind.d.ts +2 -0
  157. package/tailwind.js +6 -0
  158. package/typings/image.d.ts +12 -0
@@ -0,0 +1,846 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createStyleRules = exports.createAppJsx = void 0;
4
+ function createAppJsx(name) {
5
+ return `
6
+ <div className="wrapper">
7
+ <div className="container">
8
+ <div id="welcome">
9
+ <h1>
10
+ <span> Hello there, </span>
11
+ Welcome ${name} 👋
12
+ </h1>
13
+ </div>
14
+
15
+ <div id="hero" className="rounded">
16
+ <div className="text-container">
17
+ <h2>
18
+ <svg
19
+ fill="none"
20
+ stroke="currentColor"
21
+ viewBox="0 0 24 24"
22
+ xmlns="http://www.w3.org/2000/svg"
23
+ >
24
+ <path
25
+ strokeLinecap="round"
26
+ strokeLinejoin="round"
27
+ strokeWidth="2"
28
+ d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"
29
+ />
30
+ </svg>
31
+ <span>You&apos;re up and running</span>
32
+ </h2>
33
+ <a href="#commands"> What&apos;s next? </a>
34
+ </div>
35
+ <div className="logo-container">
36
+ <svg
37
+ fill="currentColor"
38
+ role="img"
39
+ viewBox="0 0 24 24"
40
+ xmlns="http://www.w3.org/2000/svg"
41
+ >
42
+ <path d="M11.987 14.138l-3.132 4.923-5.193-8.427-.012 8.822H0V4.544h3.691l5.247 8.833.005-3.998 3.044 4.759zm.601-5.761c.024-.048 0-3.784.008-3.833h-3.65c.002.059-.005 3.776-.003 3.833h3.645zm5.634 4.134a2.061 2.061 0 0 0-1.969 1.336 1.963 1.963 0 0 1 2.343-.739c.396.161.917.422 1.33.283a2.1 2.1 0 0 0-1.704-.88zm3.39 1.061c-.375-.13-.8-.277-1.109-.681-.06-.08-.116-.17-.176-.265a2.143 2.143 0 0 0-.533-.642c-.294-.216-.68-.322-1.18-.322a2.482 2.482 0 0 0-2.294 1.536 2.325 2.325 0 0 1 4.002.388.75.75 0 0 0 .836.334c.493-.105.46.36 1.203.518v-.133c-.003-.446-.246-.55-.75-.733zm2.024 1.266a.723.723 0 0 0 .347-.638c-.01-2.957-2.41-5.487-5.37-5.487a5.364 5.364 0 0 0-4.487 2.418c-.01-.026-1.522-2.39-1.538-2.418H8.943l3.463 5.423-3.379 5.32h3.54l1.54-2.366 1.568 2.366h3.541l-3.21-5.052a.7.7 0 0 1-.084-.32 2.69 2.69 0 0 1 2.69-2.691h.001c1.488 0 1.736.89 2.057 1.308.634.826 1.9.464 1.9 1.541a.707.707 0 0 0 1.066.596zm.35.133c-.173.372-.56.338-.755.639-.176.271.114.412.114.412s.337.156.538-.311c.104-.231.14-.488.103-.74z" />
43
+ </svg>
44
+ </div>
45
+ </div>
46
+
47
+ <div id="middle-content">
48
+ <div id="learning-materials" className="rounded shadow">
49
+ <h2>Learning materials</h2>
50
+ <a
51
+ href="https://nx.dev/getting-started/intro?utm_source=nx-project"
52
+ target="_blank"
53
+ rel="noreferrer"
54
+ className="list-item-link"
55
+ >
56
+ <svg
57
+ fill="none"
58
+ stroke="currentColor"
59
+ viewBox="0 0 24 24"
60
+ xmlns="http://www.w3.org/2000/svg"
61
+ >
62
+ <path
63
+ strokeLinecap="round"
64
+ strokeLinejoin="round"
65
+ strokeWidth="2"
66
+ d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"
67
+ />
68
+ </svg>
69
+ <span>
70
+ Documentation
71
+ <span> Everything is in there </span>
72
+ </span>
73
+ <svg
74
+ fill="none"
75
+ stroke="currentColor"
76
+ viewBox="0 0 24 24"
77
+ xmlns="http://www.w3.org/2000/svg"
78
+ >
79
+ <path
80
+ strokeLinecap="round"
81
+ strokeLinejoin="round"
82
+ strokeWidth="2"
83
+ d="M9 5l7 7-7 7"
84
+ />
85
+ </svg>
86
+ </a>
87
+ <a
88
+ href="https://blog.nrwl.io/?utm_source=nx-project"
89
+ target="_blank"
90
+ rel="noreferrer"
91
+ className="list-item-link"
92
+ >
93
+ <svg
94
+ fill="none"
95
+ stroke="currentColor"
96
+ viewBox="0 0 24 24"
97
+ xmlns="http://www.w3.org/2000/svg"
98
+ >
99
+ <path
100
+ strokeLinecap="round"
101
+ strokeLinejoin="round"
102
+ strokeWidth="2"
103
+ d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"
104
+ />
105
+ </svg>
106
+ <span>
107
+ Blog
108
+ <span> Changelog, features & events </span>
109
+ </span>
110
+ <svg
111
+ fill="none"
112
+ stroke="currentColor"
113
+ viewBox="0 0 24 24"
114
+ xmlns="http://www.w3.org/2000/svg"
115
+ >
116
+ <path
117
+ strokeLinecap="round"
118
+ strokeLinejoin="round"
119
+ strokeWidth="2"
120
+ d="M9 5l7 7-7 7"
121
+ />
122
+ </svg>
123
+ </a>
124
+ <a
125
+ href="https://www.youtube.com/@NxDevtools/videos?utm_source=nx-project&sub_confirmation=1"
126
+ target="_blank"
127
+ rel="noreferrer"
128
+ className="list-item-link"
129
+ >
130
+ <svg
131
+ role="img"
132
+ viewBox="0 0 24 24"
133
+ fill="currentColor"
134
+ xmlns="http://www.w3.org/2000/svg"
135
+ >
136
+ <title>YouTube</title>
137
+ <path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" />
138
+ </svg>
139
+ <span>
140
+ YouTube channel
141
+ <span> Nx Show, talks & tutorials </span>
142
+ </span>
143
+ <svg
144
+ fill="none"
145
+ stroke="currentColor"
146
+ viewBox="0 0 24 24"
147
+ xmlns="http://www.w3.org/2000/svg"
148
+ >
149
+ <path
150
+ strokeLinecap="round"
151
+ strokeLinejoin="round"
152
+ strokeWidth="2"
153
+ d="M9 5l7 7-7 7"
154
+ />
155
+ </svg>
156
+ </a>
157
+ <a
158
+ href="https://nx.dev/react-tutorial/1-code-generation?utm_source=nx-project"
159
+ target="_blank"
160
+ rel="noreferrer"
161
+ className="list-item-link"
162
+ >
163
+ <svg
164
+ fill="none"
165
+ stroke="currentColor"
166
+ viewBox="0 0 24 24"
167
+ xmlns="http://www.w3.org/2000/svg"
168
+ >
169
+ <path
170
+ strokeLinecap="round"
171
+ strokeLinejoin="round"
172
+ strokeWidth="2"
173
+ d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
174
+ />
175
+ </svg>
176
+ <span>
177
+ Interactive tutorials
178
+ <span> Create an app, step-by-step </span>
179
+ </span>
180
+ <svg
181
+ fill="none"
182
+ stroke="currentColor"
183
+ viewBox="0 0 24 24"
184
+ xmlns="http://www.w3.org/2000/svg"
185
+ >
186
+ <path
187
+ strokeLinecap="round"
188
+ strokeLinejoin="round"
189
+ strokeWidth="2"
190
+ d="M9 5l7 7-7 7"
191
+ />
192
+ </svg>
193
+ </a>
194
+ <a
195
+ href="https://nxplaybook.com/?utm_source=nx-project"
196
+ target="_blank"
197
+ rel="noreferrer"
198
+ className="list-item-link"
199
+ >
200
+ <svg
201
+ fill="none"
202
+ stroke="currentColor"
203
+ viewBox="0 0 24 24"
204
+ xmlns="http://www.w3.org/2000/svg"
205
+ >
206
+ <path d="M12 14l9-5-9-5-9 5 9 5z" />
207
+ <path d="M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z" />
208
+ <path
209
+ strokeLinecap="round"
210
+ strokeLinejoin="round"
211
+ strokeWidth="2"
212
+ d="M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222"
213
+ />
214
+ </svg>
215
+ <span>
216
+ Video courses
217
+ <span> Nx custom courses </span>
218
+ </span>
219
+ <svg
220
+ fill="none"
221
+ stroke="currentColor"
222
+ viewBox="0 0 24 24"
223
+ xmlns="http://www.w3.org/2000/svg"
224
+ >
225
+ <path
226
+ strokeLinecap="round"
227
+ strokeLinejoin="round"
228
+ strokeWidth="2"
229
+ d="M9 5l7 7-7 7"
230
+ />
231
+ </svg>
232
+ </a>
233
+ </div>
234
+ <div id="other-links">
235
+ <a
236
+ id="nx-console"
237
+ className="button-pill rounded shadow"
238
+ href="https://marketplace.visualstudio.com/items?itemName=nrwl.angular-console&utm_source=nx-project"
239
+ target="_blank"
240
+ rel="noreferrer"
241
+ >
242
+ <svg
243
+ fill="currentColor"
244
+ role="img"
245
+ viewBox="0 0 24 24"
246
+ xmlns="http://www.w3.org/2000/svg"
247
+ >
248
+ <title>Visual Studio Code</title>
249
+ <path d="M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 .001 1.479L1.65 17.94a.999.999 0 0 0 1.276.057l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z" />
250
+ </svg>
251
+ <span>
252
+ Install Nx Console for VSCode
253
+ <span>The official VSCode extension for Nx.</span>
254
+ </span>
255
+ </a>
256
+ <a
257
+ id="nx-console-jetbrains"
258
+ className="button-pill rounded shadow"
259
+ href="https://plugins.jetbrains.com/plugin/21060-nx-console"
260
+ target="_blank"
261
+ rel="noreferrer"
262
+ >
263
+ <svg
264
+ height="48"
265
+ width="48"
266
+ viewBox="20 20 60 60"
267
+ xmlns="http://www.w3.org/2000/svg"
268
+ >
269
+ <path d="m22.5 22.5h60v60h-60z" />
270
+ <g fill="#fff">
271
+ <path d="m29.03 71.25h22.5v3.75h-22.5z" />
272
+ <path d="m28.09 38 1.67-1.58a1.88 1.88 0 0 0 1.47.87c.64 0 1.06-.44 1.06-1.31v-5.98h2.58v6a3.48 3.48 0 0 1 -.87 2.6 3.56 3.56 0 0 1 -2.57.95 3.84 3.84 0 0 1 -3.34-1.55z" />
273
+ <path d="m36 30h7.53v2.19h-5v1.44h4.49v2h-4.42v1.49h5v2.21h-7.6z" />
274
+ <path d="m47.23 32.29h-2.8v-2.29h8.21v2.27h-2.81v7.1h-2.6z" />
275
+ <path d="m29.13 43.08h4.42a3.53 3.53 0 0 1 2.55.83 2.09 2.09 0 0 1 .6 1.53 2.16 2.16 0 0 1 -1.44 2.09 2.27 2.27 0 0 1 1.86 2.29c0 1.61-1.31 2.59-3.55 2.59h-4.44zm5 2.89c0-.52-.42-.8-1.18-.8h-1.29v1.64h1.24c.79 0 1.25-.26 1.25-.81zm-.9 2.66h-1.57v1.73h1.62c.8 0 1.24-.31 1.24-.86 0-.5-.4-.87-1.27-.87z" />
276
+ <path d="m38 43.08h4.1a4.19 4.19 0 0 1 3 1 2.93 2.93 0 0 1 .9 2.19 3 3 0 0 1 -1.93 2.89l2.24 3.27h-3l-1.88-2.84h-.87v2.84h-2.56zm4 4.5c.87 0 1.39-.43 1.39-1.11 0-.75-.54-1.12-1.4-1.12h-1.44v2.26z" />
277
+ <path d="m49.59 43h2.5l4 9.44h-2.79l-.67-1.69h-3.63l-.67 1.69h-2.71zm2.27 5.73-1-2.65-1.06 2.65z" />
278
+ <path d="m56.46 43.05h2.6v9.37h-2.6z" />
279
+ <path d="m60.06 43.05h2.42l3.37 5v-5h2.57v9.37h-2.26l-3.53-5.14v5.14h-2.57z" />
280
+ <path d="m68.86 51 1.45-1.73a4.84 4.84 0 0 0 3 1.13c.71 0 1.08-.24 1.08-.65 0-.4-.31-.6-1.59-.91-2-.46-3.53-1-3.53-2.93 0-1.74 1.37-3 3.62-3a5.89 5.89 0 0 1 3.86 1.25l-1.26 1.84a4.63 4.63 0 0 0 -2.62-.92c-.63 0-.94.25-.94.6 0 .42.32.61 1.63.91 2.14.46 3.44 1.16 3.44 2.91 0 1.91-1.51 3-3.79 3a6.58 6.58 0 0 1 -4.35-1.5z" />
281
+ </g>
282
+ </svg>
283
+ <span>
284
+ Install Nx Console for JetBrains
285
+ <span>
286
+ Available for WebStorm, Intellij IDEA Ultimate and more!
287
+ </span>
288
+ </span>
289
+ </a>
290
+ <div id="nx-cloud" className="rounded shadow">
291
+ <div>
292
+ <svg id="nx-cloud-logo" role="img" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" fill="transparent" viewBox="0 0 24 24">
293
+ <path strokeWidth="2" d="M23 3.75V6.5c-3.036 0-5.5 2.464-5.5 5.5s-2.464 5.5-5.5 5.5-5.5 2.464-5.5 5.5H3.75C2.232 23 1 21.768 1 20.25V3.75C1 2.232 2.232 1 3.75 1h16.5C21.768 1 23 2.232 23 3.75Z" />
294
+ <path strokeWidth="2" d="M23 6v14.1667C23 21.7307 21.7307 23 20.1667 23H6c0-3.128 2.53867-5.6667 5.6667-5.6667 3.128 0 5.6666-2.5386 5.6666-5.6666C17.3333 8.53867 19.872 6 23 6Z" />
295
+ </svg>
296
+ <h2>
297
+ Nx Cloud
298
+ <span>
299
+ Enable faster CI & better DX
300
+ </span>
301
+ </h2>
302
+ </div>
303
+ <p>
304
+ You can activate distributed tasks executions and caching by
305
+ running:
306
+ </p>
307
+ <pre>nx connect</pre>
308
+ <a
309
+ href="https://nx.app/?utm_source=nx-project"
310
+ target="_blank"
311
+ rel="noreferrer"
312
+ >
313
+ {' '}
314
+ What is Nx Cloud?{' '}
315
+ </a>
316
+ </div>
317
+ <a
318
+ id="nx-repo"
319
+ className="button-pill rounded shadow"
320
+ href="https://github.com/nrwl/nx?utm_source=nx-project"
321
+ target="_blank"
322
+ rel="noreferrer"
323
+ >
324
+ <svg
325
+ fill="currentColor"
326
+ role="img"
327
+ viewBox="0 0 24 24"
328
+ xmlns="http://www.w3.org/2000/svg"
329
+ >
330
+ <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
331
+ </svg>
332
+ <span>
333
+ Nx is open source
334
+ <span> Love Nx? Give us a star! </span>
335
+ </span>
336
+ </a>
337
+ </div>
338
+ </div>
339
+
340
+ <div id="commands" className="rounded shadow">
341
+ <h2>Next steps</h2>
342
+ <p>Here are some things you can do with Nx:</p>
343
+ <details>
344
+ <summary>
345
+ <svg
346
+ fill="none"
347
+ stroke="currentColor"
348
+ viewBox="0 0 24 24"
349
+ xmlns="http://www.w3.org/2000/svg"
350
+ >
351
+ <path
352
+ strokeLinecap="round"
353
+ strokeLinejoin="round"
354
+ strokeWidth="2"
355
+ d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
356
+ />
357
+ </svg>
358
+ Add UI library
359
+ </summary>
360
+ <pre>
361
+ <span># Generate UI lib</span>
362
+ nx g @nx/next:library ui
363
+ <span># Add a component</span>
364
+ nx g @nx/next:component ui/src/lib/button
365
+ </pre>
366
+ </details>
367
+ <details>
368
+ <summary>
369
+ <svg
370
+ fill="none"
371
+ stroke="currentColor"
372
+ viewBox="0 0 24 24"
373
+ xmlns="http://www.w3.org/2000/svg"
374
+ >
375
+ <path
376
+ strokeLinecap="round"
377
+ strokeLinejoin="round"
378
+ strokeWidth="2"
379
+ d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
380
+ />
381
+ </svg>
382
+ View project details
383
+ </summary>
384
+ <pre>nx show project ${name} --web</pre>
385
+ </details>
386
+ <details>
387
+ <summary>
388
+ <svg
389
+ fill="none"
390
+ stroke="currentColor"
391
+ viewBox="0 0 24 24"
392
+ xmlns="http://www.w3.org/2000/svg"
393
+ >
394
+ <path
395
+ strokeLinecap="round"
396
+ strokeLinejoin="round"
397
+ strokeWidth="2"
398
+ d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
399
+ />
400
+ </svg>
401
+ View interactive project graph
402
+ </summary>
403
+ <pre>nx graph</pre>
404
+ </details>
405
+ <details>
406
+ <summary>
407
+ <svg
408
+ fill="none"
409
+ stroke="currentColor"
410
+ viewBox="0 0 24 24"
411
+ xmlns="http://www.w3.org/2000/svg"
412
+ >
413
+ <path
414
+ strokeLinecap="round"
415
+ strokeLinejoin="round"
416
+ strokeWidth="2"
417
+ d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
418
+ />
419
+ </svg>
420
+ Run affected commands
421
+ </summary>
422
+ <pre>
423
+ <span># see what&apos;s been affected by changes</span>
424
+ nx affected:graph
425
+ <span># run tests for current changes</span>
426
+ nx affected:test
427
+ <span># run e2e tests for current changes</span>
428
+ nx affected:e2e
429
+ </pre>
430
+ </details>
431
+ </div>
432
+
433
+ <p id="love">
434
+ Carefully crafted with
435
+ <svg
436
+ fill="currentColor"
437
+ stroke="none"
438
+ viewBox="0 0 24 24"
439
+ xmlns="http://www.w3.org/2000/svg"
440
+ >
441
+ <path
442
+ strokeLinecap="round"
443
+ strokeLinejoin="round"
444
+ strokeWidth="2"
445
+ d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"
446
+ />
447
+ </svg>
448
+ </p>
449
+ </div>
450
+ </div>
451
+ `;
452
+ }
453
+ exports.createAppJsx = createAppJsx;
454
+ function createStyleRules() {
455
+ return `
456
+ html {
457
+ -webkit-text-size-adjust: 100%;
458
+ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
459
+ line-height: 1.5;
460
+ tab-size: 4;
461
+ scroll-behavior: smooth;
462
+ }
463
+ body {
464
+ font-family: inherit;
465
+ line-height: inherit;
466
+ margin: 0;
467
+ }
468
+ h1,
469
+ h2,
470
+ p,
471
+ pre {
472
+ margin: 0;
473
+ }
474
+ *,
475
+ ::before,
476
+ ::after {
477
+ box-sizing: border-box;
478
+ border-width: 0;
479
+ border-style: solid;
480
+ border-color: currentColor;
481
+ }
482
+ h1,
483
+ h2 {
484
+ font-size: inherit;
485
+ font-weight: inherit;
486
+ }
487
+ a {
488
+ color: inherit;
489
+ text-decoration: inherit;
490
+ }
491
+ pre {
492
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
493
+ }
494
+ svg {
495
+ display: block;
496
+ vertical-align: middle;
497
+ shape-rendering: auto;
498
+ text-rendering: optimizeLegibility;
499
+ }
500
+ pre {
501
+ background-color: rgba(55, 65, 81, 1);
502
+ border-radius: 0.25rem;
503
+ color: rgba(229, 231, 235, 1);
504
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
505
+ overflow: scroll;
506
+ padding: 0.5rem 0.75rem;
507
+ }
508
+
509
+ .shadow {
510
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
511
+ }
512
+ .rounded {
513
+ border-radius: 1.5rem;
514
+ }
515
+ .wrapper {
516
+ width: 100%;
517
+ }
518
+ .container {
519
+ margin-left: auto;
520
+ margin-right: auto;
521
+ max-width: 768px;
522
+ padding-bottom: 3rem;
523
+ padding-left: 1rem;
524
+ padding-right: 1rem;
525
+ color: rgba(55, 65, 81, 1);
526
+ width: 100%;
527
+ }
528
+ #welcome {
529
+ margin-top: 2.5rem;
530
+ }
531
+ #welcome h1 {
532
+ font-size: 3rem;
533
+ font-weight: 500;
534
+ letter-spacing: -0.025em;
535
+ line-height: 1;
536
+ }
537
+ #welcome span {
538
+ display: block;
539
+ font-size: 1.875rem;
540
+ font-weight: 300;
541
+ line-height: 2.25rem;
542
+ margin-bottom: 0.5rem;
543
+ }
544
+ #hero {
545
+ align-items: center;
546
+ background-color: hsla(214, 62%, 21%, 1);
547
+ border: none;
548
+ box-sizing: border-box;
549
+ color: rgba(55, 65, 81, 1);
550
+ display: grid;
551
+ grid-template-columns: 1fr;
552
+ margin-top: 3.5rem;
553
+ }
554
+ #hero .text-container {
555
+ color: rgba(255, 255, 255, 1);
556
+ padding: 3rem 2rem;
557
+ }
558
+ #hero .text-container h2 {
559
+ font-size: 1.5rem;
560
+ line-height: 2rem;
561
+ position: relative;
562
+ }
563
+ #hero .text-container h2 svg {
564
+ color: hsla(162, 47%, 50%, 1);
565
+ height: 2rem;
566
+ left: -0.25rem;
567
+ position: absolute;
568
+ top: 0;
569
+ width: 2rem;
570
+ }
571
+ #hero .text-container h2 span {
572
+ margin-left: 2.5rem;
573
+ }
574
+ #hero .text-container a {
575
+ background-color: rgba(255, 255, 255, 1);
576
+ border-radius: 0.75rem;
577
+ color: rgba(55, 65, 81, 1);
578
+ display: inline-block;
579
+ margin-top: 1.5rem;
580
+ padding: 1rem 2rem;
581
+ text-decoration: inherit;
582
+ }
583
+ #hero .logo-container {
584
+ display: none;
585
+ justify-content: center;
586
+ padding-left: 2rem;
587
+ padding-right: 2rem;
588
+ }
589
+ #hero .logo-container svg {
590
+ color: rgba(255, 255, 255, 1);
591
+ width: 66.666667%;
592
+ }
593
+ #middle-content {
594
+ align-items: flex-start;
595
+ display: grid;
596
+ gap: 4rem;
597
+ grid-template-columns: 1fr;
598
+ margin-top: 3.5rem;
599
+ }
600
+ #learning-materials {
601
+ padding: 2.5rem 2rem;
602
+ }
603
+ #learning-materials h2 {
604
+ font-weight: 500;
605
+ font-size: 1.25rem;
606
+ letter-spacing: -0.025em;
607
+ line-height: 1.75rem;
608
+ padding-left: 1rem;
609
+ padding-right: 1rem;
610
+ }
611
+ .list-item-link {
612
+ align-items: center;
613
+ border-radius: 0.75rem;
614
+ display: flex;
615
+ margin-top: 1rem;
616
+ padding: 1rem;
617
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
618
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
619
+ transition-duration: 150ms;
620
+ width: 100%;
621
+ }
622
+ .list-item-link svg:first-child {
623
+ margin-right: 1rem;
624
+ height: 1.5rem;
625
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
626
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
627
+ transition-duration: 150ms;
628
+ width: 1.5rem;
629
+ }
630
+ .list-item-link > span {
631
+ flex-grow: 1;
632
+ font-weight: 400;
633
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
634
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
635
+ transition-duration: 150ms;
636
+ }
637
+ .list-item-link > span > span {
638
+ color: rgba(107, 114, 128, 1);
639
+ display: block;
640
+ flex-grow: 1;
641
+ font-size: 0.75rem;
642
+ font-weight: 300;
643
+ line-height: 1rem;
644
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
645
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
646
+ transition-duration: 150ms;
647
+ }
648
+ .list-item-link svg:last-child {
649
+ height: 1rem;
650
+ transition-property: all;
651
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
652
+ transition-duration: 150ms;
653
+ width: 1rem;
654
+ }
655
+ .list-item-link:hover {
656
+ color: rgba(255, 255, 255, 1);
657
+ background-color: hsla(162, 47%, 50%, 1);
658
+ }
659
+ .list-item-link:hover > span {}
660
+ .list-item-link:hover > span > span {
661
+ color: rgba(243, 244, 246, 1);
662
+ }
663
+ .list-item-link:hover svg:last-child {
664
+ transform: translateX(0.25rem);
665
+ }
666
+ #other-links {}
667
+ .button-pill {
668
+ padding: 1.5rem 2rem;
669
+ transition-duration: 300ms;
670
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
671
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
672
+ align-items: center;
673
+ display: flex;
674
+ }
675
+ .button-pill svg {
676
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
677
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
678
+ transition-duration: 150ms;
679
+ flex-shrink: 0;
680
+ width: 3rem;
681
+ }
682
+ .button-pill > span {
683
+ letter-spacing: -0.025em;
684
+ font-weight: 400;
685
+ font-size: 1.125rem;
686
+ line-height: 1.75rem;
687
+ padding-left: 1rem;
688
+ padding-right: 1rem;
689
+ }
690
+ .button-pill span span {
691
+ display: block;
692
+ font-size: 0.875rem;
693
+ font-weight: 300;
694
+ line-height: 1.25rem;
695
+ }
696
+ .button-pill:hover svg,
697
+ .button-pill:hover {
698
+ color: rgba(255, 255, 255, 1) !important;
699
+ }
700
+ #nx-console:hover {
701
+ background-color: rgba(0, 122, 204, 1);
702
+ }
703
+ #nx-console svg {
704
+ color: rgba(0, 122, 204, 1);
705
+ }
706
+ #nx-console-jetbrains {
707
+ margin-top: 2rem;
708
+ }
709
+ #nx-console-jetbrains:hover {
710
+ background-color: rgba(255, 49, 140, 1);
711
+ }
712
+ #nx-console-jetbrains svg {
713
+ color: rgba(255, 49, 140, 1);
714
+ }
715
+ #nx-repo:hover {
716
+ background-color: rgba(24, 23, 23, 1);
717
+ }
718
+ #nx-repo svg {
719
+ color: rgba(24, 23, 23, 1);
720
+ }
721
+ #nx-cloud {
722
+ margin-bottom: 2rem;
723
+ margin-top: 2rem;
724
+ padding: 2.5rem 2rem;
725
+ }
726
+ #nx-cloud > div {
727
+ align-items: center;
728
+ display: flex;
729
+ }
730
+ #nx-cloud > div svg {
731
+ border-radius: 0.375rem;
732
+ flex-shrink: 0;
733
+ width: 3rem;
734
+ }
735
+ #nx-cloud > div h2 {
736
+ font-size: 1.125rem;
737
+ font-weight: 400;
738
+ letter-spacing: -0.025em;
739
+ line-height: 1.75rem;
740
+ padding-left: 1rem;
741
+ padding-right: 1rem;
742
+ }
743
+ #nx-cloud > div h2 span {
744
+ display: block;
745
+ font-size: 0.875rem;
746
+ font-weight: 300;
747
+ line-height: 1.25rem;
748
+ }
749
+ #nx-cloud p {
750
+ font-size: 1rem;
751
+ line-height: 1.5rem;
752
+ margin-top: 1rem;
753
+ }
754
+ #nx-cloud pre {
755
+ margin-top: 1rem;
756
+ }
757
+ #nx-cloud a {
758
+ color: rgba(107, 114, 128, 1);
759
+ display: block;
760
+ font-size: 0.875rem;
761
+ line-height: 1.25rem;
762
+ margin-top: 1.5rem;
763
+ text-align: right;
764
+ }
765
+ #nx-cloud a:hover {
766
+ text-decoration: underline;
767
+ }
768
+ #commands {
769
+ padding: 2.5rem 2rem;
770
+ margin-top: 3.5rem;
771
+ }
772
+ #commands h2 {
773
+ font-size: 1.25rem;
774
+ font-weight: 400;
775
+ letter-spacing: -0.025em;
776
+ line-height: 1.75rem;
777
+ padding-left: 1rem;
778
+ padding-right: 1rem;
779
+ }
780
+ #commands p {
781
+ font-size: 1rem;
782
+ font-weight: 300;
783
+ line-height: 1.5rem;
784
+ margin-top: 1rem;
785
+ padding-left: 1rem;
786
+ padding-right: 1rem;
787
+ }
788
+ details {
789
+ align-items: center;
790
+ display: flex;
791
+ margin-top: 1rem;
792
+ padding-left: 1rem;
793
+ padding-right: 1rem;
794
+ width: 100%;
795
+ }
796
+ details pre > span {
797
+ color: rgba(181, 181, 181, 1);
798
+ display: block;
799
+ }
800
+ summary {
801
+ border-radius: 0.5rem;
802
+ display: flex;
803
+ font-weight: 400;
804
+ padding: 0.5rem;
805
+ cursor: pointer;
806
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
807
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
808
+ transition-duration: 150ms;
809
+ }
810
+ summary:hover {
811
+ background-color: rgba(243, 244, 246, 1);
812
+ }
813
+ summary svg {
814
+ height: 1.5rem;
815
+ margin-right: 1rem;
816
+ width: 1.5rem;
817
+ }
818
+ #love {
819
+ color: rgba(107, 114, 128, 1);
820
+ font-size: 0.875rem;
821
+ line-height: 1.25rem;
822
+ margin-top: 3.5rem;
823
+ opacity: 0.6;
824
+ text-align: center;
825
+ }
826
+ #love svg {
827
+ color: rgba(252, 165, 165, 1);
828
+ width: 1.25rem;
829
+ height: 1.25rem;
830
+ display: inline;
831
+ margin-top: -0.25rem;
832
+ }
833
+ @media screen and (min-width: 768px) {
834
+ #hero {
835
+ grid-template-columns: repeat(2, minmax(0, 1fr));
836
+ }
837
+ #hero .logo-container {
838
+ display: flex;
839
+ }
840
+ #middle-content {
841
+ grid-template-columns: repeat(2, minmax(0, 1fr));
842
+ }
843
+ }
844
+ `;
845
+ }
846
+ exports.createStyleRules = createStyleRules;