@nx/next 23.0.0-beta.1 → 23.0.0-beta.3
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.
- package/index.d.ts +0 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -3
- package/package.json +10 -10
- package/plugins/with-nx.d.ts.map +1 -1
- package/plugins/with-nx.js +3 -11
- package/src/generators/application/application.d.ts.map +1 -1
- package/src/generators/application/application.js +0 -15
- package/src/generators/application/files/app/page.tsx__tmpl__ +4 -16
- package/src/generators/application/files/common/__dot__babelrc +2 -19
- package/src/generators/application/files/common/index.d.ts__tmpl__ +0 -7
- package/src/generators/application/files/common/next.config.js__tmpl__ +0 -56
- package/src/generators/application/files/common/tsconfig.json__tmpl__ +0 -1
- package/src/generators/application/files/pages/__fileName__.tsx__tmpl__ +4 -13
- package/src/generators/application/lib/add-e2e.d.ts.map +1 -1
- package/src/generators/application/lib/add-e2e.js +2 -4
- package/src/generators/application/lib/create-application-files.d.ts.map +1 -1
- package/src/generators/application/lib/create-application-files.js +2 -21
- package/src/generators/application/lib/normalize-options.d.ts +0 -1
- package/src/generators/application/lib/normalize-options.d.ts.map +1 -1
- package/src/generators/application/lib/normalize-options.js +0 -4
- package/src/generators/application/schema.json +2 -21
- package/src/generators/component/schema.json +2 -21
- package/src/generators/library/library.d.ts.map +1 -1
- package/src/generators/library/library.js +0 -6
- package/src/generators/library/schema.json +2 -21
- package/src/generators/page/schema.json +2 -17
- package/src/utils/styles.d.ts +0 -62
- package/src/utils/styles.d.ts.map +1 -1
- package/src/utils/styles.js +4 -50
- package/src/utils/versions.d.ts +1 -4
- package/src/utils/versions.d.ts.map +1 -1
- package/src/utils/versions.js +2 -5
- package/tailwind.d.ts +3 -5
- package/tailwind.d.ts.map +1 -1
- package/tailwind.js +36 -11
- package/src/generators/application/files/app-styled-components/layout.tsx__tmpl__ +0 -21
- package/src/generators/application/files/app-styled-components/registry.tsx__tmpl__ +0 -33
- package/src/generators/application/files/app-styled-jsx/layout.tsx__tmpl__ +0 -16
- package/src/generators/application/files/app-styled-jsx/registry.tsx__tmpl__ +0 -23
- package/src/generators/application/files/pages/_document.tsx__tmpl__ +0 -33
- package/src/generators/application/lib/show-possible-warnings.d.ts +0 -4
- package/src/generators/application/lib/show-possible-warnings.d.ts.map +0 -1
- package/src/generators/application/lib/show-possible-warnings.js +0 -9
- package/src/generators/setup-tailwind/files/postcss.config.js__tmpl__ +0 -15
- package/src/generators/setup-tailwind/files/tailwind.config.js__tmpl__ +0 -23
- package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.d.ts +0 -4
- package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.d.ts.map +0 -1
- package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.js +0 -27
- package/src/generators/setup-tailwind/lib/update-project.d.ts +0 -4
- package/src/generators/setup-tailwind/lib/update-project.d.ts.map +0 -1
- package/src/generators/setup-tailwind/lib/update-project.js +0 -11
- package/src/generators/setup-tailwind/schema.d.ts +0 -7
- package/src/generators/setup-tailwind/schema.d.ts.map +0 -1
- package/src/generators/setup-tailwind/schema.js +0 -2
- package/src/generators/setup-tailwind/schema.json +0 -47
- package/src/generators/setup-tailwind/setup-tailwind.d.ts +0 -5
- package/src/generators/setup-tailwind/setup-tailwind.d.ts.map +0 -1
- package/src/generators/setup-tailwind/setup-tailwind.js +0 -35
- package/src/utils/generate-globs.d.ts +0 -6
- package/src/utils/generate-globs.d.ts.map +0 -1
- 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
|
-
}
|