@elliemae/pui-cli 6.0.0-beta.5 → 6.0.0-beta.6
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/lib/server/index.js
CHANGED
|
@@ -13,8 +13,11 @@ const { loadRoutes } = require('./util');
|
|
|
13
13
|
const { getAssetPath } = require('../webpack/helpers');
|
|
14
14
|
|
|
15
15
|
const pino = expressPinoLogger({
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
transport: {
|
|
17
|
+
target: 'pino-pretty',
|
|
18
|
+
options: {
|
|
19
|
+
colorize: true,
|
|
20
|
+
},
|
|
18
21
|
},
|
|
19
22
|
});
|
|
20
23
|
pino.logger.level = 'warn';
|
|
@@ -7,7 +7,6 @@ const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack
|
|
|
7
7
|
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
|
|
8
8
|
const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
|
|
9
9
|
const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
|
|
10
|
-
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
|
11
10
|
const { ProvidePlugin } = require('webpack');
|
|
12
11
|
|
|
13
12
|
const {
|
|
@@ -19,10 +18,8 @@ const {
|
|
|
19
18
|
getMediaPath,
|
|
20
19
|
} = require('./helpers');
|
|
21
20
|
const { ESBUILD_TARGET } = require('../esbuild');
|
|
22
|
-
const { isTypeScriptEnabled } = require('../typescript/util');
|
|
23
21
|
|
|
24
22
|
// get the application configuration
|
|
25
|
-
const devMode = process.env.NODE_ENV !== 'production';
|
|
26
23
|
const minicssLoader = {
|
|
27
24
|
loader: MiniCssExtractPlugin.loader,
|
|
28
25
|
options: {},
|
|
@@ -110,17 +107,6 @@ const plugins = [
|
|
|
110
107
|
new WebpackManifestPlugin(),
|
|
111
108
|
];
|
|
112
109
|
|
|
113
|
-
if (isTypeScriptEnabled()) {
|
|
114
|
-
plugins.push(
|
|
115
|
-
new ForkTsCheckerWebpackPlugin({
|
|
116
|
-
async: devMode,
|
|
117
|
-
eslint: {
|
|
118
|
-
files: './app/**/*.{ts,js,tsx,jsx}',
|
|
119
|
-
},
|
|
120
|
-
}),
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
110
|
module.exports = (options) => ({
|
|
125
111
|
mode: options.mode,
|
|
126
112
|
entry: options.entry,
|
|
@@ -10,7 +10,6 @@ const PostcssPresetEnv = require('postcss-preset-env');
|
|
|
10
10
|
const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin');
|
|
11
11
|
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
|
|
12
12
|
const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
|
|
13
|
-
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
|
14
13
|
|
|
15
14
|
const {
|
|
16
15
|
excludeNodeModulesExcept,
|
|
@@ -22,9 +21,7 @@ const {
|
|
|
22
21
|
getMediaPath,
|
|
23
22
|
} = require('./helpers');
|
|
24
23
|
const { ESBUILD_TARGET } = require('../esbuild');
|
|
25
|
-
const { isTypeScriptEnabled } = require('../typescript/util');
|
|
26
24
|
|
|
27
|
-
const devMode = process.env.NODE_ENV !== 'production';
|
|
28
25
|
const minicssLoader = {
|
|
29
26
|
loader: MiniCssExtractPlugin.loader,
|
|
30
27
|
options: {},
|
|
@@ -63,17 +60,6 @@ const plugins = [
|
|
|
63
60
|
new MomentLocalesPlugin(),
|
|
64
61
|
];
|
|
65
62
|
|
|
66
|
-
if (isTypeScriptEnabled()) {
|
|
67
|
-
plugins.push(
|
|
68
|
-
new ForkTsCheckerWebpackPlugin({
|
|
69
|
-
async: devMode,
|
|
70
|
-
eslint: {
|
|
71
|
-
files: './lib/**/*.{ts,js,tsx,jsx}',
|
|
72
|
-
},
|
|
73
|
-
}),
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
63
|
module.exports = (options) => ({
|
|
78
64
|
mode: options.mode,
|
|
79
65
|
entry: [path.join(process.cwd(), 'lib/index')],
|
|
@@ -3,15 +3,12 @@ const webpack = require('webpack');
|
|
|
3
3
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
4
4
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
5
5
|
const CompressionPlugin = require('compression-webpack-plugin');
|
|
6
|
-
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
|
7
6
|
const {
|
|
8
7
|
getAppConfig,
|
|
9
8
|
isApp,
|
|
10
9
|
getAlias,
|
|
11
10
|
excludeNodeModulesExcept,
|
|
12
11
|
modulesToTranspile,
|
|
13
|
-
resolveExtensions,
|
|
14
|
-
mainFields,
|
|
15
12
|
getMediaPath,
|
|
16
13
|
} = require('./helpers');
|
|
17
14
|
const { ESBUILD_TARGET } = require('../esbuild');
|
|
@@ -157,9 +154,6 @@ exports.webpackFinal = async (config, { configType }) => {
|
|
|
157
154
|
|
|
158
155
|
config.resolve.alias = { ...config.resolve.alias, ...getAlias() };
|
|
159
156
|
config.resolve.fallback = { ...config.resolve.fallback, crypto: false };
|
|
160
|
-
config.resolve.plugins = (config.resolve.plugins || []).concat([
|
|
161
|
-
new TsconfigPathsPlugin({ extensions: resolveExtensions, mainFields }),
|
|
162
|
-
]);
|
|
163
157
|
|
|
164
158
|
config.externals = config.externals || {};
|
|
165
159
|
config.externals['@elliemae/pui-user-monitoring'] = 'emuiUserMonitoring';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "EllieMae Platform UI CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -133,6 +133,7 @@
|
|
|
133
133
|
"dotenv-webpack": "~7.0.3",
|
|
134
134
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
135
135
|
"esbuild": "~0.13.15",
|
|
136
|
+
"esbuild-jest": "~0.5.0",
|
|
136
137
|
"esbuild-loader": "~2.16.0",
|
|
137
138
|
"eslint": "~8.3.0",
|
|
138
139
|
"eslint-config-airbnb": "~18.2.1",
|