@nx/next 18.2.3 → 18.2.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/next",
|
|
3
|
-
"version": "18.2.
|
|
3
|
+
"version": "18.2.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Next.js plugin for Nx contains executors and generators for managing Next.js applications and libraries within an Nx workspace. It provides:\n\n\n- Scaffolding for creating, building, serving, linting, and testing Next.js applications.\n\n- Integration with building, serving, and exporting a Next.js application.\n\n- Integration with React libraries within the workspace. \n\nWhen using Next.js in Nx, you get the out-of-the-box support for TypeScript, Cypress, and Jest. No need to configure anything: watch mode, source maps, and typings just work.",
|
|
6
6
|
"repository": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"next": ">=14.0.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@nx/devkit": "18.2.
|
|
37
|
+
"@nx/devkit": "18.2.4",
|
|
38
38
|
"@babel/plugin-proposal-decorators": "^7.22.7",
|
|
39
39
|
"@svgr/webpack": "^8.0.1",
|
|
40
40
|
"chalk": "^4.1.0",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"semver": "^7.5.3",
|
|
46
46
|
"tslib": "^2.3.0",
|
|
47
47
|
"webpack-merge": "^5.8.0",
|
|
48
|
-
"@nx/js": "18.2.
|
|
49
|
-
"@nx/eslint": "18.2.
|
|
50
|
-
"@nx/react": "18.2.
|
|
51
|
-
"@nx/web": "18.2.
|
|
52
|
-
"@nx/webpack": "18.2.
|
|
53
|
-
"@nx/workspace": "18.2.
|
|
54
|
-
"@nrwl/next": "18.2.
|
|
48
|
+
"@nx/js": "18.2.4",
|
|
49
|
+
"@nx/eslint": "18.2.4",
|
|
50
|
+
"@nx/react": "18.2.4",
|
|
51
|
+
"@nx/web": "18.2.4",
|
|
52
|
+
"@nx/webpack": "18.2.4",
|
|
53
|
+
"@nx/workspace": "18.2.4",
|
|
54
|
+
"@nrwl/next": "18.2.4"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.applicationGeneratorInternal = exports.applicationGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const js_1 = require("@nx/js");
|
|
6
|
+
const react_1 = require("@nx/react");
|
|
6
7
|
const versions_1 = require("@nx/react/src/utils/versions");
|
|
7
8
|
const normalize_options_1 = require("./lib/normalize-options");
|
|
8
9
|
const add_e2e_1 = require("./lib/add-e2e");
|
|
@@ -50,6 +51,12 @@ async function applicationGeneratorInternal(host, schema) {
|
|
|
50
51
|
tasks.push(jestTask);
|
|
51
52
|
const lintTask = await (0, add_linting_1.addLinting)(host, options);
|
|
52
53
|
tasks.push(lintTask);
|
|
54
|
+
if (options.style === 'tailwind') {
|
|
55
|
+
const tailwindTask = await (0, react_1.setupTailwindGenerator)(host, {
|
|
56
|
+
project: options.projectName,
|
|
57
|
+
});
|
|
58
|
+
tasks.push(tailwindTask);
|
|
59
|
+
}
|
|
53
60
|
const styledTask = (0, styles_1.addStyleDependencies)(host, {
|
|
54
61
|
style: options.style,
|
|
55
62
|
swc: !host.exists((0, devkit_1.joinPathFragments)(options.appProjectRoot, '.babelrc')),
|
|
@@ -31,6 +31,7 @@ function createApplicationFiles(host, options) {
|
|
|
31
31
|
styleContent: (0, create_application_files_helpers_1.createStyleRules)(),
|
|
32
32
|
pageStyleContent: `.page {}`,
|
|
33
33
|
stylesExt: options.style === 'less' ? options.style : 'css',
|
|
34
|
+
style: options.style === 'tailwind' ? 'css' : options.style,
|
|
34
35
|
};
|
|
35
36
|
const generatedAppFilePath = options.src
|
|
36
37
|
? (0, path_1.join)(options.appProjectRoot, 'src')
|
|
@@ -52,7 +52,7 @@ async function normalizeOptions(host, options) {
|
|
|
52
52
|
const fileName = 'index';
|
|
53
53
|
const appDir = options.appDir ?? true;
|
|
54
54
|
const src = options.src ?? true;
|
|
55
|
-
const styledModule = /^(css|scss|less)$/.test(options.style)
|
|
55
|
+
const styledModule = /^(css|scss|less|tailwind)$/.test(options.style)
|
|
56
56
|
? null
|
|
57
57
|
: options.style;
|
|
58
58
|
(0, assertion_1.assertValidStyle)(options.style);
|
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
"value": "less",
|
|
47
47
|
"label": "LESS [ https://lesscss.org ]"
|
|
48
48
|
},
|
|
49
|
+
{
|
|
50
|
+
"value": "tailwind",
|
|
51
|
+
"label": "tailwind [ https://tailwindcss.com/ ]"
|
|
52
|
+
},
|
|
49
53
|
{
|
|
50
54
|
"value": "styled-components",
|
|
51
55
|
"label": "styled-components [ https://styled-components.com ]"
|