@trackunit/iris-app-webpack-plugin 1.11.51 → 1.11.54
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
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## 1.11.54 (2026-02-26)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated iris-app-build-utilities to 1.12.54
|
|
6
|
+
- Updated iris-app-api to 1.14.49
|
|
7
|
+
|
|
8
|
+
## 1.11.53 (2026-02-26)
|
|
9
|
+
|
|
10
|
+
### 🧱 Updated Dependencies
|
|
11
|
+
|
|
12
|
+
- Updated iris-app-build-utilities to 1.12.53
|
|
13
|
+
- Updated iris-app-api to 1.14.48
|
|
14
|
+
|
|
15
|
+
## 1.11.52 (2026-02-26)
|
|
16
|
+
|
|
17
|
+
### 🧱 Updated Dependencies
|
|
18
|
+
|
|
19
|
+
- Updated iris-app-build-utilities to 1.12.52
|
|
20
|
+
- Updated iris-app-api to 1.14.47
|
|
21
|
+
|
|
1
22
|
## 1.11.51 (2026-02-26)
|
|
2
23
|
|
|
3
24
|
### 🧱 Updated Dependencies
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-webpack-plugin",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.54",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24.x"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@trackunit/iris-app-build-utilities": "1.12.
|
|
10
|
+
"@trackunit/iris-app-build-utilities": "1.12.54",
|
|
11
11
|
"webpack": "5.101.3",
|
|
12
|
-
"@trackunit/iris-app-api": "1.14.
|
|
12
|
+
"@trackunit/iris-app-api": "1.14.49",
|
|
13
13
|
"tslib": "^2.6.2"
|
|
14
14
|
},
|
|
15
15
|
"types": "./src/index.d.ts",
|
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-webpack-plugin/src/index.ts"],"names":[],"mappings":";;;AAAA,qFAAoF;AAA3E,8IAAA,6BAA6B,OAAA","sourcesContent":["export { TrackunitIrisAppWebpackPlugin } from \"./lib/TrackunitIrisAppWebpackPlugin\";\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TrackunitIrisAppWebpackPlugin.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-webpack-plugin/src/lib/TrackunitIrisAppWebpackPlugin.ts"],"names":[],"mappings":";;;;AACA,kFAAqH;AACrH,+CAAyB;AACzB,mDAA6B;AAQ7B;;GAEG;AACH,MAAa,6BAA6B;IACxC;;;;;;OAMG;IACH,YAA2B,OAA6C;QAA7C,YAAO,GAAP,OAAO,CAAsC;IAAG,CAAC;IAE5E;;OAEG;IACI,KAAK,CAAC,QAAqB;QAChC,MAAM,UAAU,GAAG,6BAA6B,CAAC,IAAI,CAAC;QAEtD,oEAAoE;QACpE,0DAA0D;QAC1D,uEAAuE;QACvE,MAAM,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC;QAE7B,kEAAkE;QAClE,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;QAEhC,gEAAgE;QAChE,6CAA6C;QAC7C,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;QAEtC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE,KAAK,CAAC,EAAE;YAClD,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,EAAE,CAAC;gBACvB,UAAU,CAAC,GAAG,EAAE;oBACd,IAAA,kCAAO,EACL,oGAAo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AAC,CAAC;gBAE7F,MAAM,WAAW,GAAG,EAAE,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,eAAe,EAAE,MAAM,CAAC,CAAC;gBACnF,WAAW,CAAC,SAAS,CAAC,cAAc,EAAE,IAAI,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;gBAElE,MAAM,QAAQ,GAAG,iEAAiE,CAAC;gBACnF,MAAM,IAAI,GAAG,IAAA,0CAAe,EAAC;oBAC3B,QAAQ,EAAE,YAAY;oBACtB,WAAW;oBACX,QAAQ;iBACT,CAAC,CAAC;gBAEH,oEAAoE;gBACpE,oDAAoD;gBACpD,WAAW,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;YAC3D,CAAC,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAzFD,sEAyFC","sourcesContent":["import { IrisAppManifest } from \"@trackunit/iris-app-api\";\nimport { logInfo, updateCustomFields, updateExtensions, updateIndexHtml } from \"@trackunit/iris-app-build-utilities\";\nimport * as fs from \"fs\";\nimport * as path from \"path\";\nimport * as wp from \"webpack\";\ninterface TrackunitIrisAppWebpackPluginOptions {\n nxRootDir: string;\n appDir: string;\n manifest?: IrisAppManifest;\n}\n\n/**\n * Webpack plugin for generating a manifest.json file and index.html file for Iris Apps.\n */\nexport class TrackunitIrisAppWebpackPlugin {\n /**\n * Constructor for the TrackunitIrisAppWebpackPlugin.\n *\n * @param options - The options for the TrackunitIrisAppWebpackPlugin.\n * @param {string} options.appDir - The directory path where the app resides.\n * @param {IrisAppManifest} options.manifest - The manifest for the app.\n */\n public constructor(private options: TrackunitIrisAppWebpackPluginOptions) {}\n\n /**\n Webpack plugin for generating a Markdown file from app manifest and index HTML file.\n */\n public apply(compiler: wp.Compiler): void {\n const pluginName = TrackunitIrisAppWebpackPlugin.name;\n\n // webpack module instance can be accessed from the compiler object,\n // this ensures that correct version of the module is used\n // (do not require/import the webpack or any symbols from it directly).\n const { webpack } = compiler;\n\n // Compilation object gives us reference to some useful constants.\n const { Compilation } = webpack;\n\n // RawSource is one of the \"sources\" classes that should be used\n // to represent asset sources in compilation.\n const { RawSource } = webpack.sources;\n\n compiler.hooks.done.tap(\"AfterBuildPlugin\", stats => {\n if (!stats.hasErrors()) {\n setTimeout(() => {\n logInfo(\n \"\\n✨ Iris App is now started, check it out ✨\\nhttps://new.manager.trackunit.com/goto/iris-app-dev\\n\"\n );\n }, 0);\n }\n });\n\n // Tapping to the \"thisCompilation\" hook in order to further tap\n // to the compilation process on an earlier stage.\n compiler.hooks.thisCompilation.tap(pluginName, (compilation: wp.Compilation) => {\n // Tapping to the assets processing pipeline on a specific stage.\n compilation.contextDependencies.add(this.options.appDir);\n compilation.hooks.processAssets.tap(\n {\n name: pluginName,\n\n // Using one of the later asset processing stages to ensure\n // that all assets were already added to the compilation by other plugins.\n stage: Compilation.PROCESS_ASSETS_STAGE_DERIVED,\n },\n async _ => {\n // \"assets\" is an object that contains all assets\n // in the compilation, the keys of the object are pathnames of the assets\n // and the values are file sources.\n\n // Iterating over all the assets and\n // generating content for our Markdown file.\n if (!this.options.manifest) {\n throw Error(\"you must provide a app manifest\");\n }\n const manifestJson = this.options.manifest;\n\n const appSrc = path.join(this.options.appDir, \"src\");\n manifestJson.customFieldDefinitions = updateCustomFields(\n this.options.manifest.customFieldDefinitions,\n appSrc\n );\n\n manifestJson.extensions = updateExtensions(this.options.manifest.extensions);\n compilation.emitAsset(\"manifest.json\", new RawSource(JSON.stringify(manifestJson, null, 2)));\n\n const packageJson = fs.readFileSync(`${this.options.appDir}/package.json`, \"utf8\");\n compilation.emitAsset(\"package.json\", new RawSource(packageJson));\n\n const devtools = `<script nonce=\"{{nonce}}\" src=\"http://localhost:8097\"></script>`;\n const html = updateIndexHtml({\n manifest: manifestJson,\n packageJson,\n devtools,\n });\n\n // Adding new asset to the compilation, so it would be automatically\n // generated by the webpack in the output directory.\n compilation.emitAsset(\"index.html\", new RawSource(html));\n }\n );\n });\n }\n}\n"]}
|