Skip to content

Commit

Permalink
fix: added nx caching
Browse files Browse the repository at this point in the history
  • Loading branch information
DanyalAslam committed Nov 26, 2024
1 parent a69a980 commit 0f36559
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 19 deletions.
9 changes: 3 additions & 6 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"default": {
"runner": "@nrwl/nx-cloud",
"options": {
"cacheableOperations": ["compile", "lint", "test"],
"cacheableOperations": ["build:quick", "compile", "lint", "test"],
"accessToken": "",
"canTrackAnalytics": false,
"showUsageWarnings": true
Expand All @@ -16,14 +16,11 @@
},
"targetDefaults": {
"build:quick": {
"dependsOn": ["compile"],
"dependsOn": ["^compile"],
"outputs": ["{projectRoot}/lib"]
},
"dev": {
"dependsOn": ["compile"],
"outputs": ["{projectRoot}/lib"]
},
"compile": {
"dependsOn": ["^compile"],
"outputs": ["{projectRoot}/lib"]
},
"test": {
Expand Down
12 changes: 6 additions & 6 deletions packages/language-server/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export type ServerInitializationOptions = {
logLevel?: LogLevel;
};

export type FetchResponse<T = unknown> = {
ok: boolean;
status: number;
json: () => Promise<T>;
};
// export type FetchResponse<T = unknown> = {
// ok: boolean;
// status: number;
// json: () => Promise<T>;
// };

export type Fetcher = (url: string) => Promise<FetchResponse>;
// export type Fetcher = (url: string) => Promise<FetchResponse>;
4 changes: 3 additions & 1 deletion test-packages/test-utils/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ import {
} from "@ui5-language-assistant/semantic-model-types";
import { XMLAttribute, XMLElement } from "@xml-tools/ast";
import { UI5XMLViewCompletion } from "@ui5-language-assistant/xml-views-completion";
import { FetchResponse } from "@ui5-language-assistant/language-server";
import {
FetchResponse
} from "@ui5-language-assistant/logic-utils";
import { DEFAULT_UI5_VERSION } from "@ui5-language-assistant/constant";

// easily build (partial) data structures for tests with mandatory "name" field
Expand Down
5 changes: 0 additions & 5 deletions test-packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
"license": "Apache-2.0",
"typings": "./api.d.ts",
"dependencies": {
"@ui5-language-assistant/constant": "workspace:*",
"@ui5-language-assistant/language-server": "workspace:*",
"@ui5-language-assistant/semantic-model-types": "4.0.11",
"@ui5-language-assistant/test-utils": "workspace:*",
"@ui5-language-assistant/xml-views-completion": "workspace:*",
"@xml-tools/ast": "5.0.0",
"chai": "4.2.0",
"deep-equal-in-any-order": "1.0.28",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { readdirSync } from "fs";
import { readJsonSync, readJson, existsSync } from "fs-extra";
import { resolve, dirname } from "path";
import { filter, reduce, has, forEach, get } from "lodash";
import { FetchResponse } from "@ui5-language-assistant/language-server";
import {
FetchResponse
} from "@ui5-language-assistant/logic-utils";
import {
UI5Framework,
UI5SemanticModel,
Expand Down

0 comments on commit 0f36559

Please sign in to comment.