|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 | 3 | exports[`@nx/next/plugin integrated projects should create nodes 1`] = `
|
4 |
| -{ |
5 |
| - "projects": { |
6 |
| - "my-app": { |
7 |
| - "root": "my-app", |
8 |
| - "targets": { |
9 |
| - "my-build": { |
10 |
| - "cache": true, |
11 |
| - "command": "next build", |
12 |
| - "dependsOn": [ |
13 |
| - "^build", |
14 |
| - ], |
15 |
| - "inputs": [ |
16 |
| - "default", |
17 |
| - "^production", |
18 |
| - { |
19 |
| - "externalDependencies": [ |
20 |
| - "next", |
| 4 | +[ |
| 5 | + [ |
| 6 | + "my-app/next.config.js", |
| 7 | + { |
| 8 | + "projects": { |
| 9 | + "my-app": { |
| 10 | + "root": "my-app", |
| 11 | + "targets": { |
| 12 | + "my-build": { |
| 13 | + "cache": true, |
| 14 | + "command": "next build", |
| 15 | + "dependsOn": [ |
| 16 | + "^build", |
| 17 | + ], |
| 18 | + "inputs": [ |
| 19 | + "default", |
| 20 | + "^production", |
| 21 | + { |
| 22 | + "externalDependencies": [ |
| 23 | + "next", |
| 24 | + ], |
| 25 | + }, |
| 26 | + ], |
| 27 | + "options": { |
| 28 | + "cwd": "my-app", |
| 29 | + "tty": false, |
| 30 | + }, |
| 31 | + "outputs": [ |
| 32 | + "{workspaceRoot}/my-app/.next", |
| 33 | + "{workspaceRoot}/my-app/.next/!(cache)", |
21 | 34 | ],
|
22 | 35 | },
|
23 |
| - ], |
24 |
| - "options": { |
25 |
| - "cwd": "my-app", |
26 |
| - "tty": false, |
27 |
| - }, |
28 |
| - "outputs": [ |
29 |
| - "{workspaceRoot}/my-app/.next", |
30 |
| - "{workspaceRoot}/my-app/.next/!(cache)", |
31 |
| - ], |
32 |
| - }, |
33 |
| - "my-serve": { |
34 |
| - "command": "next dev", |
35 |
| - "options": { |
36 |
| - "cwd": "my-app", |
37 |
| - }, |
38 |
| - }, |
39 |
| - "my-serve-static": { |
40 |
| - "executor": "@nx/web:file-server", |
41 |
| - "options": { |
42 |
| - "buildTarget": "my-build", |
43 |
| - "port": 3000, |
44 |
| - "spa": false, |
45 |
| - "staticFilePath": "{projectRoot}/out", |
46 |
| - }, |
47 |
| - }, |
48 |
| - "my-start": { |
49 |
| - "command": "next start", |
50 |
| - "dependsOn": [ |
51 |
| - "my-build", |
52 |
| - ], |
53 |
| - "options": { |
54 |
| - "cwd": "my-app", |
| 36 | + "my-serve": { |
| 37 | + "command": "next dev", |
| 38 | + "options": { |
| 39 | + "cwd": "my-app", |
| 40 | + }, |
| 41 | + }, |
| 42 | + "my-serve-static": { |
| 43 | + "executor": "@nx/web:file-server", |
| 44 | + "options": { |
| 45 | + "buildTarget": "my-build", |
| 46 | + "port": 3000, |
| 47 | + "spa": false, |
| 48 | + "staticFilePath": "{projectRoot}/out", |
| 49 | + }, |
| 50 | + }, |
| 51 | + "my-start": { |
| 52 | + "command": "next start", |
| 53 | + "dependsOn": [ |
| 54 | + "my-build", |
| 55 | + ], |
| 56 | + "options": { |
| 57 | + "cwd": "my-app", |
| 58 | + }, |
| 59 | + }, |
55 | 60 | },
|
56 | 61 | },
|
57 | 62 | },
|
58 | 63 | },
|
59 |
| - }, |
60 |
| -} |
| 64 | + ], |
| 65 | +] |
61 | 66 | `;
|
62 | 67 |
|
63 | 68 | exports[`@nx/next/plugin root projects should create nodes 1`] = `
|
64 |
| -{ |
65 |
| - "projects": { |
66 |
| - ".": { |
67 |
| - "root": ".", |
68 |
| - "targets": { |
69 |
| - "build": { |
70 |
| - "cache": true, |
71 |
| - "command": "next build", |
72 |
| - "dependsOn": [ |
73 |
| - "^build", |
74 |
| - ], |
75 |
| - "inputs": [ |
76 |
| - "default", |
77 |
| - "^production", |
78 |
| - { |
79 |
| - "externalDependencies": [ |
80 |
| - "next", |
| 69 | +[ |
| 70 | + [ |
| 71 | + "next.config.js", |
| 72 | + { |
| 73 | + "projects": { |
| 74 | + ".": { |
| 75 | + "root": ".", |
| 76 | + "targets": { |
| 77 | + "build": { |
| 78 | + "cache": true, |
| 79 | + "command": "next build", |
| 80 | + "dependsOn": [ |
| 81 | + "^build", |
| 82 | + ], |
| 83 | + "inputs": [ |
| 84 | + "default", |
| 85 | + "^production", |
| 86 | + { |
| 87 | + "externalDependencies": [ |
| 88 | + "next", |
| 89 | + ], |
| 90 | + }, |
| 91 | + ], |
| 92 | + "options": { |
| 93 | + "cwd": ".", |
| 94 | + "tty": false, |
| 95 | + }, |
| 96 | + "outputs": [ |
| 97 | + "{projectRoot}/.next", |
| 98 | + "{projectRoot}/.next/!(cache)", |
81 | 99 | ],
|
82 | 100 | },
|
83 |
| - ], |
84 |
| - "options": { |
85 |
| - "cwd": ".", |
86 |
| - "tty": false, |
87 |
| - }, |
88 |
| - "outputs": [ |
89 |
| - "{projectRoot}/.next", |
90 |
| - "{projectRoot}/.next/!(cache)", |
91 |
| - ], |
92 |
| - }, |
93 |
| - "dev": { |
94 |
| - "command": "next dev", |
95 |
| - "options": { |
96 |
| - "cwd": ".", |
97 |
| - }, |
98 |
| - }, |
99 |
| - "serve-static": { |
100 |
| - "executor": "@nx/web:file-server", |
101 |
| - "options": { |
102 |
| - "buildTarget": "build", |
103 |
| - "port": 3000, |
104 |
| - "spa": false, |
105 |
| - "staticFilePath": "{projectRoot}/out", |
106 |
| - }, |
107 |
| - }, |
108 |
| - "start": { |
109 |
| - "command": "next start", |
110 |
| - "dependsOn": [ |
111 |
| - "build", |
112 |
| - ], |
113 |
| - "options": { |
114 |
| - "cwd": ".", |
| 101 | + "dev": { |
| 102 | + "command": "next dev", |
| 103 | + "options": { |
| 104 | + "cwd": ".", |
| 105 | + }, |
| 106 | + }, |
| 107 | + "serve-static": { |
| 108 | + "executor": "@nx/web:file-server", |
| 109 | + "options": { |
| 110 | + "buildTarget": "build", |
| 111 | + "port": 3000, |
| 112 | + "spa": false, |
| 113 | + "staticFilePath": "{projectRoot}/out", |
| 114 | + }, |
| 115 | + }, |
| 116 | + "start": { |
| 117 | + "command": "next start", |
| 118 | + "dependsOn": [ |
| 119 | + "build", |
| 120 | + ], |
| 121 | + "options": { |
| 122 | + "cwd": ".", |
| 123 | + }, |
| 124 | + }, |
115 | 125 | },
|
116 | 126 | },
|
117 | 127 | },
|
118 | 128 | },
|
119 |
| - }, |
120 |
| -} |
| 129 | + ], |
| 130 | +] |
121 | 131 | `;
|
0 commit comments