@nx/next 16.0.0-beta.1

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 (213) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +22 -0
  3. package/README.md +63 -0
  4. package/babel.d.ts +0 -0
  5. package/babel.js +13 -0
  6. package/babel.js.map +1 -0
  7. package/executors.json +36 -0
  8. package/generators.json +72 -0
  9. package/index.d.ts +8 -0
  10. package/index.js +20 -0
  11. package/index.js.map +1 -0
  12. package/migrations.json +312 -0
  13. package/package.json +64 -0
  14. package/plugins/with-less.d.ts +2 -0
  15. package/plugins/with-less.js +79 -0
  16. package/plugins/with-less.js.map +1 -0
  17. package/plugins/with-nx.d.ts +13 -0
  18. package/plugins/with-nx.js +278 -0
  19. package/plugins/with-nx.js.map +1 -0
  20. package/plugins/with-stylus.d.ts +2 -0
  21. package/plugins/with-stylus.js +79 -0
  22. package/plugins/with-stylus.js.map +1 -0
  23. package/src/executors/build/build.impl.d.ts +6 -0
  24. package/src/executors/build/build.impl.js +62 -0
  25. package/src/executors/build/build.impl.js.map +1 -0
  26. package/src/executors/build/compat.d.ts +2 -0
  27. package/src/executors/build/compat.js +6 -0
  28. package/src/executors/build/compat.js.map +1 -0
  29. package/src/executors/build/lib/check-project.d.ts +1 -0
  30. package/src/executors/build/lib/check-project.js +13 -0
  31. package/src/executors/build/lib/check-project.js.map +1 -0
  32. package/src/executors/build/lib/create-next-config-file.d.ts +3 -0
  33. package/src/executors/build/lib/create-next-config-file.js +15 -0
  34. package/src/executors/build/lib/create-next-config-file.js.map +1 -0
  35. package/src/executors/build/lib/update-package-json.d.ts +3 -0
  36. package/src/executors/build/lib/update-package-json.js +24 -0
  37. package/src/executors/build/lib/update-package-json.js.map +1 -0
  38. package/src/executors/build/schema.json +68 -0
  39. package/src/executors/export/compat.d.ts +2 -0
  40. package/src/executors/export/compat.js +6 -0
  41. package/src/executors/export/compat.js.map +1 -0
  42. package/src/executors/export/export.impl.d.ts +6 -0
  43. package/src/executors/export/export.impl.js +53 -0
  44. package/src/executors/export/export.impl.js.map +1 -0
  45. package/src/executors/export/schema.json +30 -0
  46. package/src/executors/server/compat.d.ts +2 -0
  47. package/src/executors/server/compat.js +6 -0
  48. package/src/executors/server/compat.js.map +1 -0
  49. package/src/executors/server/lib/default-server.d.ts +6 -0
  50. package/src/executors/server/lib/default-server.js +31 -0
  51. package/src/executors/server/lib/default-server.js.map +1 -0
  52. package/src/executors/server/lib/tsnode-register.d.ts +1 -0
  53. package/src/executors/server/lib/tsnode-register.js +23 -0
  54. package/src/executors/server/lib/tsnode-register.js.map +1 -0
  55. package/src/executors/server/schema.json +56 -0
  56. package/src/executors/server/server.impl.d.ts +7 -0
  57. package/src/executors/server/server.impl.js +114 -0
  58. package/src/executors/server/server.impl.js.map +1 -0
  59. package/src/generators/application/application.d.ts +4 -0
  60. package/src/generators/application/application.js +43 -0
  61. package/src/generators/application/application.js.map +1 -0
  62. package/src/generators/application/files/app/api/hello/route.ts__tmpl__ +4 -0
  63. package/src/generators/application/files/app/global.__stylesExt____tmpl__ +1 -0
  64. package/src/generators/application/files/app/layout.tsx__tmpl__ +22 -0
  65. package/src/generators/application/files/app/page.module.__style__ +1 -0
  66. package/src/generators/application/files/app/page.tsx__tmpl__ +28 -0
  67. package/src/generators/application/files/common/.babelrc__tmpl__ +21 -0
  68. package/src/generators/application/files/common/index.d.ts__tmpl__ +18 -0
  69. package/src/generators/application/files/common/next-env.d.ts__tmpl__ +5 -0
  70. package/src/generators/application/files/common/next.config.js__tmpl__ +112 -0
  71. package/src/generators/application/files/common/public/.gitkeep +0 -0
  72. package/src/generators/application/files/common/public/favicon.ico +0 -0
  73. package/src/generators/application/files/common/specs/__fileName__.spec.tsx__tmpl__ +11 -0
  74. package/src/generators/application/files/common/tsconfig.json__tmpl__ +18 -0
  75. package/src/generators/application/files/pages/__fileName__.module.__style__ +1 -0
  76. package/src/generators/application/files/pages/__fileName__.tsx__tmpl__ +28 -0
  77. package/src/generators/application/files/pages/_app.tsx__tmpl__ +18 -0
  78. package/src/generators/application/files/pages/_document.tsx__tmpl__ +33 -0
  79. package/src/generators/application/files/pages/styles.__stylesExt____tmpl__ +1 -0
  80. package/src/generators/application/lib/add-cypress.d.ts +3 -0
  81. package/src/generators/application/lib/add-cypress.js +18 -0
  82. package/src/generators/application/lib/add-cypress.js.map +1 -0
  83. package/src/generators/application/lib/add-jest.d.ts +3 -0
  84. package/src/generators/application/lib/add-jest.js +36 -0
  85. package/src/generators/application/lib/add-jest.js.map +1 -0
  86. package/src/generators/application/lib/add-linting.d.ts +3 -0
  87. package/src/generators/application/lib/add-linting.js +66 -0
  88. package/src/generators/application/lib/add-linting.js.map +1 -0
  89. package/src/generators/application/lib/add-project.d.ts +3 -0
  90. package/src/generators/application/lib/add-project.js +56 -0
  91. package/src/generators/application/lib/add-project.js.map +1 -0
  92. package/src/generators/application/lib/create-application-files.d.ts +3 -0
  93. package/src/generators/application/lib/create-application-files.helpers.d.ts +2 -0
  94. package/src/generators/application/lib/create-application-files.helpers.js +785 -0
  95. package/src/generators/application/lib/create-application-files.helpers.js.map +1 -0
  96. package/src/generators/application/lib/create-application-files.js +40 -0
  97. package/src/generators/application/lib/create-application-files.js.map +1 -0
  98. package/src/generators/application/lib/normalize-options.d.ts +13 -0
  99. package/src/generators/application/lib/normalize-options.js +35 -0
  100. package/src/generators/application/lib/normalize-options.js.map +1 -0
  101. package/src/generators/application/lib/set-defaults.d.ts +3 -0
  102. package/src/generators/application/lib/set-defaults.js +14 -0
  103. package/src/generators/application/lib/set-defaults.js.map +1 -0
  104. package/src/generators/application/lib/update-jest-config.d.ts +3 -0
  105. package/src/generators/application/lib/update-jest-config.js +16 -0
  106. package/src/generators/application/lib/update-jest-config.js.map +1 -0
  107. package/src/generators/application/schema.d.ts +19 -0
  108. package/src/generators/application/schema.json +131 -0
  109. package/src/generators/component/component.d.ts +15 -0
  110. package/src/generators/component/component.js +34 -0
  111. package/src/generators/component/component.js.map +1 -0
  112. package/src/generators/component/schema.json +119 -0
  113. package/src/generators/custom-server/custom-server.d.ts +4 -0
  114. package/src/generators/custom-server/custom-server.js +79 -0
  115. package/src/generators/custom-server/custom-server.js.map +1 -0
  116. package/src/generators/custom-server/files/server/main.ts__tmpl__ +46 -0
  117. package/src/generators/custom-server/files/tsconfig.server.json__tmpl__ +15 -0
  118. package/src/generators/custom-server/schema.d.ts +4 -0
  119. package/src/generators/custom-server/schema.json +30 -0
  120. package/src/generators/init/init.d.ts +5 -0
  121. package/src/generators/init/init.js +49 -0
  122. package/src/generators/init/init.js.map +1 -0
  123. package/src/generators/init/schema.d.ts +7 -0
  124. package/src/generators/init/schema.json +39 -0
  125. package/src/generators/library/lib/normalize-options.d.ts +7 -0
  126. package/src/generators/library/lib/normalize-options.js +17 -0
  127. package/src/generators/library/lib/normalize-options.js.map +1 -0
  128. package/src/generators/library/library.d.ts +5 -0
  129. package/src/generators/library/library.js +79 -0
  130. package/src/generators/library/library.js.map +1 -0
  131. package/src/generators/library/schema.d.ts +25 -0
  132. package/src/generators/library/schema.json +156 -0
  133. package/src/generators/page/page.d.ts +5 -0
  134. package/src/generators/page/page.js +27 -0
  135. package/src/generators/page/page.js.map +1 -0
  136. package/src/generators/page/schema.d.ts +13 -0
  137. package/src/generators/page/schema.json +107 -0
  138. package/src/migrations/update-12-10-0/fix-page-dir-for-eslint.d.ts +3 -0
  139. package/src/migrations/update-12-10-0/fix-page-dir-for-eslint.js +34 -0
  140. package/src/migrations/update-12-10-0/fix-page-dir-for-eslint.js.map +1 -0
  141. package/src/migrations/update-12-8-0/remove-styled-jsx-babel-plugin.d.ts +3 -0
  142. package/src/migrations/update-12-8-0/remove-styled-jsx-babel-plugin.js +26 -0
  143. package/src/migrations/update-12-8-0/remove-styled-jsx-babel-plugin.js.map +1 -0
  144. package/src/migrations/update-13-0-0/update-emotion-setup.d.ts +3 -0
  145. package/src/migrations/update-13-0-0/update-emotion-setup.js +39 -0
  146. package/src/migrations/update-13-0-0/update-emotion-setup.js.map +1 -0
  147. package/src/migrations/update-13-0-0/update-to-webpack-5.d.ts +3 -0
  148. package/src/migrations/update-13-0-0/update-to-webpack-5.js +32 -0
  149. package/src/migrations/update-13-0-0/update-to-webpack-5.js.map +1 -0
  150. package/src/migrations/update-13-0-3/fix-less.d.ts +3 -0
  151. package/src/migrations/update-13-0-3/fix-less.js +27 -0
  152. package/src/migrations/update-13-0-3/fix-less.js.map +1 -0
  153. package/src/migrations/update-13-1-1/enable-swc.d.ts +3 -0
  154. package/src/migrations/update-13-1-1/enable-swc.js +46 -0
  155. package/src/migrations/update-13-1-1/enable-swc.js.map +1 -0
  156. package/src/migrations/update-14-0-0/add-default-development-configurations.d.ts +3 -0
  157. package/src/migrations/update-14-0-0/add-default-development-configurations.js +36 -0
  158. package/src/migrations/update-14-0-0/add-default-development-configurations.js.map +1 -0
  159. package/src/migrations/update-14-4-3/add-dev-output-path.d.ts +3 -0
  160. package/src/migrations/update-14-4-3/add-dev-output-path.js +24 -0
  161. package/src/migrations/update-14-4-3/add-dev-output-path.js.map +1 -0
  162. package/src/migrations/update-14-5-3/add-gitignore-entry.d.ts +3 -0
  163. package/src/migrations/update-14-5-3/add-gitignore-entry.js +15 -0
  164. package/src/migrations/update-14-5-3/add-gitignore-entry.js.map +1 -0
  165. package/src/migrations/update-14-5-3/update-dev-output-path.d.ts +3 -0
  166. package/src/migrations/update-14-5-3/update-dev-output-path.js +29 -0
  167. package/src/migrations/update-14-5-3/update-dev-output-path.js.map +1 -0
  168. package/src/migrations/update-14-5-7/update-next-eslint.d.ts +3 -0
  169. package/src/migrations/update-14-5-7/update-next-eslint.js +32 -0
  170. package/src/migrations/update-14-5-7/update-next-eslint.js.map +1 -0
  171. package/src/migrations/update-15-8-8/add-style-packages.d.ts +3 -0
  172. package/src/migrations/update-15-8-8/add-style-packages.js +28 -0
  173. package/src/migrations/update-15-8-8/add-style-packages.js.map +1 -0
  174. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
  175. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +13 -0
  176. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js.map +1 -0
  177. package/src/utils/add-gitignore-entry.d.ts +2 -0
  178. package/src/utils/add-gitignore-entry.js +18 -0
  179. package/src/utils/add-gitignore-entry.js.map +1 -0
  180. package/src/utils/config-invalid-function.fixture.d.ts +0 -0
  181. package/src/utils/config-invalid-function.fixture.js +2 -0
  182. package/src/utils/config-invalid-function.fixture.js.map +1 -0
  183. package/src/utils/config-not-a-function.fixture.d.ts +0 -0
  184. package/src/utils/config-not-a-function.fixture.js +2 -0
  185. package/src/utils/config-not-a-function.fixture.js.map +1 -0
  186. package/src/utils/config.d.ts +15 -0
  187. package/src/utils/config.fixture.d.ts +0 -0
  188. package/src/utils/config.fixture.js +4 -0
  189. package/src/utils/config.fixture.js.map +1 -0
  190. package/src/utils/config.js +87 -0
  191. package/src/utils/config.js.map +1 -0
  192. package/src/utils/constants.d.ts +1 -0
  193. package/src/utils/constants.js +5 -0
  194. package/src/utils/constants.js.map +1 -0
  195. package/src/utils/create-copy-plugin.d.ts +2 -0
  196. package/src/utils/create-copy-plugin.js +63 -0
  197. package/src/utils/create-copy-plugin.js.map +1 -0
  198. package/src/utils/generate-globs.d.ts +5 -0
  199. package/src/utils/generate-globs.js +30 -0
  200. package/src/utils/generate-globs.js.map +1 -0
  201. package/src/utils/styles.d.ts +40 -0
  202. package/src/utils/styles.js +56 -0
  203. package/src/utils/styles.js.map +1 -0
  204. package/src/utils/types.d.ts +53 -0
  205. package/src/utils/types.js +3 -0
  206. package/src/utils/types.js.map +1 -0
  207. package/src/utils/versions.d.ts +9 -0
  208. package/src/utils/versions.js +13 -0
  209. package/src/utils/versions.js.map +1 -0
  210. package/tailwind.d.ts +2 -0
  211. package/tailwind.js +7 -0
  212. package/tailwind.js.map +1 -0
  213. package/typings/image.d.ts +12 -0
