@flatjs/evolve 1.8.1-next.97 → 2.0.0-next.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/CHANGELOG.md +160 -0
  2. package/dist/constants.d.ts +9 -0
  3. package/dist/constants.js +1 -1
  4. package/dist/create-webpack/create-optimization.d.ts +2 -1
  5. package/dist/create-webpack/create-optimization.js +1 -1
  6. package/dist/create-webpack/create-plugins.js +1 -1
  7. package/dist/create-webpack/load-webpack-config.js +1 -1
  8. package/dist/define-config/define-config.d.ts +3 -1
  9. package/dist/dev-server/add-compiler-to-dev-server.d.ts +2 -1
  10. package/dist/dev-server/add-compiler-to-dev-server.js +1 -1
  11. package/dist/dev-server/create-dev-server-compiler-tasks.d.ts +1 -1
  12. package/dist/dev-server/create-dev-server-compiler-tasks.js +1 -1
  13. package/dist/dev-server/create-dev-server.d.ts +1 -0
  14. package/dist/dev-server/create-dev-server.js +1 -1
  15. package/dist/dev-server/middlewares/create-page-middleware.js +1 -1
  16. package/dist/helpers/get-bundle-file-name.js +1 -1
  17. package/dist/helpers/json-serializer.js +1 -1
  18. package/dist/helpers/refresh-evolve-mock-options.d.ts +1 -1
  19. package/dist/helpers/should-enable-react-fast-refresh.js +1 -1
  20. package/dist/helpers/split-to-multi-compiler.d.ts +1 -1
  21. package/dist/helpers/split-to-multi-compiler.js +1 -1
  22. package/dist/load-config/load-evolve-config.d.ts +1 -7
  23. package/dist/load-config/load-evolve-config.js +1 -1
  24. package/dist/load-config/types.d.ts +7 -0
  25. package/dist/load-config/types.js +1 -0
  26. package/dist/main/create-thread-worker.d.ts +16 -0
  27. package/dist/main/create-thread-worker.js +1 -0
  28. package/dist/main/prepare-serve.js +1 -1
  29. package/dist/main/start-build-dynamic.d.ts +2 -2
  30. package/dist/main/start-build-dynamic.js +1 -1
  31. package/dist/main/start-build-worker.d.ts +1 -1
  32. package/dist/main/start-build.d.ts +1 -1
  33. package/dist/main/start-build.js +1 -1
  34. package/dist/main/start-one-entry-build.js +1 -1
  35. package/dist/main/start-serve.d.ts +1 -1
  36. package/dist/main/start-static.d.ts +1 -1
  37. package/dist/plugins/circular-dependency/circular-dependency-plugin.d.ts +1 -1
  38. package/dist/plugins/circular-dependency/circular-dependency-plugin.js +1 -1
  39. package/dist/types/types-ci.d.ts +7 -0
  40. package/dist/types/types-multi-html.d.ts +2 -0
  41. package/package.json +38 -36
  42. package/templates/html-plugin/index-dev.html +28 -24
  43. package/templates/html-plugin/index-inte.html +28 -24
  44. package/templates/html-plugin/index-inte2.html +28 -24
  45. package/templates/html-plugin/index-inte3.html +28 -24
  46. package/templates/html-plugin/index-inte4.html +28 -24
  47. package/templates/html-plugin/index-me.html +28 -24
  48. package/templates/html-plugin/index-prod.html +28 -24
  49. package/templates/html-plugin/index-rc.html +28 -24
  50. package/templates/html-plugin/index-uat.html +28 -24
  51. package/templates/module.html +47 -37
@@ -17,41 +17,45 @@
17
17
  />
18
18
  <title><%= title %></title>
19
19
 
