@trackunit/iris-app-build-utilities 0.0.82 → 0.0.85
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,15 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.85](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.84...iris-app-build-utilities/0.0.85) (2023-03-08)
|
|
6
|
+
|
|
7
|
+
## [0.0.84](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.83...iris-app-build-utilities/0.0.84) (2023-03-06)
|
|
8
|
+
|
|
9
|
+
## [0.0.83](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.82...iris-app-build-utilities/0.0.83) (2023-03-06)
|
|
10
|
+
|
|
11
|
+
### Dependency Updates
|
|
12
|
+
|
|
13
|
+
* `iris-app-api` updated to version `0.0.77`
|
|
5
14
|
## [0.0.82](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.81...iris-app-build-utilities/0.0.82) (2023-02-02)
|
|
6
15
|
|
|
7
16
|
### Dependency Updates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-build-utilities",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.85",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tsconfig-paths": "3.14.1",
|
|
10
10
|
"typescript": "4.9.4",
|
|
11
|
-
"@trackunit/iris-app-api": "0.0.
|
|
11
|
+
"@trackunit/iris-app-api": "0.0.77",
|
|
12
12
|
"node-fetch": "2.6.8",
|
|
13
13
|
"tslib": "2.4.1"
|
|
14
14
|
},
|
|
@@ -10,10 +10,13 @@ const path = tslib_1.__importStar(require("path"));
|
|
|
10
10
|
* @returns {Exposes} Exposes object for module federation.
|
|
11
11
|
*/
|
|
12
12
|
const getTailwindContentForApp = (options) => {
|
|
13
|
+
const rootDir = options.nxRootDir;
|
|
14
|
+
const appDir = options.appsDir ? options.appsDir : "apps";
|
|
15
|
+
const appPath = path.join(rootDir, appDir, options.app);
|
|
13
16
|
return [
|
|
14
|
-
...(0, tailwind_1.createGlobPatternsForDependencies)(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
...(0, tailwind_1.createGlobPatternsForDependencies)(appPath, "!(*.stories|*.spec).{tsx,jsx,ts,js,html}"),
|
|
18
|
+
rootDir + "/node_modules/@trackunit/react-components/index.{js,css}",
|
|
19
|
+
rootDir + "/node_modules/@trackunit/custom-field-components/index.{js,css}",
|
|
17
20
|
];
|
|
18
21
|
};
|
|
19
22
|
exports.getTailwindContentForApp = getTailwindContentForApp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTailwindContentForApp.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getTailwindContentForApp.ts"],"names":[],"mappings":";;;;AAAA,mDAAyE;AACzE,mDAA6B;
|
|
1
|
+
{"version":3,"file":"getTailwindContentForApp.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getTailwindContentForApp.ts"],"names":[],"mappings":";;;;AAAA,mDAAyE;AACzE,mDAA6B;AAqB7B;;;;GAIG;AACI,MAAM,wBAAwB,GAAG,CAAC,OAAgC,EAAY,EAAE;IACrF,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC;IAClC,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1D,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IACxD,OAAO;QACL,GAAG,IAAA,4CAAiC,EAAC,OAAO,EAAE,0CAA0C,CAAC;QACzF,OAAO,GAAG,0DAA0D;QACpE,OAAO,GAAG,iEAAiE;KAC5E,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,wBAAwB,4BASnC","sourcesContent":["import { createGlobPatternsForDependencies } from \"@nrwl/react/tailwind\";\nimport * as path from \"path\";\n\ninterface ITailwindContentOptions {\n /*\n * Root of the nx repo.\n */\n nxRootDir: string;\n\n /*\n * Name of the app.\n */\n app: string;\n\n /**\n * The name of the apps folder in the nx repo.\n * (can be overridden in nx.json)\n *\n * @default apps\n */\n appsDir?: string;\n}\n/**\n * Generates a list of exposed extensions from a manifest.\n * @param manifest {Manifest} The manifest to get the exposed extensions from.\n * @returns {Exposes} Exposes object for module federation.\n */\nexport const getTailwindContentForApp = (options: ITailwindContentOptions): string[] => {\n const rootDir = options.nxRootDir;\n const appDir = options.appsDir ? options.appsDir : \"apps\";\n const appPath = path.join(rootDir, appDir, options.app);\n return [\n ...createGlobPatternsForDependencies(appPath, \"!(*.stories|*.spec).{tsx,jsx,ts,js,html}\"),\n rootDir + \"/node_modules/@trackunit/react-components/index.{js,css}\",\n rootDir + \"/node_modules/@trackunit/custom-field-components/index.{js,css}\",\n ];\n};\n"]}
|