@trackunit/iris-app 0.0.111 → 0.0.112
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
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.0.112](https://github.com/Trackunit/manager/compare/iris-app/0.0.111...iris-app/0.0.112) (2022-09-15)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `iris-app-build-utilities` updated to version `0.0.1`
|
|
10
|
+
* `iris-app-api` updated to version `0.0.1`
|
|
11
|
+
* `iris-app-webpack-plugin` updated to version `0.0.1`
|
|
5
12
|
### [0.0.111](https://github.com/Trackunit/manager/compare/iris-app/0.0.110...iris-app/0.0.111) (2022-09-13)
|
|
6
13
|
|
|
7
14
|
### Dependency Updates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.112",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"generators": "./generators.json",
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"echarts": "^5.3.1",
|
|
14
14
|
"penpal": "^6.2.2",
|
|
15
15
|
"babel-plugin-styled-components": "1.13.3",
|
|
16
|
-
"@trackunit/iris-app-build-utilities": "0.0.
|
|
16
|
+
"@trackunit/iris-app-build-utilities": "0.0.53",
|
|
17
17
|
"tsconfig-paths": "^3.14.0",
|
|
18
18
|
"typescript": "4.7.3",
|
|
19
|
-
"@trackunit/iris-app-api": "0.0.
|
|
19
|
+
"@trackunit/iris-app-api": "0.0.48",
|
|
20
20
|
"node-fetch": "^2.6.7",
|
|
21
21
|
"libnpmpublish": "^6.0.4",
|
|
22
22
|
"open": "^8.4.0",
|
|
23
23
|
"pacote": "^12.0.3",
|
|
24
|
-
"@trackunit/iris-app-webpack-plugin": "0.0.
|
|
24
|
+
"@trackunit/iris-app-webpack-plugin": "0.0.52",
|
|
25
25
|
"enquirer": "^2.3.6",
|
|
26
26
|
"tslib": "^2.3.1"
|
|
27
27
|
},
|
|
@@ -7,13 +7,15 @@ const iris_app_webpack_plugin_1 = require("@trackunit/iris-app-webpack-plugin");
|
|
|
7
7
|
const path = tslib_1.__importStar(require("path"));
|
|
8
8
|
const webpack = tslib_1.__importStar(require("webpack"));
|
|
9
9
|
require("webpack-dev-server");
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
11
|
+
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
|
10
12
|
const getDefaultConfig = async (mode, nxRootDir, appDir, irisAppManifest) => {
|
|
11
|
-
const
|
|
13
|
+
const relativeAppDir = appDir.split(nxRootDir)[1];
|
|
12
14
|
return {
|
|
13
15
|
mode: mode,
|
|
14
16
|
output: {
|
|
15
17
|
publicPath: "auto",
|
|
16
|
-
path: path.join(nxRootDir, "dist",
|
|
18
|
+
path: path.join(nxRootDir, "dist", relativeAppDir),
|
|
17
19
|
},
|
|
18
20
|
entry: path.resolve(__dirname, "src") + "/index.js",
|
|
19
21
|
devtool: false,
|
|
@@ -126,6 +128,15 @@ const getDefaultConfig = async (mode, nxRootDir, appDir, irisAppManifest) => {
|
|
|
126
128
|
appDir,
|
|
127
129
|
manifest: irisAppManifest,
|
|
128
130
|
}),
|
|
131
|
+
new CopyWebpackPlugin({
|
|
132
|
+
patterns: [
|
|
133
|
+
{
|
|
134
|
+
from: path.join(nxRootDir, relativeAppDir, "assets", "**", "*(.png|.jpg|.jpeg|.webp|.md)"),
|
|
135
|
+
to: path.join(nxRootDir, "dist"),
|
|
136
|
+
noErrorOnMissing: true,
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
}),
|
|
129
140
|
],
|
|
130
141
|
};
|
|
131
142
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultWebpackConfig.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app/src/executors/utils/defaultWebpackConfig.ts"],"names":[],"mappings":";;;;AACA,kFAK6C;AAC7C,gFAAmF;AACnF,mDAA6B;AAC7B,yDAAmC;AACnC,8BAA4B;
|
|
1
|
+
{"version":3,"file":"defaultWebpackConfig.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app/src/executors/utils/defaultWebpackConfig.ts"],"names":[],"mappings":";;;;AACA,kFAK6C;AAC7C,gFAAmF;AACnF,mDAA6B;AAC7B,yDAAmC;AACnC,8BAA4B;AAC5B,8DAA8D;AAC9D,MAAM,iBAAiB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAElD,MAAM,gBAAgB,GAAG,KAAK,EACnC,IAAkC,EAClC,SAAiB,EACjB,MAAc,EACd,eAAgC,EACA,EAAE;IAClC,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAClD,OAAO;QACL,IAAI,EAAE,IAAI;QACV,MAAM,EAAE;YACN,UAAU,EAAE,MAAM;YAClB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,CAAC;SACnD;QAED,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,GAAG,WAAW;QACnD,OAAO,EAAE,KAAK;QACd,SAAS,EAAE,MAAM,IAAA,kDAAuB,GAAE;QAC1C,OAAO,EAAE;YACP,UAAU,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC;YACnD,KAAK,EAAE,MAAM,IAAA,iDAAsB,EAAC,EAAE,SAAS,EAAE,CAAC;SACnD;QACD,MAAM,EAAE;YACN,KAAK,EAAE;gBACL;oBACE,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F;aACF,CAAC;SACH;KACF,CAAC;AACJ,CAAC,CAAC;AA1IW,QAAA,gBAAgB,oBA0I3B","sourcesContent":["import { IrisAppManifest } from \"@trackunit/iris-app-api\";\nimport {\n getAliasesFromTsConfig,\n getExposedExtensions,\n getSharedDependencies,\n getTileWebpackDevServer,\n} from \"@trackunit/iris-app-build-utilities\";\nimport { TrackunitIrisAppWebpackPlugin } from \"@trackunit/iris-app-webpack-plugin\";\nimport * as path from \"path\";\nimport * as webpack from \"webpack\";\nimport \"webpack-dev-server\";\n// eslint-disable-next-line @typescript-eslint/no-var-requires\nconst CopyWebpackPlugin = require(\"copy-webpack-plugin\");\n\nexport const getDefaultConfig = async (\n mode: \"production\" | \"development\",\n nxRootDir: string,\n appDir: string,\n irisAppManifest: IrisAppManifest\n): Promise<webpack.Configuration> => {\n const relativeAppDir = appDir.split(nxRootDir)[1];\n return {\n mode: mode,\n output: {\n publicPath: \"auto\",\n path: path.join(nxRootDir, \"dist\", relativeAppDir),\n },\n\n entry: path.resolve(__dirname, \"src\") + \"/index.js\",\n devtool: false,\n devServer: await getTileWebpackDevServer(),\n resolve: {\n extensions: [\".tsx\", \".ts\", \".jsx\", \".js\", \".json\"],\n alias: await getAliasesFromTsConfig({ nxRootDir }),\n },\n module: {\n rules: [\n {\n test: /\\.m?js/,\n type: \"javascript/auto\",\n resolve: {\n fullySpecified: false,\n },\n },\n {\n test: /\\.svg$/,\n use: [\"@svgr/webpack\", \"url-loader\"],\n },\n {\n test: /\\.(png|jpg|gif|woff|ico)$/,\n exclude: /(node_modules)/,\n type: \"asset/resource\",\n },\n {\n test: /\\.(png|jpe?g|gif|svg|eot|ttf|woff|woff2)$/i,\n include: /(node_modules\\/@okta)/,\n type: \"asset/resource\",\n },\n {\n test: /\\.(css|s[ac]ss)$/i,\n use: [\n \"style-loader\",\n \"css-loader\",\n {\n loader: \"postcss-loader\",\n options: {\n postcssOptions: {\n plugins: {\n \"postcss-import\": {},\n \"tailwindcss/nesting\": {},\n tailwindcss: {\n config: path.resolve(appDir, \"tailwind.config.js\"),\n },\n autoprefixer: {},\n },\n },\n },\n },\n ],\n },\n {\n test: /\\.json$/,\n loader: \"json-loader\",\n },\n {\n test: /\\.(ts|tsx|js|jsx)$/,\n exclude: /node_modules/,\n use: {\n loader: \"babel-loader\",\n options: {\n cacheDirectory: true,\n babelrc: false,\n presets: [\n [\n \"@babel/preset-env\",\n {\n useBuiltIns: \"usage\",\n corejs: { version: 3, proposals: true },\n },\n ],\n \"@babel/preset-typescript\",\n [\"@babel/preset-react\", { runtime: \"automatic\" }],\n ],\n exclude: /node_modules/,\n plugins: [\n [\"@babel/plugin-proposal-decorators\", { legacy: true }],\n [\"@babel/plugin-proposal-class-properties\", { loose: true }],\n [\"@babel/plugin-proposal-private-methods\", { loose: true }],\n [\"@babel/plugin-proposal-private-property-in-object\", { loose: true }],\n [\n \"babel-plugin-styled-components\",\n\n {\n ssr: false,\n pure: true,\n },\n ],\n ],\n },\n },\n },\n ],\n },\n\n plugins: [\n new webpack.container.ModuleFederationPlugin({\n name: irisAppManifest.moduleFederationName,\n filename: \"remoteEntry.js\",\n library: { type: \"global\", name: irisAppManifest.moduleFederationName },\n remotes: {},\n exposes: await getExposedExtensions({\n nxRootDir,\n manifest: irisAppManifest,\n }),\n shared: await getSharedDependencies({ manifest: irisAppManifest }),\n }),\n new TrackunitIrisAppWebpackPlugin({\n nxRootDir: nxRootDir,\n appDir,\n manifest: irisAppManifest,\n }),\n new CopyWebpackPlugin({\n patterns: [\n {\n from: path.join(nxRootDir, relativeAppDir, \"assets\", \"**\", \"*(.png|.jpg|.jpeg|.webp|.md)\"),\n to: path.join(nxRootDir, \"dist\"),\n noErrorOnMissing: true,\n },\n ],\n }),\n ],\n };\n};\n"]}
|