@nrwl/next 14.8.8 → 14.9.0-beta.1
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/CHANGELOG.md +1 -1
- package/LICENSE +22 -22
- package/README.md +5 -26
- package/migrations.json +34 -115
- package/package.json +14 -13
- package/plugins/with-nx.d.ts +1 -101
- package/plugins/with-nx.js +7 -3
- package/plugins/with-nx.js.map +1 -1
- package/src/executors/build/build.impl.js +19 -5
- package/src/executors/build/build.impl.js.map +1 -1
- package/src/executors/build/lib/create-next-config-file.js +1 -1
- package/src/executors/build/lib/create-next-config-file.js.map +1 -1
- package/src/executors/build/lib/update-package-json.d.ts +3 -0
- package/src/executors/build/lib/update-package-json.js +18 -0
- package/src/executors/build/lib/update-package-json.js.map +1 -0
- package/src/executors/build/schema.json +14 -4
- package/src/executors/export/export.impl.js +15 -9
- package/src/executors/export/export.impl.js.map +1 -1
- package/src/executors/export/schema.json +4 -1
- package/src/executors/server/schema.json +8 -4
- package/src/executors/server/server.impl.js +21 -14
- package/src/executors/server/server.impl.js.map +1 -1
- package/src/generators/application/application.js +1 -2
- package/src/generators/application/application.js.map +1 -1
- package/src/generators/application/files/next.config.js__tmpl__ +1 -1
- package/src/generators/application/files/tsconfig.json__tmpl__ +1 -1
- package/src/generators/application/lib/add-jest.d.ts +1 -1
- package/src/generators/application/lib/add-linting.js +19 -23
- package/src/generators/application/lib/add-linting.js.map +1 -1
- package/src/generators/application/lib/add-project.js +3 -3
- package/src/generators/application/lib/add-project.js.map +1 -1
- package/src/generators/application/lib/create-application-files.d.ts +1 -1
- package/src/generators/application/lib/create-application-files.helpers.js +2 -2
- package/src/generators/application/lib/create-application-files.js +3 -3
- package/src/generators/application/lib/create-application-files.js.map +1 -1
- package/src/generators/application/lib/normalize-options.js +6 -5
- package/src/generators/application/lib/normalize-options.js.map +1 -1
- package/src/generators/application/lib/set-defaults.js +6 -9
- package/src/generators/application/lib/set-defaults.js.map +1 -1
- package/src/generators/application/schema.d.ts +1 -1
- package/src/generators/application/schema.json +18 -17
- package/src/generators/component/component.d.ts +2 -0
- package/src/generators/component/component.js +2 -3
- package/src/generators/component/component.js.map +1 -1
- package/src/generators/component/schema.json +22 -15
- package/src/generators/custom-server/schema.json +4 -8
- package/src/generators/init/init.js +19 -15
- package/src/generators/init/init.js.map +1 -1
- package/src/generators/init/schema.d.ts +1 -0
- package/src/generators/init/schema.json +6 -0
- package/src/generators/library/library.js +3 -4
- package/src/generators/library/library.js.map +1 -1
- package/src/generators/library/schema.d.ts +1 -0
- package/src/generators/library/schema.json +16 -15
- package/src/generators/page/page.js +1 -2
- package/src/generators/page/page.js.map +1 -1
- package/src/generators/page/schema.json +10 -11
- package/src/utils/buildable-libs.d.ts +1 -1
- package/src/utils/buildable-libs.js +1 -1
- package/src/utils/buildable-libs.js.map +1 -1
- package/src/utils/config.d.ts +1 -1
- package/src/utils/config.js +1 -1
- package/src/utils/config.js.map +1 -1
- package/src/utils/styles.js +5 -5
- package/src/utils/styles.js.map +1 -1
- package/src/utils/types.d.ts +2 -1
- package/src/utils/versions.d.ts +4 -4
- package/src/utils/versions.js +4 -4
- package/src/executors/build/lib/create-package-json.d.ts +0 -3
- package/src/executors/build/lib/create-package-json.js +0 -29
- package/src/executors/build/lib/create-package-json.js.map +0 -1
- package/src/migrations/update-10-1-0/update-10-1-0.d.ts +0 -2
- package/src/migrations/update-10-1-0/update-10-1-0.js +0 -13
- package/src/migrations/update-10-1-0/update-10-1-0.js.map +0 -1
- package/src/migrations/update-11-0-0/rename-emotion-packages-11-0-0.d.ts +0 -1
- package/src/migrations/update-11-0-0/rename-emotion-packages-11-0-0.js +0 -15
- package/src/migrations/update-11-0-0/rename-emotion-packages-11-0-0.js.map +0 -1
- package/src/migrations/update-11-0-0/update-11-0-0.d.ts +0 -2
- package/src/migrations/update-11-0-0/update-11-0-0.js +0 -13
- package/src/migrations/update-11-0-0/update-11-0-0.js.map +0 -1
- package/src/migrations/update-11-5-0/remove-tsconfig-app-11-5-0.d.ts +0 -3
- package/src/migrations/update-11-5-0/remove-tsconfig-app-11-5-0.js +0 -32
- package/src/migrations/update-11-5-0/remove-tsconfig-app-11-5-0.js.map +0 -1
- package/src/migrations/update-11-5-0/update-babel-config.d.ts +0 -3
- package/src/migrations/update-11-5-0/update-babel-config.js +0 -24
- package/src/migrations/update-11-5-0/update-babel-config.js.map +0 -1
- package/src/migrations/update-11-6-0/add-js-include-11-6-0.d.ts +0 -3
- package/src/migrations/update-11-6-0/add-js-include-11-6-0.js +0 -29
- package/src/migrations/update-11-6-0/add-js-include-11-6-0.js.map +0 -1
- package/src/migrations/update-12-6-0/add-next-eslint.d.ts +0 -3
- package/src/migrations/update-12-6-0/add-next-eslint.js +0 -40
- package/src/migrations/update-12-6-0/add-next-eslint.js.map +0 -1
- package/src/migrations/update-8-10-0/update-8-10-0.d.ts +0 -2
- package/src/migrations/update-8-10-0/update-8-10-0.js +0 -13
- package/src/migrations/update-8-10-0/update-8-10-0.js.map +0 -1
- package/src/migrations/update-9-2-0/create-next-config.d.ts +0 -2
- package/src/migrations/update-9-2-0/create-next-config.js +0 -51
- package/src/migrations/update-9-2-0/create-next-config.js.map +0 -1
- package/src/migrations/update-9-3-1/update-9-3-1.d.ts +0 -2
- package/src/migrations/update-9-3-1/update-9-3-1.js +0 -19
- package/src/migrations/update-9-3-1/update-9-3-1.js.map +0 -1
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const nxVersion: any;
|
|
2
|
-
export declare const nextVersion = "
|
|
3
|
-
export declare const eslintConfigNextVersion = "
|
|
2
|
+
export declare const nextVersion = "13.1.1";
|
|
3
|
+
export declare const eslintConfigNextVersion = "13.1.1";
|
|
4
4
|
export declare const sassVersion = "1.55.0";
|
|
5
|
-
export declare const lessLoader = "11.
|
|
6
|
-
export declare const stylusLoader = "7.
|
|
5
|
+
export declare const lessLoader = "11.1.0";
|
|
6
|
+
export declare const stylusLoader = "7.1.0";
|
|
7
7
|
export declare const emotionServerVersion = "11.10.0";
|
|
8
8
|
export declare const babelPluginStyledComponentsVersion = "1.10.7";
|
|
9
9
|
export declare const tsLibVersion = "^2.3.0";
|
package/src/utils/versions.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.tsLibVersion = exports.babelPluginStyledComponentsVersion = exports.emotionServerVersion = exports.stylusLoader = exports.lessLoader = exports.sassVersion = exports.eslintConfigNextVersion = exports.nextVersion = exports.nxVersion = void 0;
|
|
4
4
|
exports.nxVersion = require('../../package.json').version;
|
|
5
|
-
exports.nextVersion = '
|
|
6
|
-
exports.eslintConfigNextVersion = '
|
|
5
|
+
exports.nextVersion = '13.1.1';
|
|
6
|
+
exports.eslintConfigNextVersion = '13.1.1';
|
|
7
7
|
exports.sassVersion = '1.55.0';
|
|
8
|
-
exports.lessLoader = '11.
|
|
9
|
-
exports.stylusLoader = '7.
|
|
8
|
+
exports.lessLoader = '11.1.0';
|
|
9
|
+
exports.stylusLoader = '7.1.0';
|
|
10
10
|
exports.emotionServerVersion = '11.10.0';
|
|
11
11
|
exports.babelPluginStyledComponentsVersion = '1.10.7';
|
|
12
12
|
exports.tsLibVersion = '^2.3.0';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createPackageJson = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
6
|
-
const create_package_json_1 = require("@nrwl/workspace/src/utilities/create-package-json");
|
|
7
|
-
function createPackageJson(options, context) {
|
|
8
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9
|
-
const packageJson = (0, create_package_json_1.createPackageJson)(context.projectName, context.projectGraph, {
|
|
10
|
-
root: context.root,
|
|
11
|
-
projectRoot: context.workspace.projects[context.projectName].sourceRoot,
|
|
12
|
-
});
|
|
13
|
-
// By default we remove devDependencies since this is a production build.
|
|
14
|
-
if (!options.includeDevDependenciesInPackageJson) {
|
|
15
|
-
delete packageJson.devDependencies;
|
|
16
|
-
}
|
|
17
|
-
if (!packageJson.scripts) {
|
|
18
|
-
packageJson.scripts = {};
|
|
19
|
-
}
|
|
20
|
-
packageJson.scripts.start = 'next start';
|
|
21
|
-
const typescriptNode = context.projectGraph.externalNodes['npm:typescript'];
|
|
22
|
-
if (typescriptNode) {
|
|
23
|
-
packageJson.dependencies['typescript'] = typescriptNode.data.version;
|
|
24
|
-
}
|
|
25
|
-
(0, devkit_1.writeJsonFile)(`${options.outputPath}/package.json`, packageJson);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
exports.createPackageJson = createPackageJson;
|
|
29
|
-
//# sourceMappingURL=create-package-json.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-package-json.js","sourceRoot":"","sources":["../../../../../../../packages/next/src/executors/build/lib/create-package-json.ts"],"names":[],"mappings":";;;;AACA,yCAA6C;AAC7C,2FAA6G;AAG7G,SAAsB,iBAAiB,CACrC,OAAgC,EAChC,OAAwB;;QAExB,MAAM,WAAW,GAAG,IAAA,uCAAmB,EACrC,OAAO,CAAC,WAAW,EACnB,OAAO,CAAC,YAAY,EACpB;YACE,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,WAAW,EAAE,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,UAAU;SACxE,CACF,CAAC;QAEF,yEAAyE;QACzE,IAAI,CAAC,OAAO,CAAC,mCAAmC,EAAE;YAChD,OAAO,WAAW,CAAC,eAAe,CAAC;SACpC;QAED,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE;YACxB,WAAW,CAAC,OAAO,GAAG,EAAE,CAAC;SAC1B;QACD,WAAW,CAAC,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC;QAEzC,MAAM,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;QAC5E,IAAI,cAAc,EAAE;YAClB,WAAW,CAAC,YAAY,CAAC,YAAY,CAAC,GAAG,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC;SACtE;QAED,IAAA,sBAAa,EAAC,GAAG,OAAO,CAAC,UAAU,eAAe,EAAE,WAAW,CAAC,CAAC;IACnE,CAAC;CAAA;AA7BD,8CA6BC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
-
const workspace_1 = require("@nrwl/workspace");
|
|
5
|
-
const path = require("path");
|
|
6
|
-
function update() {
|
|
7
|
-
return (0, schematics_1.chain)([
|
|
8
|
-
(0, workspace_1.updatePackagesInPackageJson)(path.join(__dirname, '../../../', 'migrations.json'), '10.1.0'),
|
|
9
|
-
(0, workspace_1.formatFiles)(),
|
|
10
|
-
]);
|
|
11
|
-
}
|
|
12
|
-
exports.default = update;
|
|
13
|
-
//# sourceMappingURL=update-10-1-0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-10-1-0.js","sourceRoot":"","sources":["../../../../../../packages/next/src/migrations/update-10-1-0/update-10-1-0.ts"],"names":[],"mappings":";;AAAA,2DAAyD;AACzD,+CAA2E;AAC3E,6BAA6B;AAE7B,SAAwB,MAAM;IAC5B,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,uCAA2B,EACzB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,iBAAiB,CAAC,EACpD,QAAQ,CACT;QACD,IAAA,uBAAW,GAAE;KACd,CAAC,CAAC;AACL,CAAC;AARD,yBAQC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function update(): import("@angular-devkit/schematics").Rule;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
-
const workspace_1 = require("@nrwl/workspace");
|
|
5
|
-
const versions_1 = require("../../utils/versions");
|
|
6
|
-
function update() {
|
|
7
|
-
return (0, schematics_1.chain)([
|
|
8
|
-
(0, workspace_1.renameNpmPackages)({
|
|
9
|
-
'emotion-server': ['@emotion/server', versions_1.emotionServerVersion],
|
|
10
|
-
}),
|
|
11
|
-
(0, workspace_1.formatFiles)(),
|
|
12
|
-
]);
|
|
13
|
-
}
|
|
14
|
-
exports.default = update;
|
|
15
|
-
//# sourceMappingURL=rename-emotion-packages-11-0-0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rename-emotion-packages-11-0-0.js","sourceRoot":"","sources":["../../../../../../packages/next/src/migrations/update-11-0-0/rename-emotion-packages-11-0-0.ts"],"names":[],"mappings":";;AAAA,2DAAmD;AACnD,+CAAiE;AACjE,mDAA4D;AAE5D,SAAwB,MAAM;IAC5B,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,6BAAiB,EAAC;YAChB,gBAAgB,EAAE,CAAC,iBAAiB,EAAE,+BAAoB,CAAC;SAC5D,CAAC;QACF,IAAA,uBAAW,GAAE;KACd,CAAC,CAAC;AACL,CAAC;AAPD,yBAOC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
-
const workspace_1 = require("@nrwl/workspace");
|
|
5
|
-
const path = require("path");
|
|
6
|
-
function update() {
|
|
7
|
-
return (0, schematics_1.chain)([
|
|
8
|
-
(0, workspace_1.updatePackagesInPackageJson)(path.join(__dirname, '../../../', 'migrations.json'), '11.0.0'),
|
|
9
|
-
(0, workspace_1.formatFiles)(),
|
|
10
|
-
]);
|
|
11
|
-
}
|
|
12
|
-
exports.default = update;
|
|
13
|
-
//# sourceMappingURL=update-11-0-0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-11-0-0.js","sourceRoot":"","sources":["../../../../../../packages/next/src/migrations/update-11-0-0/update-11-0-0.ts"],"names":[],"mappings":";;AAAA,2DAAyD;AACzD,+CAA2E;AAC3E,6BAA6B;AAE7B,SAAwB,MAAM;IAC5B,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,uCAA2B,EACzB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,iBAAiB,CAAC,EACpD,QAAQ,CACT;QACD,IAAA,uBAAW,GAAE;KACd,CAAC,CAAC;AACL,CAAC;AARD,yBAQC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeTsconfigApp = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
6
|
-
function removeTsconfigApp(host) {
|
|
7
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
-
const projects = (0, devkit_1.getProjects)(host);
|
|
9
|
-
projects.forEach((project) => {
|
|
10
|
-
var _a, _b;
|
|
11
|
-
const tsconfigAppPath = `${project.root}/tsconfig.app.json`;
|
|
12
|
-
const tsconfigPath = `${project.root}/tsconfig.json`;
|
|
13
|
-
if (((_b = (_a = project.targets) === null || _a === void 0 ? void 0 : _a.build) === null || _b === void 0 ? void 0 : _b.executor) !== '@nrwl/next:build')
|
|
14
|
-
return;
|
|
15
|
-
if (!host.exists(tsconfigAppPath))
|
|
16
|
-
return;
|
|
17
|
-
const tsconfigAppContents = (0, devkit_1.readJson)(host, tsconfigAppPath);
|
|
18
|
-
(0, devkit_1.updateJson)(host, tsconfigPath, (json) => {
|
|
19
|
-
json.include = tsconfigAppContents.include;
|
|
20
|
-
if (json.references) {
|
|
21
|
-
delete json.references;
|
|
22
|
-
}
|
|
23
|
-
return json;
|
|
24
|
-
});
|
|
25
|
-
host.delete(tsconfigAppPath);
|
|
26
|
-
});
|
|
27
|
-
yield (0, devkit_1.formatFiles)(host);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
exports.removeTsconfigApp = removeTsconfigApp;
|
|
31
|
-
exports.default = removeTsconfigApp;
|
|
32
|
-
//# sourceMappingURL=remove-tsconfig-app-11-5-0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remove-tsconfig-app-11-5-0.js","sourceRoot":"","sources":["../../../../../../packages/next/src/migrations/update-11-5-0/remove-tsconfig-app-11-5-0.ts"],"names":[],"mappings":";;;;AAAA,yCAMsB;AAEtB,SAAsB,iBAAiB,CAAC,IAAU;;QAChD,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAEnC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;;YAC3B,MAAM,eAAe,GAAG,GAAG,OAAO,CAAC,IAAI,oBAAoB,CAAC;YAC5D,MAAM,YAAY,GAAG,GAAG,OAAO,CAAC,IAAI,gBAAgB,CAAC;YAErD,IAAI,CAAA,MAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,KAAK,0CAAE,QAAQ,MAAK,kBAAkB;gBAAE,OAAO;YAEpE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;gBAAE,OAAO;YAE1C,MAAM,mBAAmB,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC;YAE5D,IAAA,mBAAU,EAAC,IAAI,EAAE,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;gBACtC,IAAI,CAAC,OAAO,GAAG,mBAAmB,CAAC,OAAO,CAAC;gBAC3C,IAAI,IAAI,CAAC,UAAU,EAAE;oBACnB,OAAO,IAAI,CAAC,UAAU,CAAC;iBACxB;gBACD,OAAO,IAAI,CAAC;YACd,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;QAEH,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AAzBD,8CAyBC;AAED,kBAAe,iBAAiB,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateBabelConfig = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
6
|
-
function updateBabelConfig(host) {
|
|
7
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
-
const projects = (0, devkit_1.getProjects)(host);
|
|
9
|
-
projects.forEach((p) => {
|
|
10
|
-
const babelrcPath = `${p.root}/.babelrc`;
|
|
11
|
-
if (!host.exists(babelrcPath))
|
|
12
|
-
return;
|
|
13
|
-
(0, devkit_1.updateJson)(host, babelrcPath, (json) => {
|
|
14
|
-
json.presets = json.presets || [];
|
|
15
|
-
json.presets = json.presets.map((x) => x === 'next/babel' ? '@nrwl/next/babel' : x);
|
|
16
|
-
return json;
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
yield (0, devkit_1.formatFiles)(host);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
exports.updateBabelConfig = updateBabelConfig;
|
|
23
|
-
exports.default = updateBabelConfig;
|
|
24
|
-
//# sourceMappingURL=update-babel-config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-babel-config.js","sourceRoot":"","sources":["../../../../../../packages/next/src/migrations/update-11-5-0/update-babel-config.ts"],"names":[],"mappings":";;;;AAAA,yCAA0E;AAE1E,SAAsB,iBAAiB,CAAC,IAAU;;QAChD,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAEnC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACrB,MAAM,WAAW,GAAG,GAAG,CAAC,CAAC,IAAI,WAAW,CAAC;YACzC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;gBAAE,OAAO;YAEtC,IAAA,mBAAU,EAAC,IAAI,EAAE,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;gBACrC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC;gBAClC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACpC,CAAC,KAAK,YAAY,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAC5C,CAAC;gBACF,OAAO,IAAI,CAAC;YACd,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AAjBD,8CAiBC;AAED,kBAAe,iBAAiB,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addJsInclude = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
6
|
-
function addJsInclude(host) {
|
|
7
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
-
const projects = (0, devkit_1.getProjects)(host);
|
|
9
|
-
projects.forEach((project) => {
|
|
10
|
-
var _a, _b;
|
|
11
|
-
const tsconfigPath = `${project.root}/tsconfig.json`;
|
|
12
|
-
if (((_b = (_a = project.targets) === null || _a === void 0 ? void 0 : _a.build) === null || _b === void 0 ? void 0 : _b.executor) !== '@nrwl/next:build')
|
|
13
|
-
return;
|
|
14
|
-
if (!host.exists(tsconfigPath))
|
|
15
|
-
return;
|
|
16
|
-
(0, devkit_1.updateJson)(host, tsconfigPath, (json) => {
|
|
17
|
-
if (!json.include) {
|
|
18
|
-
json.include = [];
|
|
19
|
-
}
|
|
20
|
-
json.include = uniq([...json.include, '**/*.js', '**/*.jsx']);
|
|
21
|
-
return json;
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
exports.addJsInclude = addJsInclude;
|
|
27
|
-
const uniq = (value) => [...new Set(value)];
|
|
28
|
-
exports.default = addJsInclude;
|
|
29
|
-
//# sourceMappingURL=add-js-include-11-6-0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-js-include-11-6-0.js","sourceRoot":"","sources":["../../../../../../packages/next/src/migrations/update-11-6-0/add-js-include-11-6-0.ts"],"names":[],"mappings":";;;;AAAA,yCAA6D;AAE7D,SAAsB,YAAY,CAAC,IAAU;;QAC3C,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAEnC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;;YAC3B,MAAM,YAAY,GAAG,GAAG,OAAO,CAAC,IAAI,gBAAgB,CAAC;YAErD,IAAI,CAAA,MAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,KAAK,0CAAE,QAAQ,MAAK,kBAAkB;gBAAE,OAAO;YAEpE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;gBAAE,OAAO;YAEvC,IAAA,mBAAU,EAAC,IAAI,EAAE,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;gBACtC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;oBACjB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;iBACnB;gBACD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;gBAC9D,OAAO,IAAI,CAAC;YACd,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAlBD,oCAkBC;AAED,MAAM,IAAI,GAAG,CAAqB,KAAQ,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAM,CAAC;AAExE,kBAAe,YAAY,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addNextEslint = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
6
|
-
function addNextEslint(host) {
|
|
7
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
-
const projects = (0, devkit_1.getProjects)(host);
|
|
9
|
-
projects.forEach((project) => {
|
|
10
|
-
var _a, _b;
|
|
11
|
-
if (((_b = (_a = project.targets) === null || _a === void 0 ? void 0 : _a.build) === null || _b === void 0 ? void 0 : _b.executor) !== '@nrwl/next:build')
|
|
12
|
-
return;
|
|
13
|
-
const eslintPath = `${project.root}/.eslintrc.json`;
|
|
14
|
-
if (!host.exists(eslintPath))
|
|
15
|
-
return;
|
|
16
|
-
(0, devkit_1.updateJson)(host, eslintPath, (eslintConfig) => {
|
|
17
|
-
if (!eslintConfig.extends) {
|
|
18
|
-
eslintConfig.extends = [];
|
|
19
|
-
}
|
|
20
|
-
if (typeof eslintConfig.extends === 'string') {
|
|
21
|
-
eslintConfig.extends = [eslintConfig.extends];
|
|
22
|
-
}
|
|
23
|
-
// add next.js configuration
|
|
24
|
-
eslintConfig.extends.push(...['next', 'next/core-web-vitals']);
|
|
25
|
-
// remove nx/react plugin, as it conflicts with the next.js one
|
|
26
|
-
eslintConfig.extends = eslintConfig.extends.filter((name) => name !== 'plugin:@nrwl/nx/react');
|
|
27
|
-
eslintConfig.extends.unshift('plugin:@nrwl/nx/react-typescript');
|
|
28
|
-
if (!eslintConfig.env) {
|
|
29
|
-
eslintConfig.env = {};
|
|
30
|
-
}
|
|
31
|
-
eslintConfig.env.jest = true;
|
|
32
|
-
return eslintConfig;
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
yield (0, devkit_1.formatFiles)(host);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
exports.addNextEslint = addNextEslint;
|
|
39
|
-
exports.default = addNextEslint;
|
|
40
|
-
//# sourceMappingURL=add-next-eslint.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-next-eslint.js","sourceRoot":"","sources":["../../../../../../packages/next/src/migrations/update-12-6-0/add-next-eslint.ts"],"names":[],"mappings":";;;;AAAA,yCAA0E;AAE1E,SAAsB,aAAa,CAAC,IAAU;;QAC5C,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAEnC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;;YAC3B,IAAI,CAAA,MAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,KAAK,0CAAE,QAAQ,MAAK,kBAAkB;gBAAE,OAAO;YAEpE,MAAM,UAAU,GAAG,GAAG,OAAO,CAAC,IAAI,iBAAiB,CAAC;YACpD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;gBAAE,OAAO;YAErC,IAAA,mBAAU,EAAC,IAAI,EAAE,UAAU,EAAE,CAAC,YAAY,EAAE,EAAE;gBAC5C,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;oBACzB,YAAY,CAAC,OAAO,GAAG,EAAE,CAAC;iBAC3B;gBACD,IAAI,OAAO,YAAY,CAAC,OAAO,KAAK,QAAQ,EAAE;oBAC5C,YAAY,CAAC,OAAO,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;iBAC/C;gBACD,4BAA4B;gBAC5B,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC,CAAC;gBAC/D,+DAA+D;gBAC/D,YAAY,CAAC,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,CAChD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,uBAAuB,CAC3C,CAAC;gBACF,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC;gBACjE,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE;oBACrB,YAAY,CAAC,GAAG,GAAG,EAAE,CAAC;iBACvB;gBACD,YAAY,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;gBAC7B,OAAO,YAAY,CAAC;YACtB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AAhCD,sCAgCC;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
-
const workspace_1 = require("@nrwl/workspace");
|
|
5
|
-
const path = require("path");
|
|
6
|
-
function update() {
|
|
7
|
-
return (0, schematics_1.chain)([
|
|
8
|
-
(0, workspace_1.updatePackagesInPackageJson)(path.join(__dirname, '../../../', 'migrations.json'), '8.10.0'),
|
|
9
|
-
(0, workspace_1.formatFiles)(),
|
|
10
|
-
]);
|
|
11
|
-
}
|
|
12
|
-
exports.default = update;
|
|
13
|
-
//# sourceMappingURL=update-8-10-0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-8-10-0.js","sourceRoot":"","sources":["../../../../../../packages/next/src/migrations/update-8-10-0/update-8-10-0.ts"],"names":[],"mappings":";;AAAA,2DAAyD;AACzD,+CAA2E;AAC3E,6BAA6B;AAE7B,SAAwB,MAAM;IAC5B,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,uCAA2B,EACzB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,iBAAiB,CAAC,EACpD,QAAQ,CACT;QACD,IAAA,uBAAW,GAAE;KACd,CAAC,CAAC;AACL,CAAC;AARD,yBAQC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
-
const workspace_1 = require("@nrwl/workspace");
|
|
5
|
-
const path_1 = require("path");
|
|
6
|
-
const constants_1 = require("../../utils/constants");
|
|
7
|
-
const defaultConfig = `const withSass = require('@zeit/next-sass');
|
|
8
|
-
const withLess = require('@zeit/next-less');
|
|
9
|
-
const withStylus = require('@zeit/next-stylus');
|
|
10
|
-
const withCSS = require('@zeit/next-css');
|
|
11
|
-
|
|
12
|
-
/*
|
|
13
|
-
* This file was generated by Nx 9.2.0 to allow greater control over configuration
|
|
14
|
-
* for Next apps. To optimize your configuration please update the following export
|
|
15
|
-
* with only the style plugin you are using.
|
|
16
|
-
*
|
|
17
|
-
* e.g. module.exports = withCSS({ cssModules: false });
|
|
18
|
-
*/
|
|
19
|
-
module.exports = withStylus(withLess(withSass(withCSS({
|
|
20
|
-
// Set this to true if you use CSS modules.
|
|
21
|
-
// See: https://github.com/css-modules/css-modules
|
|
22
|
-
cssModules: false
|
|
23
|
-
}))));
|
|
24
|
-
`;
|
|
25
|
-
function update() {
|
|
26
|
-
return (0, schematics_1.chain)([
|
|
27
|
-
(host) => {
|
|
28
|
-
const workspaceJson = (0, workspace_1.readWorkspace)(host);
|
|
29
|
-
const nextProjects = Object.keys(workspaceJson.projects)
|
|
30
|
-
.map((name) => {
|
|
31
|
-
const p = workspaceJson.projects[name];
|
|
32
|
-
const buildBuilder = p.architect && p.architect.build && p.architect.build.builder;
|
|
33
|
-
return buildBuilder === '@nrwl/next:build' ? p : null;
|
|
34
|
-
})
|
|
35
|
-
.filter(Boolean);
|
|
36
|
-
nextProjects.forEach((p) => {
|
|
37
|
-
// Next.js 12 specifies two config files.
|
|
38
|
-
const configFile = Array.isArray(constants_1.CONFIG_FILES)
|
|
39
|
-
? constants_1.CONFIG_FILES[0]
|
|
40
|
-
: 'next.config.js';
|
|
41
|
-
const configPath = (0, path_1.join)(p.root, configFile);
|
|
42
|
-
if (!host.exists(configPath)) {
|
|
43
|
-
host.create(configPath, defaultConfig);
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
},
|
|
47
|
-
(0, workspace_1.formatFiles)(),
|
|
48
|
-
]);
|
|
49
|
-
}
|
|
50
|
-
exports.default = update;
|
|
51
|
-
//# sourceMappingURL=create-next-config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-next-config.js","sourceRoot":"","sources":["../../../../../../packages/next/src/migrations/update-9-2-0/create-next-config.ts"],"names":[],"mappings":";;AAAA,2DAA+D;AAC/D,+CAA6D;AAC7D,+BAA4B;AAE5B,qDAAqD;AAErD,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;CAiBrB,CAAC;AAEF,SAAwB,MAAM;IAC5B,OAAO,IAAA,kBAAK,EAAC;QACX,CAAC,IAAU,EAAE,EAAE;YACb,MAAM,aAAa,GAAG,IAAA,yBAAa,EAAC,IAAI,CAAC,CAAC;YAC1C,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;iBACrD,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;gBACZ,MAAM,CAAC,GAAG,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBACvC,MAAM,YAAY,GAChB,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC;gBAChE,OAAO,YAAY,KAAK,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YACxD,CAAC,CAAC;iBACD,MAAM,CAAC,OAAO,CAAC,CAAC;YAEnB,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;gBACzB,yCAAyC;gBACzC,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,wBAAY,CAAC;oBAC5C,CAAC,CAAC,wBAAY,CAAC,CAAC,CAAC;oBACjB,CAAC,CAAC,gBAAgB,CAAC;gBACrB,MAAM,UAAU,GAAG,IAAA,WAAI,EAAC,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;gBAC5C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE;oBAC5B,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;iBACxC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;QACD,IAAA,uBAAW,GAAE;KACd,CAAC,CAAC;AACL,CAAC;AA1BD,yBA0BC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
-
const workspace_1 = require("@nrwl/workspace");
|
|
5
|
-
const workspace_2 = require("@nrwl/workspace/src/utils/workspace");
|
|
6
|
-
function update() {
|
|
7
|
-
return (0, schematics_1.chain)([renameDevServerInWorkspace, (0, workspace_1.formatFiles)()]);
|
|
8
|
-
}
|
|
9
|
-
exports.default = update;
|
|
10
|
-
const renameDevServerInWorkspace = (0, workspace_2.updateWorkspace)((workspace) => {
|
|
11
|
-
workspace.projects.forEach((project) => {
|
|
12
|
-
project.targets.forEach((target) => {
|
|
13
|
-
if (target.builder === '@nrwl/next:dev-server') {
|
|
14
|
-
target.builder = '@nrwl/next:server';
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
//# sourceMappingURL=update-9-3-1.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-9-3-1.js","sourceRoot":"","sources":["../../../../../../packages/next/src/migrations/update-9-3-1/update-9-3-1.ts"],"names":[],"mappings":";;AAAA,2DAAyD;AACzD,+CAA8C;AAC9C,mEAAsE;AAEtE,SAAwB,MAAM;IAC5B,OAAO,IAAA,kBAAK,EAAC,CAAC,0BAA0B,EAAE,IAAA,uBAAW,GAAE,CAAC,CAAC,CAAC;AAC5D,CAAC;AAFD,yBAEC;AAED,MAAM,0BAA0B,GAAG,IAAA,2BAAe,EAAC,CAAC,SAAS,EAAE,EAAE;IAC/D,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACrC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YACjC,IAAI,MAAM,CAAC,OAAO,KAAK,uBAAuB,EAAE;gBAC9C,MAAM,CAAC,OAAO,GAAG,mBAAmB,CAAC;aACtC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|