@nx/next 16.0.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 +8 -0
- package/LICENSE +22 -0
- package/README.md +63 -0
- package/babel.d.ts +0 -0
- package/babel.js +13 -0
- package/babel.js.map +1 -0
- package/executors.json +36 -0
- package/generators.json +72 -0
- package/index.d.ts +8 -0
- package/index.js +20 -0
- package/index.js.map +1 -0
- package/migrations.json +312 -0
- package/package.json +64 -0
- package/plugins/with-less.d.ts +2 -0
- package/plugins/with-less.js +79 -0
- package/plugins/with-less.js.map +1 -0
- package/plugins/with-nx.d.ts +13 -0
- package/plugins/with-nx.js +278 -0
- package/plugins/with-nx.js.map +1 -0
- package/plugins/with-stylus.d.ts +2 -0
- package/plugins/with-stylus.js +79 -0
- package/plugins/with-stylus.js.map +1 -0
- package/src/executors/build/build.impl.d.ts +6 -0
- package/src/executors/build/build.impl.js +62 -0
- package/src/executors/build/build.impl.js.map +1 -0
- package/src/executors/build/compat.d.ts +2 -0
- package/src/executors/build/compat.js +6 -0
- package/src/executors/build/compat.js.map +1 -0
- package/src/executors/build/lib/check-project.d.ts +1 -0
- package/src/executors/build/lib/check-project.js +13 -0
- package/src/executors/build/lib/check-project.js.map +1 -0
- package/src/executors/build/lib/create-next-config-file.d.ts +3 -0
- package/src/executors/build/lib/create-next-config-file.js +15 -0
- package/src/executors/build/lib/create-next-config-file.js.map +1 -0
- package/src/executors/build/lib/update-package-json.d.ts +3 -0
- package/src/executors/build/lib/update-package-json.js +24 -0
- package/src/executors/build/lib/update-package-json.js.map +1 -0
- package/src/executors/build/schema.json +68 -0
- package/src/executors/export/compat.d.ts +2 -0
- package/src/executors/export/compat.js +6 -0
- package/src/executors/export/compat.js.map +1 -0
- package/src/executors/export/export.impl.d.ts +6 -0
- package/src/executors/export/export.impl.js +53 -0
- package/src/executors/export/export.impl.js.map +1 -0
- package/src/executors/export/schema.json +30 -0
- package/src/executors/server/compat.d.ts +2 -0
- package/src/executors/server/compat.js +6 -0
- package/src/executors/server/compat.js.map +1 -0
- package/src/executors/server/lib/default-server.d.ts +6 -0
- package/src/executors/server/lib/default-server.js +31 -0
- package/src/executors/server/lib/default-server.js.map +1 -0
- package/src/executors/server/lib/tsnode-register.d.ts +1 -0
- package/src/executors/server/lib/tsnode-register.js +23 -0
- package/src/executors/server/lib/tsnode-register.js.map +1 -0
- package/src/executors/server/schema.json +56 -0
- package/src/executors/server/server.impl.d.ts +7 -0
- package/src/executors/server/server.impl.js +114 -0
- package/src/executors/server/server.impl.js.map +1 -0
- package/src/generators/application/application.d.ts +4 -0
- package/src/generators/application/application.js +43 -0
- package/src/generators/application/application.js.map +1 -0
- package/src/generators/application/files/app/api/hello/route.ts__tmpl__ +4 -0
- package/src/generators/application/files/app/global.__stylesExt____tmpl__ +1 -0
- package/src/generators/application/files/app/layout.tsx__tmpl__ +22 -0
- package/src/generators/application/files/app/page.module.__style__ +1 -0
- package/src/generators/application/files/app/page.tsx__tmpl__ +28 -0
- package/src/generators/application/files/common/.babelrc__tmpl__ +21 -0
- package/src/generators/application/files/common/index.d.ts__tmpl__ +18 -0
- package/src/generators/application/files/common/next-env.d.ts__tmpl__ +5 -0
- package/src/generators/application/files/common/next.config.js__tmpl__ +112 -0
- package/src/generators/application/files/common/public/.gitkeep +0 -0
- package/src/generators/application/files/common/public/favicon.ico +0 -0
- package/src/generators/application/files/common/specs/__fileName__.spec.tsx__tmpl__ +11 -0
- package/src/generators/application/files/common/tsconfig.json__tmpl__ +18 -0
- package/src/generators/application/files/pages/__fileName__.module.__style__ +1 -0
- package/src/generators/application/files/pages/__fileName__.tsx__tmpl__ +28 -0
- package/src/generators/application/files/pages/_app.tsx__tmpl__ +18 -0
- package/src/generators/application/files/pages/_document.tsx__tmpl__ +33 -0
- package/src/generators/application/files/pages/styles.__stylesExt____tmpl__ +1 -0
- package/src/generators/application/lib/add-cypress.d.ts +3 -0
- package/src/generators/application/lib/add-cypress.js +18 -0
- package/src/generators/application/lib/add-cypress.js.map +1 -0
- package/src/generators/application/lib/add-jest.d.ts +3 -0
- package/src/generators/application/lib/add-jest.js +36 -0
- package/src/generators/application/lib/add-jest.js.map +1 -0
- package/src/generators/application/lib/add-linting.d.ts +3 -0
- package/src/generators/application/lib/add-linting.js +66 -0
- package/src/generators/application/lib/add-linting.js.map +1 -0
- package/src/generators/application/lib/add-project.d.ts +3 -0
- package/src/generators/application/lib/add-project.js +56 -0
- package/src/generators/application/lib/add-project.js.map +1 -0
- package/src/generators/application/lib/create-application-files.d.ts +3 -0
- package/src/generators/application/lib/create-application-files.helpers.d.ts +2 -0
- package/src/generators/application/lib/create-application-files.helpers.js +785 -0
- package/src/generators/application/lib/create-application-files.helpers.js.map +1 -0
- package/src/generators/application/lib/create-application-files.js +40 -0
- package/src/generators/application/lib/create-application-files.js.map +1 -0
- package/src/generators/application/lib/normalize-options.d.ts +13 -0
- package/src/generators/application/lib/normalize-options.js +35 -0
- package/src/generators/application/lib/normalize-options.js.map +1 -0
- package/src/generators/application/lib/set-defaults.d.ts +3 -0
- package/src/generators/application/lib/set-defaults.js +14 -0
- package/src/generators/application/lib/set-defaults.js.map +1 -0
- package/src/generators/application/lib/update-jest-config.d.ts +3 -0
- package/src/generators/application/lib/update-jest-config.js +16 -0
- package/src/generators/application/lib/update-jest-config.js.map +1 -0
- package/src/generators/application/schema.d.ts +19 -0
- package/src/generators/application/schema.json +131 -0
- package/src/generators/component/component.d.ts +15 -0
- package/src/generators/component/component.js +34 -0
- package/src/generators/component/component.js.map +1 -0
- package/src/generators/component/schema.json +119 -0
- package/src/generators/custom-server/custom-server.d.ts +4 -0
- package/src/generators/custom-server/custom-server.js +79 -0
- package/src/generators/custom-server/custom-server.js.map +1 -0
- package/src/generators/custom-server/files/server/main.ts__tmpl__ +46 -0
- package/src/generators/custom-server/files/tsconfig.server.json__tmpl__ +15 -0
- package/src/generators/custom-server/schema.d.ts +4 -0
- package/src/generators/custom-server/schema.json +30 -0
- package/src/generators/init/init.d.ts +5 -0
- package/src/generators/init/init.js +49 -0
- package/src/generators/init/init.js.map +1 -0
- package/src/generators/init/schema.d.ts +7 -0
- package/src/generators/init/schema.json +39 -0
- package/src/generators/library/lib/normalize-options.d.ts +7 -0
- package/src/generators/library/lib/normalize-options.js +17 -0
- package/src/generators/library/lib/normalize-options.js.map +1 -0
- package/src/generators/library/library.d.ts +5 -0
- package/src/generators/library/library.js +79 -0
- package/src/generators/library/library.js.map +1 -0
- package/src/generators/library/schema.d.ts +25 -0
- package/src/generators/library/schema.json +156 -0
- package/src/generators/page/page.d.ts +5 -0
- package/src/generators/page/page.js +27 -0
- package/src/generators/page/page.js.map +1 -0
- package/src/generators/page/schema.d.ts +13 -0
- package/src/generators/page/schema.json +107 -0
- package/src/migrations/update-12-10-0/fix-page-dir-for-eslint.d.ts +3 -0
- package/src/migrations/update-12-10-0/fix-page-dir-for-eslint.js +34 -0
- package/src/migrations/update-12-10-0/fix-page-dir-for-eslint.js.map +1 -0
- package/src/migrations/update-12-8-0/remove-styled-jsx-babel-plugin.d.ts +3 -0
- package/src/migrations/update-12-8-0/remove-styled-jsx-babel-plugin.js +26 -0
- package/src/migrations/update-12-8-0/remove-styled-jsx-babel-plugin.js.map +1 -0
- package/src/migrations/update-13-0-0/update-emotion-setup.d.ts +3 -0
- package/src/migrations/update-13-0-0/update-emotion-setup.js +39 -0
- package/src/migrations/update-13-0-0/update-emotion-setup.js.map +1 -0
- package/src/migrations/update-13-0-0/update-to-webpack-5.d.ts +3 -0
- package/src/migrations/update-13-0-0/update-to-webpack-5.js +32 -0
- package/src/migrations/update-13-0-0/update-to-webpack-5.js.map +1 -0
- package/src/migrations/update-13-0-3/fix-less.d.ts +3 -0
- package/src/migrations/update-13-0-3/fix-less.js +27 -0
- package/src/migrations/update-13-0-3/fix-less.js.map +1 -0
- package/src/migrations/update-13-1-1/enable-swc.d.ts +3 -0
- package/src/migrations/update-13-1-1/enable-swc.js +46 -0
- package/src/migrations/update-13-1-1/enable-swc.js.map +1 -0
- package/src/migrations/update-14-0-0/add-default-development-configurations.d.ts +3 -0
- package/src/migrations/update-14-0-0/add-default-development-configurations.js +36 -0
- package/src/migrations/update-14-0-0/add-default-development-configurations.js.map +1 -0
- package/src/migrations/update-14-4-3/add-dev-output-path.d.ts +3 -0
- package/src/migrations/update-14-4-3/add-dev-output-path.js +24 -0
- package/src/migrations/update-14-4-3/add-dev-output-path.js.map +1 -0
- package/src/migrations/update-14-5-3/add-gitignore-entry.d.ts +3 -0
- package/src/migrations/update-14-5-3/add-gitignore-entry.js +15 -0
- package/src/migrations/update-14-5-3/add-gitignore-entry.js.map +1 -0
- package/src/migrations/update-14-5-3/update-dev-output-path.d.ts +3 -0
- package/src/migrations/update-14-5-3/update-dev-output-path.js +29 -0
- package/src/migrations/update-14-5-3/update-dev-output-path.js.map +1 -0
- package/src/migrations/update-14-5-7/update-next-eslint.d.ts +3 -0
- package/src/migrations/update-14-5-7/update-next-eslint.js +32 -0
- package/src/migrations/update-14-5-7/update-next-eslint.js.map +1 -0
- package/src/migrations/update-15-8-8/add-style-packages.d.ts +3 -0
- package/src/migrations/update-15-8-8/add-style-packages.js +28 -0
- package/src/migrations/update-15-8-8/add-style-packages.js.map +1 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +13 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js.map +1 -0
- package/src/utils/add-gitignore-entry.d.ts +2 -0
- package/src/utils/add-gitignore-entry.js +18 -0
- package/src/utils/add-gitignore-entry.js.map +1 -0
- package/src/utils/config-invalid-function.fixture.d.ts +0 -0
- package/src/utils/config-invalid-function.fixture.js +2 -0
- package/src/utils/config-invalid-function.fixture.js.map +1 -0
- package/src/utils/config-not-a-function.fixture.d.ts +0 -0
- package/src/utils/config-not-a-function.fixture.js +2 -0
- package/src/utils/config-not-a-function.fixture.js.map +1 -0
- package/src/utils/config.d.ts +15 -0
- package/src/utils/config.fixture.d.ts +0 -0
- package/src/utils/config.fixture.js +4 -0
- package/src/utils/config.fixture.js.map +1 -0
- package/src/utils/config.js +87 -0
- package/src/utils/config.js.map +1 -0
- package/src/utils/constants.d.ts +1 -0
- package/src/utils/constants.js +5 -0
- package/src/utils/constants.js.map +1 -0
- package/src/utils/create-copy-plugin.d.ts +2 -0
- package/src/utils/create-copy-plugin.js +63 -0
- package/src/utils/create-copy-plugin.js.map +1 -0
- package/src/utils/generate-globs.d.ts +5 -0
- package/src/utils/generate-globs.js +30 -0
- package/src/utils/generate-globs.js.map +1 -0
- package/src/utils/styles.d.ts +40 -0
- package/src/utils/styles.js +56 -0
- package/src/utils/styles.js.map +1 -0
- package/src/utils/types.d.ts +53 -0
- package/src/utils/types.js +3 -0
- package/src/utils/types.js.map +1 -0
- package/src/utils/versions.d.ts +9 -0
- package/src/utils/versions.js +13 -0
- package/src/utils/versions.js.map +1 -0
- package/tailwind.d.ts +2 -0
- package/tailwind.js +7 -0
- package/tailwind.js.map +1 -0
- package/typings/image.d.ts +12 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.composePlugins = exports.createWebpackConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
const tsconfig_paths_webpack_plugin_1 = require("tsconfig-paths-webpack-plugin");
|
|
7
|
+
const create_copy_plugin_1 = require("./create-copy-plugin");
|
|
8
|
+
const buildable_libs_utils_1 = require("@nx/js/src/utils/buildable-libs-utils");
|
|
9
|
+
function createWebpackConfig(workspaceRoot, projectRoot, fileReplacements = [], assets = null, dependencies = [], libsDir = '') {
|
|
10
|
+
return function webpackConfig(config, { isServer, }) {
|
|
11
|
+
const mainFields = ['es2015', 'module', 'main'];
|
|
12
|
+
const extensions = ['.ts', '.tsx', '.mjs', '.js', '.jsx'];
|
|
13
|
+
let tsConfigPath = (0, path_1.join)(projectRoot, 'tsconfig.json');
|
|
14
|
+
if (dependencies.length > 0) {
|
|
15
|
+
tsConfigPath = (0, buildable_libs_utils_1.createTmpTsConfig)((0, path_1.join)(workspaceRoot, tsConfigPath), workspaceRoot, projectRoot, dependencies);
|
|
16
|
+
}
|
|
17
|
+
config.resolve.plugins = [
|
|
18
|
+
new tsconfig_paths_webpack_plugin_1.TsconfigPathsPlugin({
|
|
19
|
+
configFile: tsConfigPath,
|
|
20
|
+
extensions,
|
|
21
|
+
mainFields,
|
|
22
|
+
}),
|
|
23
|
+
];
|
|
24
|
+
fileReplacements
|
|
25
|
+
.map((fileReplacement) => ({
|
|
26
|
+
replace: (0, path_1.resolve)(workspaceRoot, fileReplacement.replace),
|
|
27
|
+
with: (0, path_1.resolve)(workspaceRoot, fileReplacement.with),
|
|
28
|
+
}))
|
|
29
|
+
.reduce((alias, replacement) => {
|
|
30
|
+
alias[replacement.replace] = replacement.with;
|
|
31
|
+
return alias;
|
|
32
|
+
}, config.resolve.alias);
|
|
33
|
+
// Apply any rules that work on ts files to the libsDir as well
|
|
34
|
+
const rulesToAdd = [];
|
|
35
|
+
for (const r of config.module.rules) {
|
|
36
|
+
if (typeof r === 'string') {
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if (isTsRule(r)) {
|
|
40
|
+
rulesToAdd.push(Object.assign(Object.assign({}, r), { include: [libsDir] }));
|
|
41
|
+
}
|
|
42
|
+
else if (r.oneOf && r.oneOf.find(isTsRule)) {
|
|
43
|
+
rulesToAdd.push(Object.assign(Object.assign({}, r), { oneOf: r.oneOf
|
|
44
|
+
.filter(isTsRule)
|
|
45
|
+
.map((subRule) => (Object.assign(Object.assign({}, subRule), { include: [libsDir] }))) }));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
config.module.rules.push(...rulesToAdd);
|
|
49
|
+
// Copy (shared) assets to `public` folder during client-side compilation
|
|
50
|
+
if (!isServer && Array.isArray(assets) && assets.length > 0) {
|
|
51
|
+
config.plugins.push((0, create_copy_plugin_1.createCopyPlugin)(assets, workspaceRoot, projectRoot));
|
|
52
|
+
}
|
|
53
|
+
return config;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.createWebpackConfig = createWebpackConfig;
|
|
57
|
+
function isTsRule(r) {
|
|
58
|
+
if (typeof r === 'string') {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
if (!(r.test instanceof RegExp)) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
return r.test.test('a.ts');
|
|
65
|
+
}
|
|
66
|
+
function composePlugins(...plugins) {
|
|
67
|
+
return function (baseConfig) {
|
|
68
|
+
return function combined(phase, context) {
|
|
69
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
let config = baseConfig;
|
|
71
|
+
for (const plugin of plugins) {
|
|
72
|
+
const fn = yield plugin;
|
|
73
|
+
const configOrFn = fn(config);
|
|
74
|
+
if (typeof configOrFn === 'function') {
|
|
75
|
+
config = yield configOrFn(phase, context);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
config = configOrFn;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return config;
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
exports.composePlugins = composePlugins;
|
|
87
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../packages/next/src/utils/config.ts"],"names":[],"mappings":";;;;AACA,+BAAqC;AACrC,iFAAoE;AAGpE,6DAAwD;AACxD,gFAG+C;AAG/C,SAAgB,mBAAmB,CACjC,aAAqB,EACrB,WAAmB,EACnB,mBAAsC,EAAE,EACxC,SAAc,IAAI,EAClB,eAAgD,EAAE,EAClD,OAAO,GAAG,EAAE;IAEZ,O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CAC5B,KAAa,EACb,OAAY;;gBAEZ,IAAI,MAAM,GAAG,UAAU,CAAC;gBACxB,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;oBAC5B,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC;oBACxB,MAAM,UAAU,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC;oBAC9B,IAAI,OAAO,UAAU,KAAK,UAAU,EAAE;wBACpC,MAAM,GAAG,MAAM,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;qBAC3C;yBAAM;wBACL,MAAM,GAAG,UAAU,CAAC;qBACrB;iBACF;gBAED,OAAO,MAAM,CAAC;YAChB,CAAC;SAAA,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAtBD,wCAsBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'next/dist/shared/lib/constants';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../packages/next/src/utils/constants.ts"],"names":[],"mappings":";;;AAAA,yEAA+C"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createCopyPlugin = void 0;
|
|
4
|
+
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
|
5
|
+
const path_1 = require("nx/src/utils/path");
|
|
6
|
+
const path_2 = require("path");
|
|
7
|
+
const fs_1 = require("fs");
|
|
8
|
+
function normalizeAssets(assets, root, sourceRoot) {
|
|
9
|
+
return assets.map((asset) => {
|
|
10
|
+
if (typeof asset === 'string') {
|
|
11
|
+
const assetPath = (0, path_1.normalizePath)(asset);
|
|
12
|
+
const resolvedAssetPath = (0, path_2.resolve)(root, assetPath);
|
|
13
|
+
const resolvedSourceRoot = (0, path_2.resolve)(root, sourceRoot);
|
|
14
|
+
if (!resolvedAssetPath.startsWith(resolvedSourceRoot)) {
|
|
15
|
+
throw new Error(`The ${resolvedAssetPath} asset path must start with the project source root: ${sourceRoot}`);
|
|
16
|
+
}
|
|
17
|
+
const isDirectory = (0, fs_1.statSync)(resolvedAssetPath).isDirectory();
|
|
18
|
+
const input = isDirectory
|
|
19
|
+
? resolvedAssetPath
|
|
20
|
+
: (0, path_2.dirname)(resolvedAssetPath);
|
|
21
|
+
const output = (0, path_2.relative)(resolvedSourceRoot, (0, path_2.resolve)(root, input));
|
|
22
|
+
const glob = isDirectory ? '**/*' : (0, path_2.basename)(resolvedAssetPath);
|
|
23
|
+
return {
|
|
24
|
+
input,
|
|
25
|
+
output,
|
|
26
|
+
glob,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
if (asset.output.startsWith('..')) {
|
|
31
|
+
throw new Error('An asset cannot be written to a location outside of the output path.');
|
|
32
|
+
}
|
|
33
|
+
const assetPath = (0, path_1.normalizePath)(asset.input);
|
|
34
|
+
const resolvedAssetPath = (0, path_2.resolve)(root, assetPath);
|
|
35
|
+
return Object.assign(Object.assign({}, asset), { input: resolvedAssetPath,
|
|
36
|
+
// Now we remove starting slash to make Webpack place it from the output root.
|
|
37
|
+
output: asset.output.replace(/^\//, '') });
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function createCopyPlugin(assets, root, sourceRoot) {
|
|
42
|
+
return new CopyWebpackPlugin({
|
|
43
|
+
patterns: normalizeAssets(assets, root, sourceRoot).map((asset) => {
|
|
44
|
+
var _a;
|
|
45
|
+
return {
|
|
46
|
+
context: asset.input,
|
|
47
|
+
to: (0, path_2.join)('../public', asset.output),
|
|
48
|
+
from: asset.glob,
|
|
49
|
+
globOptions: {
|
|
50
|
+
ignore: [
|
|
51
|
+
'.gitkeep',
|
|
52
|
+
'**/.DS_Store',
|
|
53
|
+
'**/Thumbs.db',
|
|
54
|
+
...((_a = asset.ignore) !== null && _a !== void 0 ? _a : []),
|
|
55
|
+
],
|
|
56
|
+
dot: true,
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
}),
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
exports.createCopyPlugin = createCopyPlugin;
|
|
63
|
+
//# sourceMappingURL=create-copy-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-copy-plugin.js","sourceRoot":"","sources":["../../../../../packages/next/src/utils/create-copy-plugin.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,4CAAkD;AAClD,+BAAkE;AAClE,2BAA8B;AAS9B,SAAS,eAAe,CACtB,MAAa,EACb,IAAY,EACZ,UAAkB;IAElB,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC1B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,MAAM,SAAS,GAAG,IAAA,oBAAa,EAAC,KAAK,CAAC,CAAC;YACvC,MAAM,iBAAiB,GAAG,IAAA,cAAO,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;YACnD,MAAM,kBAAkB,GAAG,IAAA,cAAO,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC;YAErD,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,kBAAkB,CAAC,EAAE;gBACrD,MAAM,IAAI,KAAK,CACb,OAAO,iBAAiB,wDAAwD,UAAU,EAAE,CAC7F,CAAC;aACH;YAED,MAAM,WAAW,GAAG,IAAA,aAAQ,EAAC,iBAAiB,CAAC,CAAC,WAAW,EAAE,CAAC;YAC9D,MAAM,KAAK,GAAG,WAAW;gBACvB,CAAC,CAAC,iBAAiB;gBACnB,CAAC,CAAC,IAAA,cAAO,EAAC,iBAAiB,CAAC,CAAC;YAC/B,MAAM,MAAM,GAAG,IAAA,eAAQ,EAAC,kBAAkB,EAAE,IAAA,cAAO,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;YAClE,MAAM,IAAI,GAAG,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAA,eAAQ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esModule", { value: true });
|
|
3
|
+
exports.createGlobPatternsOfDependentProjects = void 0;
|
|
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 "@nrwl/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 === null || e === void 0 ? void 0 : e.message}`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.createGlobPatternsOfDependentProjects = createGlobPatternsOfDependentProjects;
|
|
30
|
+
//# sourceMappingURL=generate-globs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-globs.js","sourceRoot":"","sources":["../../../../../packages/next/src/utils/generate-globs.ts"],"names":[],"mappings":";;;AAAA,uCAAuD;AACvD,uCAA2C;AAC3C,0EAAmF;AACnF,+BAA+B;AAE/B;;;GAGG;AACH,SAAgB,qCAAqC,CACnD,WAAmB,EACnB,kBAA0B,6BAA6B;IAEvD,eAAM,CAAC,IAAI,CACT,4IAA4I,CAC7I,CAAC;IAEF,IAAI;QACF,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,GAC3B,IAAA,qDAA+B,EAAC,WAAW,CAAC,CAAC;QAE/C,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YACvB,eAAM,CAAC,IAAI,CAAC;;EAEhB,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;;OAEhB,CAAC,CAAC;SACJ;QAED,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CACnC,IAAA,cAAO,EAAC,sBAAa,EAAE,IAAA,0BAAiB,EAAC,SAAS,EAAE,eAAe,CAAC,CAAC,CACtE,CAAC;KACH;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,IAAI,KAAK,CACb,uEAAuE,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,EAAE,CACpF,CAAC;KACH;AACH,CAAC;AA5BD,sFA4BC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
2
|
+
export declare const NEXT_SPECIFIC_STYLE_DEPENDENCIES: {
|
|
3
|
+
'styled-components': {
|
|
4
|
+
dependencies: import("../../../../build/packages/react/src/utils/dependencies").DependencyEntries;
|
|
5
|
+
devDependencies: {
|
|
6
|
+
'babel-plugin-styled-components': string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
'@emotion/styled': {
|
|
10
|
+
dependencies: {
|
|
11
|
+
'@emotion/server': string;
|
|
12
|
+
};
|
|
13
|
+
devDependencies: import("../../../../build/packages/react/src/utils/dependencies").DependencyEntries;
|
|
14
|
+
};
|
|
15
|
+
css: {
|
|
16
|
+
dependencies: {};
|
|
17
|
+
devDependencies: {};
|
|
18
|
+
};
|
|
19
|
+
scss: {
|
|
20
|
+
dependencies: {};
|
|
21
|
+
devDependencies: {
|
|
22
|
+
sass: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
less: {
|
|
26
|
+
dependencies: {};
|
|
27
|
+
devDependencies: {
|
|
28
|
+
less: string;
|
|
29
|
+
'less-loader': string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
styl: {
|
|
33
|
+
dependencies: {
|
|
34
|
+
stylus: string;
|
|
35
|
+
'stylus-loader': string;
|
|
36
|
+
};
|
|
37
|
+
devDependencies: {};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare function addStyleDependencies(host: Tree, style: string): GeneratorCallback;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addStyleDependencies = exports.NEXT_SPECIFIC_STYLE_DEPENDENCIES = void 0;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const versions_1 = require("@nx/react/src/utils/versions");
|
|
6
|
+
const styled_1 = require("@nx/react/src/utils/styled");
|
|
7
|
+
const versions_2 = require("./versions");
|
|
8
|
+
exports.NEXT_SPECIFIC_STYLE_DEPENDENCIES = {
|
|
9
|
+
'styled-components': {
|
|
10
|
+
dependencies: styled_1.CSS_IN_JS_DEPENDENCIES['styled-components'].dependencies,
|
|
11
|
+
devDependencies: Object.assign(Object.assign({}, styled_1.CSS_IN_JS_DEPENDENCIES['styled-components'].devDependencies), { 'babel-plugin-styled-components': versions_2.babelPluginStyledComponentsVersion }),
|
|
12
|
+
},
|
|
13
|
+
'@emotion/styled': {
|
|
14
|
+
dependencies: Object.assign(Object.assign({}, styled_1.CSS_IN_JS_DEPENDENCIES['@emotion/styled'].dependencies), { '@emotion/server': versions_2.emotionServerVersion }),
|
|
15
|
+
devDependencies: styled_1.CSS_IN_JS_DEPENDENCIES['@emotion/styled'].devDependencies,
|
|
16
|
+
},
|
|
17
|
+
css: {
|
|
18
|
+
dependencies: {},
|
|
19
|
+
devDependencies: {},
|
|
20
|
+
},
|
|
21
|
+
scss: {
|
|
22
|
+
dependencies: {},
|
|
23
|
+
devDependencies: { sass: versions_2.sassVersion },
|
|
24
|
+
},
|
|
25
|
+
less: {
|
|
26
|
+
dependencies: {},
|
|
27
|
+
devDependencies: {
|
|
28
|
+
less: versions_1.lessVersion,
|
|
29
|
+
'less-loader': versions_2.lessLoader,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
styl: {
|
|
33
|
+
dependencies: {
|
|
34
|
+
stylus: versions_1.stylusVersion,
|
|
35
|
+
'stylus-loader': versions_2.stylusLoader,
|
|
36
|
+
},
|
|
37
|
+
devDependencies: {},
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
function addStyleDependencies(host, style) {
|
|
41
|
+
const extraDependencies = exports.NEXT_SPECIFIC_STYLE_DEPENDENCIES[style];
|
|
42
|
+
if (!extraDependencies)
|
|
43
|
+
return () => { };
|
|
44
|
+
const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, extraDependencies.dependencies, extraDependencies.devDependencies);
|
|
45
|
+
// @zeit/next-less & @zeit/next-stylus internal configuration is working only
|
|
46
|
+
// for specific CSS loader version, causing PNPM resolution to fail.
|
|
47
|
+
if (host.exists('pnpm-lock.yaml') && (style === 'less' || style === 'styl')) {
|
|
48
|
+
(0, devkit_1.updateJson)(host, `package.json`, (json) => {
|
|
49
|
+
json.resolutions = Object.assign(Object.assign({}, json.resolutions), { 'css-loader': '1.0.1' });
|
|
50
|
+
return json;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return installTask;
|
|
54
|
+
}
|
|
55
|
+
exports.addStyleDependencies = addStyleDependencies;
|
|
56
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","s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oEAAoE;IACpE,IAAI,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,MAAM,CAAC,EAAE;QAC3E,IAAA,mBAAU,EAAC,IAAI,EAAE,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE;YACxC,IAAI,CAAC,WAAW,mCAAQ,IAAI,CAAC,WAAW,KAAE,YAAY,EAAE,OAAO,GAAE,CAAC;YAClE,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;KACJ;IAED,OAAO,WAAW,CAAC;AACrB,CAAC;AAxBD,oDAwBC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type NextServer = (options: NextServerOptions, proxyConfig?: ProxyConfig) => Promise<void>;
|
|
2
|
+
export interface ProxyConfig {
|
|
3
|
+
[path: string]: {
|
|
4
|
+
target: string;
|
|
5
|
+
pathRewrite?: any;
|
|
6
|
+
changeOrigin?: boolean;
|
|
7
|
+
secure?: boolean;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface NextServerOptions {
|
|
11
|
+
dev: boolean;
|
|
12
|
+
dir: string;
|
|
13
|
+
staticMarkup: boolean;
|
|
14
|
+
quiet: boolean;
|
|
15
|
+
port: number;
|
|
16
|
+
hostname: string;
|
|
17
|
+
customServer?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface FileReplacement {
|
|
20
|
+
replace: string;
|
|
21
|
+
with: string;
|
|
22
|
+
}
|
|
23
|
+
export interface NextBuildBuilderOptions {
|
|
24
|
+
root: string;
|
|
25
|
+
outputPath: string;
|
|
26
|
+
fileReplacements: FileReplacement[];
|
|
27
|
+
assets?: any[];
|
|
28
|
+
nextConfig?: string;
|
|
29
|
+
buildLibsFromSource?: boolean;
|
|
30
|
+
includeDevDependenciesInPackageJson?: boolean;
|
|
31
|
+
generateLockfile?: boolean;
|
|
32
|
+
watch?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface NextServeBuilderOptions {
|
|
35
|
+
dev: boolean;
|
|
36
|
+
port: number;
|
|
37
|
+
staticMarkup: boolean;
|
|
38
|
+
quiet: boolean;
|
|
39
|
+
buildTarget: string;
|
|
40
|
+
customServerTarget?: string;
|
|
41
|
+
hostname?: string;
|
|
42
|
+
proxyConfig?: string;
|
|
43
|
+
buildLibsFromSource?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface NextExportBuilderOptions {
|
|
46
|
+
buildTarget: string;
|
|
47
|
+
silent: boolean;
|
|
48
|
+
threads: number;
|
|
49
|
+
buildLibsFromSource?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface WebpackConfigOptions {
|
|
52
|
+
svgr?: boolean;
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../packages/next/src/utils/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const nxVersion: any;
|
|
2
|
+
export declare const nextVersion = "13.3.0";
|
|
3
|
+
export declare const eslintConfigNextVersion = "13.3.0";
|
|
4
|
+
export declare const sassVersion = "1.61.0";
|
|
5
|
+
export declare const lessLoader = "11.1.0";
|
|
6
|
+
export declare const stylusLoader = "7.1.0";
|
|
7
|
+
export declare const emotionServerVersion = "11.10.0";
|
|
8
|
+
export declare const babelPluginStyledComponentsVersion = "1.10.7";
|
|
9
|
+
export declare const tsLibVersion = "^2.3.0";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tsLibVersion = exports.babelPluginStyledComponentsVersion = exports.emotionServerVersion = exports.stylusLoader = exports.lessLoader = exports.sassVersion = exports.eslintConfigNextVersion = exports.nextVersion = exports.nxVersion = void 0;
|
|
4
|
+
exports.nxVersion = require('../../package.json').version;
|
|
5
|
+
exports.nextVersion = '13.3.0';
|
|
6
|
+
exports.eslintConfigNextVersion = '13.3.0';
|
|
7
|
+
exports.sassVersion = '1.61.0';
|
|
8
|
+
exports.lessLoader = '11.1.0';
|
|
9
|
+
exports.stylusLoader = '7.1.0';
|
|
10
|
+
exports.emotionServerVersion = '11.10.0';
|
|
11
|
+
exports.babelPluginStyledComponentsVersion = '1.10.7';
|
|
12
|
+
exports.tsLibVersion = '^2.3.0';
|
|
13
|
+
//# sourceMappingURL=versions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/next/src/utils/versions.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC;AAElD,QAAA,WAAW,GAAG,QAAQ,CAAC;AACvB,QAAA,uBAAuB,GAAG,QAAQ,CAAC;AACnC,QAAA,WAAW,GAAG,QAAQ,CAAC;AACvB,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,YAAY,GAAG,OAAO,CAAC;AACvB,QAAA,oBAAoB,GAAG,SAAS,CAAC;AACjC,QAAA,kCAAkC,GAAG,QAAQ,CAAC;AAC9C,QAAA,YAAY,GAAG,QAAQ,CAAC"}
|
package/tailwind.d.ts
ADDED
package/tailwind.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createGlobPatternsForDependencies = void 0;
|
|
4
|
+
// Re-exporting for convenience and backwards compatibility.
|
|
5
|
+
const tailwind_1 = require("@nx/react/tailwind");
|
|
6
|
+
Object.defineProperty(exports, "createGlobPatternsForDependencies", { enumerable: true, get: function () { return tailwind_1.createGlobPatternsForDependencies; } });
|
|
7
|
+
//# sourceMappingURL=tailwind.js.map
|
package/tailwind.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind.js","sourceRoot":"","sources":["../../../packages/next/tailwind.ts"],"names":[],"mappings":";;;AAAA,4DAA4D;AAC5D,iDAAuE;AAC9D,kHADA,4CAAiC,OACA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="next/image-types/global" />
|
|
2
|
+
|
|
3
|
+
declare module '*.svg' {
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
|
|
6
|
+
export const ReactComponent: React.FunctionComponent<
|
|
7
|
+
React.SVGProps<SVGSVGElement> & { title?: string }
|
|
8
|
+
>;
|
|
9
|
+
|
|
10
|
+
const content: any;
|
|
11
|
+
export default content;
|
|
12
|
+
}
|