20
- <% if (headBeforeHtmlTags) { %> <% for (let index = 0; index <
21
- headBeforeHtmlTags.length; index++) { %> <%= headBeforeHtmlTags[index] %> <%
22
- } %> <% } %> <% if (inlineScripts) { %>
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %>
23
+ <% } %>
24
+ <% } %>
25
+ <% if (inlineScripts) { %>
23
26
  <script>
24
27
  <% for (let index = 0; index < inlineScripts.length; index++) { %>
25
28
  <%= inlineScripts[index] %>
26
29
  <% } %>
27
30
  </script>
28
- <% } %> <% if (viewport) { %>
31
+ <% } %>
32
+ <% if (viewport) { %>
29
33
  <script>
30
34
  <%= viewport %>
31
35
  </script>
32
- <% } %> <% if (favicon) { %>
33
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
34
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
35
- <% } %> <% if (headBeforeStyles) { %> <% for (let index = 0; index <
36
- headBeforeStyles.length; index++) { %>
37
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
38
- <% } %> <% } %> <% if (headBeforeScripts) { %> <% for (let index = 0; index
39
- < headBeforeScripts.length; index++) { %>
40
- <script
41
- crossorigin="anonymous"
42
- src="<%= headBeforeScripts[index]%>"
43
- ></script>
44
- <% } %> <% } %>
36
+ <% } %>
37
+ <% if (favicon) { %>
38
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
39
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <% } %>
41
+ <% if (headBeforeStyles) { %>
42
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
43
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
44
+ <% } %>
45
+ <% } %>
46
+ <% if (headBeforeScripts) { %>
47
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
48
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
49
+ <% } %>
50
+ <% } %>
45
51
  </head>
46
52
 
47
53
  <body>
48
54
  <div id="app"></div>
49
- <% if (bodyAfterScripts) { %> <% for (let index = 0; index <
50
- bodyAfterScripts.length; index++) { %>
51
- <script
52
- crossorigin="anonymous"
53
- src="<%= bodyAfterScripts[index]%>"
54
- ></script>
55
- <% } %> <% } %>
55
+ <% if (bodyAfterScripts) { %>
56
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
57
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
58
+ <% } %>
59
+ <% } %>
56
60
  </body>
57
61
  </html>
@@ -17,41 +17,45 @@
17
17
  />
18
18
  <title><%= title %></title>
19
19
 
20
- <% if (headBeforeHtmlTags) { %> <% for (let index = 0; index <
21
- headBeforeHtmlTags.length; index++) { %> <%= headBeforeHtmlTags[index] %> <%
22
- } %> <% } %> <% if (inlineScripts) { %>
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %>
23
+ <% } %>
24
+ <% } %>
25
+ <% if (inlineScripts) { %>
23
26
  <script>
24
27
  <% for (let index = 0; index < inlineScripts.length; index++) { %>
25
28
  <%= inlineScripts[index] %>
26
29
  <% } %>
27
30
  </script>
28
- <% } %> <% if (viewport) { %>
31
+ <% } %>
32
+ <% if (viewport) { %>
29
33
  <script>
30
34
  <%= viewport %>
31
35
  </script>
32
- <% } %> <% if (favicon) { %>
33
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
34
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
35
- <% } %> <% if (headBeforeStyles) { %> <% for (let index = 0; index <
36
- headBeforeStyles.length; index++) { %>
37
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
38
- <% } %> <% } %> <% if (headBeforeScripts) { %> <% for (let index = 0; index
39
- < headBeforeScripts.length; index++) { %>
40
- <script
41
- crossorigin="anonymous"
42
- src="<%= headBeforeScripts[index]%>"
43
- ></script>
44
- <% } %> <% } %>
36
+ <% } %>
37
+ <% if (favicon) { %>
38
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
39
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <% } %>
41
+ <% if (headBeforeStyles) { %>
42
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
43
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
44
+ <% } %>
45
+ <% } %>
46
+ <% if (headBeforeScripts) { %>
47
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
48
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
49
+ <% } %>
50
+ <% } %>
45
51
  </head>
46
52
 
47
53
  <body>
48
54
  <div id="app"></div>
