@nx/next 19.2.2 → 19.3.0-beta.0

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": "19.2.2",
3
+ "version": "19.3.0-beta.0",
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, Playwright, Cypress, and Jest. No need to configure anything: watch mode, source maps, and typings just work.",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "next": ">=14.0.0"
36
36
  },
37
37
  "dependencies": {
38
- "@nx/devkit": "19.2.2",
38
+ "@nx/devkit": "19.3.0-beta.0",
39
39
  "@babel/plugin-proposal-decorators": "^7.22.7",
40
40
  "@svgr/webpack": "^8.0.1",
41
41
  "chalk": "^4.1.0",
@@ -46,13 +46,13 @@
46
46
  "semver": "^7.5.3",
47
47
  "tslib": "^2.3.0",
48
48
  "webpack-merge": "^5.8.0",
49
- "@nx/js": "19.2.2",
50
- "@nx/eslint": "19.2.2",
51
- "@nx/react": "19.2.2",
52
- "@nx/web": "19.2.2",
53
- "@nx/webpack": "19.2.2",
54
- "@nx/workspace": "19.2.2",
55
- "@nrwl/next": "19.2.2"
49
+ "@nx/js": "19.3.0-beta.0",
50
+ "@nx/eslint": "19.3.0-beta.0",
51
+ "@nx/react": "19.3.0-beta.0",
52
+ "@nx/web": "19.3.0-beta.0",
53
+ "@nx/webpack": "19.3.0-beta.0",
54
+ "@nx/workspace": "19.3.0-beta.0",
55
+ "@nrwl/next": "19.3.0-beta.0"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public"
@@ -7,7 +7,7 @@
7
7
  %>import styled from '<%= styledModule %>';<% } else {
8
8
  var wrapper = 'div';
9
9
  %>
10
- <%- (style !== 'styled-jsx' && style !== 'tailwind') ? `import styles from './page.module.${style}';` : '' %>
10
+ <%- style !== 'styled-jsx' ? `import styles from './page.module.${style}';` : '' %>
11
11
  <% }
12
12
  %>
13
13
 
@@ -22,9 +22,9 @@ export default function Index() {
22
22
  * Note: The corresponding styles are in the ./<%= fileName %>.<%= style %> file.
23
23
  */
24
24
  return (
25
- <<%= wrapper %><% if (!styledModule && style !== 'tailwind') {%> className={styles.page}<% } %>>
25
+ <<%= wrapper %><% if (!styledModule) {%> className={styles.page}<% } %>>
26
26
  <%- styledModule === 'styled-jsx' && style !== 'none' ? `<style jsx>{\`${pageStyleContent}\`}</style>` : `` %>
27
27
  <%- appContent %>
28
28
  </<%= wrapper %>>
29
29
  );
30
- };
30
+ };
@@ -4,7 +4,7 @@
4
4
  %>import styled from '<%= styledModule %>';<% } else {
5
5
  var wrapper = 'div';
6
6
  %>
7
- <%- (style !== 'styled-jsx' && style !== 'tailwind') ? `import styles from './${fileName}.module.${style}';` : '' %>
7
+ <%- style !== 'styled-jsx' ? `import styles from './${fileName}.module.${style}';` : '' %>
8
8
  <% }
9
9
  %>
10
10
 
@@ -20,7 +20,7 @@ export function Index() {
20
20
  * Note: The corresponding styles are in the ./<%= fileName %>.<%= style %> file.
21
21
  */
22
22
  return (
23
- <<%= wrapper %><% if (!styledModule && style !== 'tailwind') {%> className={styles.page}<% } %>>
23
+ <<%= wrapper %><% if (!styledModule) {%> className={styles.page}<% } %>>
24
24
  <%- styledModule === 'styled-jsx' && style !== 'none' ? `<style jsx>{\`${pageStyleContent}\`}</style>` : `` %>
25
25
  <%- appContent %>
26
26
  </<%= wrapper %>>
@@ -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')
@@ -94,7 +95,7 @@ function createApplicationFiles(host, options) {
94
95
  if (options.swc !== false) {
95
96
  host.delete(`${options.appProjectRoot}/.babelrc`);
96
97
  }
97
- if (options.styledModule || options.style === 'tailwind') {
98
+ if (options.styledModule) {
98
99
  if (options.appDir) {
99
100
  host.delete(`${generatedAppFilePath}/app/page.module.${options.style}`);
100
101
  }