@nx/next 23.0.0-beta.1 → 23.0.0-beta.2

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 (62) hide show
  1. package/index.d.ts +0 -1
  2. package/index.d.ts.map +1 -1
  3. package/index.js +1 -3
  4. package/package.json +10 -10
  5. package/plugins/with-nx.d.ts.map +1 -1
  6. package/plugins/with-nx.js +3 -11
  7. package/src/generators/application/application.d.ts.map +1 -1
  8. package/src/generators/application/application.js +0 -15
  9. package/src/generators/application/files/app/page.tsx__tmpl__ +4 -16
  10. package/src/generators/application/files/common/__dot__babelrc +2 -19
  11. package/src/generators/application/files/common/index.d.ts__tmpl__ +0 -7
  12. package/src/generators/application/files/common/next.config.js__tmpl__ +0 -56
  13. package/src/generators/application/files/common/tsconfig.json__tmpl__ +0 -1
  14. package/src/generators/application/files/pages/__fileName__.tsx__tmpl__ +4 -13
  15. package/src/generators/application/lib/add-e2e.d.ts.map +1 -1
  16. package/src/generators/application/lib/add-e2e.js +2 -4
  17. package/src/generators/application/lib/create-application-files.d.ts.map +1 -1
  18. package/src/generators/application/lib/create-application-files.js +2 -21
  19. package/src/generators/application/lib/normalize-options.d.ts +0 -1
  20. package/src/generators/application/lib/normalize-options.d.ts.map +1 -1
  21. package/src/generators/application/lib/normalize-options.js +0 -4
  22. package/src/generators/application/schema.json +2 -21
  23. package/src/generators/component/schema.json +2 -21
  24. package/src/generators/library/library.d.ts.map +1 -1
  25. package/src/generators/library/library.js +0 -6
  26. package/src/generators/library/schema.json +2 -21
  27. package/src/generators/page/schema.json +2 -17
  28. package/src/utils/styles.d.ts +0 -62
  29. package/src/utils/styles.d.ts.map +1 -1
  30. package/src/utils/styles.js +4 -50
  31. package/src/utils/versions.d.ts +1 -4
  32. package/src/utils/versions.d.ts.map +1 -1
  33. package/src/utils/versions.js +2 -5
  34. package/tailwind.d.ts +3 -5
  35. package/tailwind.d.ts.map +1 -1
  36. package/tailwind.js +36 -11
  37. package/src/generators/application/files/app-styled-components/layout.tsx__tmpl__ +0 -21
  38. package/src/generators/application/files/app-styled-components/registry.tsx__tmpl__ +0 -33
  39. package/src/generators/application/files/app-styled-jsx/layout.tsx__tmpl__ +0 -16
  40. package/src/generators/application/files/app-styled-jsx/registry.tsx__tmpl__ +0 -23
  41. package/src/generators/application/files/pages/_document.tsx__tmpl__ +0 -33
  42. package/src/generators/application/lib/show-possible-warnings.d.ts +0 -4
  43. package/src/generators/application/lib/show-possible-warnings.d.ts.map +0 -1
  44. package/src/generators/application/lib/show-possible-warnings.js +0 -9
  45. package/src/generators/setup-tailwind/files/postcss.config.js__tmpl__ +0 -15
  46. package/src/generators/setup-tailwind/files/tailwind.config.js__tmpl__ +0 -23
  47. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.d.ts +0 -4
  48. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.d.ts.map +0 -1
  49. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.js +0 -27
  50. package/src/generators/setup-tailwind/lib/update-project.d.ts +0 -4
  51. package/src/generators/setup-tailwind/lib/update-project.d.ts.map +0 -1
  52. package/src/generators/setup-tailwind/lib/update-project.js +0 -11
  53. package/src/generators/setup-tailwind/schema.d.ts +0 -7
  54. package/src/generators/setup-tailwind/schema.d.ts.map +0 -1
  55. package/src/generators/setup-tailwind/schema.js +0 -2
  56. package/src/generators/setup-tailwind/schema.json +0 -47
  57. package/src/generators/setup-tailwind/setup-tailwind.d.ts +0 -5
  58. package/src/generators/setup-tailwind/setup-tailwind.d.ts.map +0 -1
  59. package/src/generators/setup-tailwind/setup-tailwind.js +0 -35
  60. package/src/utils/generate-globs.d.ts +0 -6
  61. package/src/utils/generate-globs.d.ts.map +0 -1
  62. package/src/utils/generate-globs.js +0 -28
@@ -1,6 +0,0 @@
1
- /**
2
- * Use createGlobPatterns instead
3
- * @deprecated Use createGlobPatternsForDependencies instead
4
- */
5
- export declare function createGlobPatternsOfDependentProjects(projectName: string, fileGlobPattern?: string): string[];
6
- //# sourceMappingURL=generate-globs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate-globs.d.ts","sourceRoot":"","sources":["../../../../../packages/next/src/utils/generate-globs.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,qCAAqC,CACnD,WAAW,EAAE,MAAM,EACnB,eAAe,GAAE,MAAsC,GACtD,MAAM,EAAE,CAyBV"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createGlobPatternsOfDependentProjects = createGlobPatternsOfDependentProjects;
4
- const devkit_1 = require("@nx/devkit");
5
- const devkit_2 = require("@nx/devkit");
6
- const project_graph_utils_1 = require("nx/src/utils/project-graph-utils");
7
- const path_1 = require("path");
8
- /**
9
- * Use createGlobPatterns instead
10
- * @deprecated Use createGlobPatternsForDependencies instead
11
- */
12
- function createGlobPatternsOfDependentProjects(projectName, fileGlobPattern = '/**/!(*.stories|*.spec).tsx') {
13
- devkit_1.logger.warn(`createGlobPatternsOfDependentProjects is deprecated. Use "createGlobPatternsForDependencies(__dirname)" from "@nx/next/tailwind" instead`);
14
- try {
15
- const [projectDirs, warnings] = (0, project_graph_utils_1.getSourceDirOfDependentProjects)(projectName);
16
- if (warnings.length > 0) {
17
- devkit_1.logger.warn(`
18
- [createGlobPatternsForDependencies] Failed to generate glob pattern for the following:
19
- ${warnings.join('\n- ')}\n
20
- due to missing "sourceRoot" in the dependencies' project configuration
21
- `);
22
- }
23
- return projectDirs.map((sourceDir) => (0, path_1.resolve)(devkit_2.workspaceRoot, (0, devkit_1.joinPathFragments)(sourceDir, fileGlobPattern)));
24
- }
25
- catch (e) {
26
- throw new Error(`createGlobPatternsOfDependentProjects: Error when generating globs: ${e?.message}`);
27
- }
28
- }