@trackunit/iris-app-build-utilities 0.0.174 → 0.0.176
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 +10 -0
- package/package.json +4 -4
- package/src/getGraphqlCodeGenConfig.d.ts +5 -0
- package/src/getGraphqlCodeGenConfig.js +40 -0
- package/src/getGraphqlCodeGenConfig.js.map +1 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.176](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.175...iris-app-build-utilities/0.0.176) (2023-06-22)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `css-components` updated to version `0.0.359`
|
|
10
|
+
## [0.0.175](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.174...iris-app-build-utilities/0.0.175) (2023-06-22)
|
|
11
|
+
|
|
12
|
+
### Dependency Updates
|
|
13
|
+
|
|
14
|
+
* `css-components` updated to version `0.0.358`
|
|
5
15
|
## [0.0.174](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.173...iris-app-build-utilities/0.0.174) (2023-06-22)
|
|
6
16
|
|
|
7
17
|
### 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.176",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"engines": {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"@react-spring/web": "9.6.0",
|
|
12
12
|
"@tailwindcss/container-queries": "0.1.1",
|
|
13
13
|
"csstype": "3.1.1",
|
|
14
|
+
"graphql": "15.8.0",
|
|
14
15
|
"i18next": "21.10.0",
|
|
15
16
|
"jest-canvas-mock": "2.4.0",
|
|
16
17
|
"moment-timezone": "0.5.39",
|
|
@@ -25,12 +26,11 @@
|
|
|
25
26
|
"@floating-ui/react": "0.22.2",
|
|
26
27
|
"@heroicons/react": "2.0.16",
|
|
27
28
|
"@trackunit/css-class-variance-utilities": "0.0.5",
|
|
28
|
-
"@trackunit/css-
|
|
29
|
-
"@trackunit/css-components": "0.0.357",
|
|
29
|
+
"@trackunit/css-components": "0.0.359",
|
|
30
30
|
"@trackunit/css-core": "0.0.85",
|
|
31
|
-
"@trackunit/css-tailwind-custom-properties-plugin": "0.0.22",
|
|
32
31
|
"@trackunit/iris-app-api": "0.0.102",
|
|
33
32
|
"@trackunit/tailwind-styled-components": "0.0.57",
|
|
33
|
+
"@trackunit/ui-design-tokens": "0.0.69",
|
|
34
34
|
"@trackunit/ui-icons": "0.0.66",
|
|
35
35
|
"camelcase": "5.3.1",
|
|
36
36
|
"capitalize": "2.0.4",
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGraphqlCodegenConfig = void 0;
|
|
4
|
+
const fs_1 = require("fs");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
/**
|
|
7
|
+
* This function returns the codegen config for trackunit public graphql-codegen.
|
|
8
|
+
*/
|
|
9
|
+
const getGraphqlCodegenConfig = (nxLibPath) => {
|
|
10
|
+
const schemaFilePath = (0, path_1.join)(__dirname, "..", "..", "..", "..", "libs", "api", "public-gql-schema", "src", "public-schema.gql");
|
|
11
|
+
const schemaUrlOrPath = (0, fs_1.existsSync)(schemaFilePath) ? schemaFilePath : "https://iris.trackunit.com/api/graphql/";
|
|
12
|
+
const generates = {};
|
|
13
|
+
generates[`${nxLibPath}/src/generated/graphql-api/`] = {
|
|
14
|
+
preset: "client",
|
|
15
|
+
presetConfig: {
|
|
16
|
+
fragmentMasking: { unmaskFunctionName: "getFragmentData" },
|
|
17
|
+
// We need to do this later after scrubbing
|
|
18
|
+
enumsAsConst: false,
|
|
19
|
+
noExport: true,
|
|
20
|
+
avoidOptionals: true,
|
|
21
|
+
noNamespaces: true,
|
|
22
|
+
namingConvention: {
|
|
23
|
+
typeNames: "keep",
|
|
24
|
+
enumValues: "pascal-case#pascalCase",
|
|
25
|
+
},
|
|
26
|
+
scalars: {
|
|
27
|
+
Date: "Date",
|
|
28
|
+
DateTime: "Date",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
return {
|
|
33
|
+
schema: schemaUrlOrPath,
|
|
34
|
+
documents: [`${nxLibPath}/src/**/*.tsx`, `${nxLibPath}/src/**/*.graphql`],
|
|
35
|
+
ignoreNoDocuments: true,
|
|
36
|
+
generates,
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
exports.getGraphqlCodegenConfig = getGraphqlCodegenConfig;
|
|
40
|
+
//# sourceMappingURL=getGraphqlCodeGenConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGraphqlCodeGenConfig.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getGraphqlCodeGenConfig.ts"],"names":[],"mappings":";;;AACA,2BAAgC;AAChC,+BAA4B;AAE5B;;GAEG;AACI,MAAM,uBAAuB,GAAyC,CAAC,SAAiB,EAAE,EAAE;IACjG,MAAM,cAAc,GAAG,IAAA,WAAI,EACzB,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,KAAK,EACL,mBAAmB,EACnB,KAAK,EACL,mBAAmB,CACpB,CAAC;IACF,MAAM,eAAe,GAAG,IAAA,eAAU,EAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,yCAAyC,CAAC;IAEhH,MAAM,SAAS,GAAG,EAAE,CAAC;IACrB,SAAS,CAAC,GAAG,SAAS,6BAA6B,CAAC,GAAG;QACrD,MAAM,EAAE,QAAQ;QAChB,YAAY,EAAE;YACZ,eAAe,EAAE,EAAE,kBAAkB,EAAE,iBAAiB,EAAE;YAC1D,2CAA2C;YAC3C,YAAY,EAAE,KAAK;YACnB,QAAQ,EAAE,IAAI;YACd,cAAc,EAAE,IAAI;YACpB,YAAY,EAAE,IAAI;YAClB,gBAAgB,EAAE;gBAChB,SAAS,EAAE,MAAM;gBACjB,UAAU,EAAE,wBAAwB;aACrC;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aACjB;SACF;KACF,CAAC;IAEF,OAAO;QACL,MAAM,EAAE,eAAe;QACvB,SAAS,EAAE,CAAC,GAAG,SAAS,eAAe,EAAE,GAAG,SAAS,mBAAmB,CAAC;QACzE,iBAAiB,EAAE,IAAI;QACvB,SAAS;KACV,CAAC;AACJ,CAAC,CAAC;AA1CW,QAAA,uBAAuB,2BA0ClC","sourcesContent":["import { CodegenConfig } from \"@graphql-codegen/cli\";\nimport { existsSync } from \"fs\";\nimport { join } from \"path\";\n\n/**\n * This function returns the codegen config for trackunit public graphql-codegen.\n */\nexport const getGraphqlCodegenConfig: (nxLibPath: string) => CodegenConfig = (nxLibPath: string) => {\n const schemaFilePath = join(\n __dirname,\n \"..\",\n \"..\",\n \"..\",\n \"..\",\n \"libs\",\n \"api\",\n \"public-gql-schema\",\n \"src\",\n \"public-schema.gql\"\n );\n const schemaUrlOrPath = existsSync(schemaFilePath) ? schemaFilePath : \"https://iris.trackunit.com/api/graphql/\";\n\n const generates = {};\n generates[`${nxLibPath}/src/generated/graphql-api/`] = {\n preset: \"client\",\n presetConfig: {\n fragmentMasking: { unmaskFunctionName: \"getFragmentData\" },\n // We need to do this later after scrubbing\n enumsAsConst: false,\n noExport: true,\n avoidOptionals: true,\n noNamespaces: true,\n namingConvention: {\n typeNames: \"keep\",\n enumValues: \"pascal-case#pascalCase\",\n },\n scalars: {\n Date: \"Date\",\n DateTime: \"Date\",\n },\n },\n };\n\n return {\n schema: schemaUrlOrPath,\n documents: [`${nxLibPath}/src/**/*.tsx`, `${nxLibPath}/src/**/*.graphql`],\n ignoreNoDocuments: true, // for better experience with the watcher\n generates,\n };\n};\n"]}
|
package/src/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./enableTsConfigPath";
|
|
2
2
|
export * from "./getAliasesFromTsConfig";
|
|
3
3
|
export * from "./getExposedExtensions";
|
|
4
|
+
export * from "./getGraphqlCodeGenConfig";
|
|
4
5
|
export * from "./getSharedDependencies";
|
|
5
6
|
export * from "./getTailwindContentForApp";
|
|
6
7
|
export * from "./getTileWebpackDevServer";
|
package/src/index.js
CHANGED
|
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./enableTsConfigPath"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./getAliasesFromTsConfig"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./getExposedExtensions"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./getGraphqlCodeGenConfig"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./getSharedDependencies"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./getTailwindContentForApp"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./getTileWebpackDevServer"), exports);
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,mEAAyC;AACzC,iEAAuC;AACvC,kEAAwC;AACxC,qEAA2C;AAC3C,oEAA0C","sourcesContent":["export * from \"./enableTsConfigPath\";\nexport * from \"./getAliasesFromTsConfig\";\nexport * from \"./getExposedExtensions\";\nexport * from \"./getSharedDependencies\";\nexport * from \"./getTailwindContentForApp\";\nexport * from \"./getTileWebpackDevServer\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,mEAAyC;AACzC,iEAAuC;AACvC,oEAA0C;AAC1C,kEAAwC;AACxC,qEAA2C;AAC3C,oEAA0C","sourcesContent":["export * from \"./enableTsConfigPath\";\nexport * from \"./getAliasesFromTsConfig\";\nexport * from \"./getExposedExtensions\";\nexport * from \"./getGraphqlCodeGenConfig\";\nexport * from \"./getSharedDependencies\";\nexport * from \"./getTailwindContentForApp\";\nexport * from \"./getTileWebpackDevServer\";\n"]}
|