49
- <% if (bodyAfterScripts) { %> <% for (let index = 0; index <
50
- bodyAfterScripts.length; index++) { %>
51
- <script
52
- crossorigin="anonymous"
53
- src="<%= bodyAfterScripts[index]%>"
54
- ></script>
55
- <% } %> <% } %>
55
+ <% if (bodyAfterScripts) { %>
56
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
57
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
58
+ <% } %>
59
+ <% } %>
56
60
  </body>
57
61
  </html>
@@ -17,39 +17,47 @@
17
17
  />
18
18
  <title><%= title %></title>
19
19
 
20
- <% if (headBeforeHtmlTags) { %> <% for (let index = 0; index <
21
- headBeforeHtmlTags.length; index++) { %> <%= headBeforeHtmlTags[index] %> <%
22
- } %> <% } %> <% if (inlineScripts) { %>
23
- <script>
24
- <% for (let index = 0; index < inlineScripts.length; index++) { %>
25
- <%= inlineScripts[index] %>
26
- <% } %>
27
- </script>
28
- <% } %> <% if (viewport) { %>
29
- <script>
30
- <%= viewport %>
31
- </script>
32
- <% } %> <% if (favicon) { %>
33
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
34
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
35
- <% } %> <% if (headBeforeStyles) { %> <% for (let index = 0; index <
36
- headBeforeStyles.length; index++) { %>
37
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
38
- <% } %> <% } %> <% if (styles.length) { %> <% _.forEach(styles, (css)=> { %>
39
- <link href="<%= css %>" rel="stylesheet" />
40
- <% }) %> <% } %>
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %> <%
23
+ } %>
24
+ <% } %>
25
+ <% if (inlineScripts) { %>
26
+ <script>
27
+ <% for (let index = 0; index < inlineScripts.length; index++) { %>
28
+ <%= inlineScripts[index] %>
29
+ <% } %>
30
+ </script>
31
+ <% } %>
32
+ <% if (viewport) { %>
33
+ <script>
34
+ <%= viewport %>
35
+ </script>
36
+ <% } %>
37
+ <% if (favicon) { %>
38
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
39
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <% } %>
41
+ <% if (headBeforeStyles) { %>
42
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
43
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
44
+ <% } %>
45
+ <% } %>
46
+ <% if (styles.length) { %>
47
+ <% _.forEach(styles, (css)=> { %>
48
+ <link href="<%= css %>" rel="stylesheet" />
49
+ <% }) %>
50
+ <% } %>
41
51
 
42
52
  <script>
43
53
  window.GLOBAL = <%= JSON.stringify(Object.assign(global, {})) %>;
44
54
  </script>
45
55
 
46
- <% if (headBeforeScripts) { %> <% for (let index = 0; index <
47
- headBeforeScripts.length; index++) { %>
48
- <script
49
- crossorigin="anonymous"
50
- src="<%= headBeforeScripts[index]%>"
51
- ></script>
52
- <% } %> <% } %>
56
+ <% if (headBeforeScripts) { %>
57
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
58
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
59
+ <% } %>
60
+ <% } %>
53
61
  </head>
54
62
 
55
63
  <body>
@@ -58,14 +66,16 @@
58
66
  <script>
59
67
  <%= moduleFederationScripts %>
60
68
  </script>
61
- <% } %> <% if (scripts.length) { %> <% _.forEach(scripts, (js)=> { %>
62
- <script src="<%= js %>"></script>
63
- <% }) %> <% } %> <% if (bodyAfterScripts) { %> <% for (let index = 0; index
64
- < bodyAfterScripts.length; index++) { %>
65
- <script
66
- crossorigin="anonymous"
67
- src="<%= bodyAfterScripts[index]%>"
68
- ></script>
69
- <% } %> <% } %>
69
+ <% } %>
70
+ <% if (scripts.length) { %>
71
+ <% _.forEach(scripts, (js)=> { %>
72
+ <script src="<%= js %>"></script>
73
+ <% }) %>
74
+ <% } %>
75
+ <% if (bodyAfterScripts) { %>
76
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
77
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
78
+ <% } %>
79
+ <% } %>
70
80
  </body>
71
81
  </html>