@@ -0,0 +1,785 @@
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
253
+ <span>Plugin for VSCode</span>
254
+ </span>
255
+ </a>
256
+ <div id="nx-cloud" className="rounded shadow">
257
+ <div>
258
+ <svg id="nx-cloud-logo" role="img" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" fill="transparent" viewBox="0 0 24 24">
259
+ <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" />
260
+ <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" />
261
+ </svg>
262
+ <h2>
263
+ NxCloud
264
+ <span>
265
+ Enable faster CI & better DX
266
+ </span>
267
+ </h2>
268
+ </div>
269
+ <p>
270
+ You can activate distributed tasks executions and caching by
271
+ running:
272
+ </p>
273
+ <pre>nx connect-to-nx-cloud</pre>
274
+ <a
275
+ href="https://nx.app/?utm_source=nx-project"
276
+ target="_blank"
277
+ rel="noreferrer"
278
+ >
279
+ {' '}
280
+ What is Nx Cloud?{' '}
281
+ </a>
282
+ </div>
283
+ <a
284
+ id="nx-repo"
285
+ className="button-pill rounded shadow"
286
+ href="https://github.com/nrwl/nx?utm_source=nx-project"
287
+ target="_blank"
288
+ rel="noreferrer"
289
+ >
290
+ <svg
291
+ fill="currentColor"
292
+ role="img"
293
+ viewBox="0 0 24 24"
294
+ xmlns="http://www.w3.org/2000/svg"
295
+ >
296
+ <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" />
297
+ </svg>
298
+ <span>
299
+ Nx is open source
300
+ <span> Love Nx? Give us a star! </span>
301
+ </span>
302
+ </a>
303
+ </div>
304
+ </div>
305
+
306
+ <div id="commands" className="rounded shadow">
307
+ <h2>Next steps</h2>
308
+ <p>Here are some things you can do with Nx:</p>
309
+ <details>
310
+ <summary>
311
+ <svg
312
+ fill="none"
313
+ stroke="currentColor"
314
+ viewBox="0 0 24 24"
315
+ xmlns="http://www.w3.org/2000/svg"
316
+ >
317
+ <path
318
+ strokeLinecap="round"
319
+ strokeLinejoin="round"
320
+ strokeWidth="2"
321
+ 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"
322
+ />
323
+ </svg>
324
+ Add UI library
325
+ </summary>
326
+ <pre>
327
+ <span># Generate UI lib</span>
328
+ nx g @nrwl/next:library ui
329
+ <span># Add a component</span>
330
+ nx g @nrwl/next:component button --project=ui
331
+ </pre>
332
+ </details>
333
+ <details>
334
+ <summary>
335
+ <svg
336
+ fill="none"
337
+ stroke="currentColor"
338
+ viewBox="0 0 24 24"
339
+ xmlns="http://www.w3.org/2000/svg"
340
+ >
341
+ <path
342
+ strokeLinecap="round"
343
+ strokeLinejoin="round"
344
+ strokeWidth="2"
345
+ 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"
346
+ />
347
+ </svg>
348
+ View interactive project graph
349
+ </summary>
350
+ <pre>nx graph</pre>
351
+ </details>
352
+ <details>
353
+ <summary>
354
+ <svg
355
+ fill="none"
356
+ stroke="currentColor"
357
+ viewBox="0 0 24 24"
358
+ xmlns="http://www.w3.org/2000/svg"
359
+ >
360
+ <path
361
+ strokeLinecap="round"
362
+ strokeLinejoin="round"
363
+ strokeWidth="2"
364
+ 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"
365
+ />
366
+ </svg>
367
+ Run affected commands
368
+ </summary>
369
+ <pre>
370
+ <span># see what&apos;s been affected by changes</span>
371
+ nx affected:graph
372
+ <span># run tests for current changes</span>
373
+ nx affected:test
374
+ <span># run e2e tests for current changes</span>
375
+ nx affected:e2e
376
+ </pre>
377
+ </details>
378
+ </div>
379
+
380
+ <p id="love">
381
+ Carefully crafted with
382
+ <svg
383
+ fill="currentColor"
384
+ stroke="none"
385
+ viewBox="0 0 24 24"
386
+ xmlns="http://www.w3.org/2000/svg"
387
+ >
388
+ <path
389
+ strokeLinecap="round"
390
+ strokeLinejoin="round"
391
+ strokeWidth="2"
392
+ 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"
393
+ />
394
+ </svg>
395
+ </p>
396
+ </div>
397
+ </div>
398
+ `;
399
+ }
400
+ exports.createAppJsx = createAppJsx;
401
+ function createStyleRules() {
402
+ return `
403
+ html {
404
+ -webkit-text-size-adjust: 100%;
405
+ 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;
406
+ line-height: 1.5;
407
+ tab-size: 4;
408
+ scroll-behavior: smooth;
409
+ }
410
+ body {
411
+ font-family: inherit;
412
+ line-height: inherit;
413
+ margin: 0;
414
+ }
415
+ h1,
416
+ h2,
417
+ p,
418
+ pre {
419
+ margin: 0;
420
+ }
421
+ *,
422
+ ::before,
423
+ ::after {
424
+ box-sizing: border-box;
425
+ border-width: 0;
426
+ border-style: solid;
427
+ border-color: currentColor;
428
+ }
429
+ h1,
430
+ h2 {
431
+ font-size: inherit;
432
+ font-weight: inherit;
433
+ }
434
+ a {
435
+ color: inherit;
436
+ text-decoration: inherit;
437
+ }
438
+ pre {
439
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
440
+ }
441
+ svg {
442
+ display: block;
443
+ vertical-align: middle;
444
+ shape-rendering: auto;
445
+ text-rendering: optimizeLegibility;
446
+ }
447
+ pre {
448
+ background-color: rgba(55, 65, 81, 1);
449
+ border-radius: 0.25rem;
450
+ color: rgba(229, 231, 235, 1);
451
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
452
+ overflow: scroll;
453
+ padding: 0.5rem 0.75rem;
454
+ }
455
+
456
+ .shadow {
457
+ 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);
458
+ }
459
+ .rounded {
460
+ border-radius: 1.5rem;
461
+ }
462
+ .wrapper {
463
+ width: 100%;
464
+ }
465
+ .container {
466
+ margin-left: auto;
467
+ margin-right: auto;
468
+ max-width: 768px;
469
+ padding-bottom: 3rem;
470
+ padding-left: 1rem;
471
+ padding-right: 1rem;
472
+ color: rgba(55, 65, 81, 1);
473
+ width: 100%;
474
+ }
475
+ #welcome {
476
+ margin-top: 2.5rem;
477
+ }
478
+ #welcome h1 {
479
+ font-size: 3rem;
480
+ font-weight: 500;
481
+ letter-spacing: -0.025em;
482
+ line-height: 1;
483
+ }
484
+ #welcome span {
485
+ display: block;
486
+ font-size: 1.875rem;
487
+ font-weight: 300;
488
+ line-height: 2.25rem;
489
+ margin-bottom: 0.5rem;
490
+ }
491
+ #hero {
492
+ align-items: center;
493
+ background-color: hsla(214, 62%, 21%, 1);
494
+ border: none;
495
+ box-sizing: border-box;
496
+ color: rgba(55, 65, 81, 1);
497
+ display: grid;
498
+ grid-template-columns: 1fr;
499
+ margin-top: 3.5rem;
500
+ }
501
+ #hero .text-container {
502
+ color: rgba(255, 255, 255, 1);
503
+ padding: 3rem 2rem;
504
+ }
505
+ #hero .text-container h2 {
506
+ font-size: 1.5rem;
507
+ line-height: 2rem;
508
+ position: relative;
509
+ }
510
+ #hero .text-container h2 svg {
511
+ color: hsla(162, 47%, 50%, 1);
512
+ height: 2rem;
513
+ left: -0.25rem;
514
+ position: absolute;
515
+ top: 0;
516
+ width: 2rem;
517
+ }
518
+ #hero .text-container h2 span {
519
+ margin-left: 2.5rem;
520
+ }
521
+ #hero .text-container a {
522
+ background-color: rgba(255, 255, 255, 1);
523
+ border-radius: 0.75rem;
524
+ color: rgba(55, 65, 81, 1);
525
+ display: inline-block;
526
+ margin-top: 1.5rem;
527
+ padding: 1rem 2rem;
528
+ text-decoration: inherit;
529
+ }
530
+ #hero .logo-container {
531
+ display: none;
532
+ justify-content: center;
533
+ padding-left: 2rem;
534
+ padding-right: 2rem;
535
+ }
536
+ #hero .logo-container svg {
537
+ color: rgba(255, 255, 255, 1);
538
+ width: 66.666667%;
539
+ }
540
+ #middle-content {
541
+ align-items: flex-start;
542
+ display: grid;
543
+ gap: 4rem;
544
+ grid-template-columns: 1fr;
545
+ margin-top: 3.5rem;
546
+ }
547
+ #learning-materials {
548
+ padding: 2.5rem 2rem;
549
+ }
550
+ #learning-materials h2 {
551
+ font-weight: 500;
552
+ font-size: 1.25rem;
553
+ letter-spacing: -0.025em;
554
+ line-height: 1.75rem;
555
+ padding-left: 1rem;
556
+ padding-right: 1rem;
557
+ }
558
+ .list-item-link {
559
+ align-items: center;
560
+ border-radius: 0.75rem;
561
+ display: flex;
562
+ margin-top: 1rem;
563
+ padding: 1rem;
564
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
565
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
566
+ transition-duration: 150ms;
567
+ width: 100%;
568
+ }
569
+ .list-item-link svg:first-child {
570
+ margin-right: 1rem;
571
+ height: 1.5rem;
572
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
573
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
574
+ transition-duration: 150ms;
575
+ width: 1.5rem;
576
+ }
577
+ .list-item-link > span {
578
+ flex-grow: 1;
579
+ font-weight: 400;
580
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
581
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
582
+ transition-duration: 150ms;
583
+ }
584
+ .list-item-link > span > span {
585
+ color: rgba(107, 114, 128, 1);
586
+ display: block;
587
+ flex-grow: 1;
588
+ font-size: 0.75rem;
589
+ font-weight: 300;
590
+ line-height: 1rem;
591
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
592
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
593
+ transition-duration: 150ms;
594
+ }
595
+ .list-item-link svg:last-child {
596
+ height: 1rem;
597
+ transition-property: all;
598
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
599
+ transition-duration: 150ms;
600
+ width: 1rem;
601
+ }
602
+ .list-item-link:hover {
603
+ color: rgba(255, 255, 255, 1);
604
+ background-color: hsla(162, 47%, 50%, 1);
605
+ }
606
+ .list-item-link:hover > span {}
607
+ .list-item-link:hover > span > span {
608
+ color: rgba(243, 244, 246, 1);
609
+ }
610
+ .list-item-link:hover svg:last-child {
611
+ transform: translateX(0.25rem);
612
+ }
613
+ #other-links {}
614
+ .button-pill {
615
+ padding: 1.5rem 2rem;
616
+ transition-duration: 300ms;
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
+ align-items: center;
620
+ display: flex;
621
+ }
622
+ .button-pill svg {
623
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
624
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
625
+ transition-duration: 150ms;
626
+ flex-shrink: 0;
627
+ width: 3rem;
628
+ }
629
+ .button-pill > span {
630
+ letter-spacing: -0.025em;
631
+ font-weight: 400;
632
+ font-size: 1.125rem;
633
+ line-height: 1.75rem;
634
+ padding-left: 1rem;
635
+ padding-right: 1rem;
636
+ }
637
+ .button-pill span span {
638
+ display: block;
639
+ font-size: 0.875rem;
640
+ font-weight: 300;
641
+ line-height: 1.25rem;
642
+ }
643
+ .button-pill:hover svg,
644
+ .button-pill:hover {
645
+ color: rgba(255, 255, 255, 1) !important;
646
+ }
647
+ #nx-console:hover {
648
+ background-color: rgba(0, 122, 204, 1);
649
+ }
650
+ #nx-console svg {
651
+ color: rgba(0, 122, 204, 1);
652
+ }
653
+ #nx-repo:hover {
654
+ background-color: rgba(24, 23, 23, 1);
655
+ }
656
+ #nx-repo svg {
657
+ color: rgba(24, 23, 23, 1);
658
+ }
659
+ #nx-cloud {
660
+ margin-bottom: 2rem;
661
+ margin-top: 2rem;
662
+ padding: 2.5rem 2rem;
663
+ }
664
+ #nx-cloud > div {
665
+ align-items: center;
666
+ display: flex;
667
+ }
668
+ #nx-cloud > div svg {
669
+ border-radius: 0.375rem;
670
+ flex-shrink: 0;
671
+ width: 3rem;
672
+ }
673
+ #nx-cloud > div h2 {
674
+ font-size: 1.125rem;
675
+ font-weight: 400;
676
+ letter-spacing: -0.025em;
677
+ line-height: 1.75rem;
678
+ padding-left: 1rem;
679
+ padding-right: 1rem;
680
+ }
681
+ #nx-cloud > div h2 span {
682
+ display: block;
683
+ font-size: 0.875rem;
684
+ font-weight: 300;
685
+ line-height: 1.25rem;
686
+ }
687
+ #nx-cloud p {
688
+ font-size: 1rem;
689
+ line-height: 1.5rem;
690
+ margin-top: 1rem;
691
+ }
692
+ #nx-cloud pre {
693
+ margin-top: 1rem;
694
+ }
695
+ #nx-cloud a {
696
+ color: rgba(107, 114, 128, 1);
697
+ display: block;
698
+ font-size: 0.875rem;
699
+ line-height: 1.25rem;
700
+ margin-top: 1.5rem;
701
+ text-align: right;
702
+ }
703
+ #nx-cloud a:hover {
704
+ text-decoration: underline;
705
+ }
706
+ #commands {
707
+ padding: 2.5rem 2rem;
708
+ margin-top: 3.5rem;
709
+ }
710
+ #commands h2 {
711
+ font-size: 1.25rem;
712
+ font-weight: 400;
713
+ letter-spacing: -0.025em;
714
+ line-height: 1.75rem;
715
+ padding-left: 1rem;
716
+ padding-right: 1rem;
717
+ }
718
+ #commands p {
719
+ font-size: 1rem;
720
+ font-weight: 300;
721
+ line-height: 1.5rem;
722
+ margin-top: 1rem;
723
+ padding-left: 1rem;
724
+ padding-right: 1rem;
725
+ }
726
+ details {
727
+ align-items: center;
728
+ display: flex;
729
+ margin-top: 1rem;
730
+ padding-left: 1rem;
731
+ padding-right: 1rem;
732
+ width: 100%;
733
+ }
734
+ details pre > span {
735
+ color: rgba(181, 181, 181, 1);
736
+ display: block;
737
+ }
738
+ summary {
739
+ border-radius: 0.5rem;
740
+ display: flex;
741
+ font-weight: 400;
742
+ padding: 0.5rem;
743
+ cursor: pointer;
744
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
745
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
746
+ transition-duration: 150ms;
747
+ }
748
+ summary:hover {
749
+ background-color: rgba(243, 244, 246, 1);
750
+ }
751
+ summary svg {
752
+ height: 1.5rem;
753
+ margin-right: 1rem;
754
+ width: 1.5rem;
755
+ }
756
+ #love {
757
+ color: rgba(107, 114, 128, 1);
758
+ font-size: 0.875rem;
759
+ line-height: 1.25rem;
760
+ margin-top: 3.5rem;
761
+ opacity: 0.6;
762
+ text-align: center;
763
+ }
764
+ #love svg {
765
+ color: rgba(252, 165, 165, 1);
766
+ width: 1.25rem;
767
+ height: 1.25rem;
768
+ display: inline;
769
+ margin-top: -0.25rem;
770
+ }
771
+ @media screen and (min-width: 768px) {
772
+ #hero {
773
+ grid-template-columns: repeat(2, minmax(0, 1fr));
774
+ }
775
+ #hero .logo-container {
776
+ display: flex;
777
+ }
778
+ #middle-content {
779
+ grid-template-columns: repeat(2, minmax(0, 1fr));
780
+ }
781
+ }
782
+ `;
783
+ }
784
+ exports.createStyleRules = createStyleRules;
785
+ //# sourceMappingURL=create-application-files.helpers.js.map