arui-scripts 14.0.0 → 14.1.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +347 -341
  2. package/README.md +9 -6
  3. package/build/bin/index.js +0 -0
  4. package/build/commands/docker-build/index.js +2 -1
  5. package/build/commands/docker-build-compiled/index.js +2 -1
  6. package/build/commands/util/docker-build.d.ts +3 -2
  7. package/build/commands/util/docker-build.js +4 -1
  8. package/build/configs/app-configs/get-defaults.js +2 -0
  9. package/build/configs/app-configs/types.d.ts +1 -0
  10. package/build/configs/util/get-entry.d.ts +2 -1
  11. package/build/configs/util/get-entry.js +5 -4
  12. package/build/configs/webpack.client.d.ts +2 -0
  13. package/build/configs/webpack.client.dev.d.ts +2 -3
  14. package/build/configs/webpack.client.dev.js +3 -293
  15. package/build/configs/webpack.client.js +365 -0
  16. package/build/configs/webpack.client.prod.d.ts +1 -2
  17. package/build/configs/webpack.client.prod.js +2 -334
  18. package/build/configs/webpack.server.d.ts +2 -0
  19. package/build/configs/webpack.server.dev.d.ts +2 -3
  20. package/build/configs/webpack.server.dev.js +3 -228
  21. package/build/configs/webpack.server.js +239 -0
  22. package/build/configs/webpack.server.prod.d.ts +1 -2
  23. package/build/configs/webpack.server.prod.js +2 -192
  24. package/build/tsconfig-local.tsbuildinfo +1 -1
  25. package/package.json +7 -10
  26. package/release.config.js +1 -1
  27. package/build/commands/docker-build-fast/index.d.ts +0 -1
  28. package/build/commands/docker-build-fast/index.js +0 -90
  29. package/build/commands/start-vite/client.d.ts +0 -1
  30. package/build/commands/start-vite/client.js +0 -73
  31. package/build/commands/start-vite/index.d.ts +0 -1
  32. package/build/commands/start-vite/index.js +0 -25
  33. package/build/commands/util/localhost-certs.d.ts +0 -2
  34. package/build/commands/util/localhost-certs.js +0 -50
  35. package/build/commands/util/start-http2-proxy-server.d.ts +0 -7
  36. package/build/commands/util/start-http2-proxy-server.js +0 -40
  37. package/build/commands/util/vite-proxy-utils.d.ts +0 -64
  38. package/build/commands/util/vite-proxy-utils.js +0 -100
  39. package/build/configs/util/try-resolve.d.ts +0 -1
  40. package/build/configs/util/try-resolve.js +0 -12
  41. package/build/configs/vite.config.d.ts +0 -1
  42. package/build/configs/vite.config.js +0 -63
  43. package/build/configs/vite.html-template.d.ts +0 -1
  44. package/build/configs/vite.html-template.js +0 -16
  45. package/build/configs/webpack.dll.dev.d.ts +0 -3
  46. package/build/configs/webpack.dll.dev.js +0 -91
  47. package/build/templates/dockerfile-fast.template.d.ts +0 -2
  48. package/build/templates/dockerfile-fast.template.js +0 -32
@@ -1,91 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const path_1 = __importDefault(require("path"));
7
- const webpack_1 = __importDefault(require("webpack"));
8
- const app_configs_1 = __importDefault(require("./app-configs"));
9
- const postcss_1 = __importDefault(require("./postcss"));
10
- const mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
11
- const getCSSModuleLocalIdent_1 = __importDefault(require("react-dev-utils/getCSSModuleLocalIdent"));
12
- // style files regexes
13
- const cssRegex = /\.css$/;
14
- const cssModuleRegex = /\.module\.css$/;
15
- const webpackDllDev = {
16
- mode: 'development',
17
- entry: {
18
- vendor: ['react', 'react-dom', 'lodash']
19
- },
20
- module: {
21
- rules: [
22
- {
23
- test: cssRegex,
24
- exclude: cssModuleRegex,
25
- use: [
26
- {
27
- loader: mini_css_extract_plugin_1.default.loader,
28
- options: { publicPath: './' }
29
- },
30
- {
31
- loader: require.resolve('css-loader'),
32
- options: {
33
- importLoaders: 1,
34
- sourceMap: false,
35
- },
36
- },
37
- {
38
- loader: require.resolve('postcss-loader'),
39
- options: {
40
- // Necessary for external CSS imports to work
41
- // https://github.com/facebookincubator/create-react-app/issues/2677
42
- ident: 'postcss',
43
- plugins: () => postcss_1.default,
44
- },
45
- },
46
- ],
47
- },
48
- {
49
- test: cssModuleRegex,
50
- use: [
51
- {
52
- loader: mini_css_extract_plugin_1.default.loader,
53
- options: { publicPath: './' }
54
- },
55
- {
56
- loader: require.resolve('css-loader'),
57
- options: {
58
- importLoaders: 1,
59
- sourceMap: false,
60
- modules: {
61
- getLocalIdent: getCSSModuleLocalIdent_1.default
62
- },
63
- },
64
- },
65
- {
66
- loader: require.resolve('postcss-loader'),
67
- options: {
68
- // Necessary for external CSS imports to work
69
- // https://github.com/facebookincubator/create-react-app/issues/2677
70
- ident: 'postcss',
71
- plugins: () => postcss_1.default,
72
- },
73
- },
74
- ],
75
- }
76
- ],
77
- },
78
- output: {
79
- filename: 'vendor.bundle.js',
80
- path: app_configs_1.default.clientOutputPath,
81
- library: 'vendor_lib'
82
- },
83
- plugins: [
84
- new mini_css_extract_plugin_1.default(),
85
- new webpack_1.default.DllPlugin({
86
- name: 'vendor_lib',
87
- path: path_1.default.join(app_configs_1.default.clientOutputPath, 'vendor-manifest.json')
88
- })
89
- ]
90
- };
91
- exports.default = webpackDllDev;
@@ -1,2 +0,0 @@
1
- declare const _default: string;
2
- export default _default;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const app_configs_1 = __importDefault(require("../configs/app-configs"));
7
- const apply_overrides_1 = __importDefault(require("../configs/util/apply-overrides"));
8
- const dockerfileTemplate = `
9
- FROM ${app_configs_1.default.baseDockerImage}
10
- ARG START_SH_LOCATION
11
- ARG NGINX_CONF_LOCATION
12
-
13
- WORKDIR /src
14
- RUN mkdir -p /var/lib/nginx && \
15
- chown -R nginx:nginx /var/lib/nginx && \
16
- chown -R nginx:nginx /var/log/nginx && \
17
- chown -R nginx:nginx /etc/nginx/conf.d
18
-
19
- RUN touch /var/run/nginx.pid && \
20
- chown -R nginx:nginx /var/run/nginx.pid
21
-
22
- ADD $START_SH_LOCATION /src/start.sh
23
- ADD $NGINX_CONF_LOCATION /src/nginx.conf
24
- ADD --chown=nginx:nginx yarn.lock /src/yarn.lock
25
- ADD --chown=nginx:nginx package.json /src/package.json
26
- RUN yarn install --production --ignore-optional --frozen-lockfile --ignore-scripts --prefer-offline && \\
27
- yarn cache clean
28
- ADD --chown=nginx:nginx . /src
29
-
30
- USER nginx
31
- `;
32
- exports.default = apply_overrides_1.default('Dockerfile-fast', dockerfileTemplate);