Skip to content

Commit

Permalink
No luck. Parcel build fails :(
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-spinelli committed Oct 11, 2023
1 parent b314d34 commit 8dc69e3
Show file tree
Hide file tree
Showing 30 changed files with 2,528 additions and 3,827 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,15 @@ CodeCakeBuilder/[Rr]eleases/
/Clients/.parcel-cache/
/Samples/CKSetup/WorkingDir/
/Samples/CK.Observable.ServerSample/Logs/

# Yarn - Not using Zero-Install (.yarn/cache and .pnp.* are not commited).
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions


/Clients/*/dist/*
440 changes: 220 additions & 220 deletions Clients/.yarn/releases/yarn-3.6.0.cjs → .yarn/releases/yarn-3.6.3.cjs

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions Clients/.yarnrc.yml → .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
yarnPath: "./.yarn/releases/yarn-3.6.3.cjs"
cacheFolder: "./.yarn/cache"
enableGlobalCache: false
enableMirror: true
npmScopes:
signature:
npmRegistryServer: "https://pkgs.dev.azure.com/Signature-OpenSource/Feeds/_packaging/NetCore3/npm/registry/"

yarnPath: .yarn/releases/yarn-3.6.0.cjs
13 changes: 0 additions & 13 deletions Clients/.gitignore

This file was deleted.

Binary file added Clients/.yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion Clients/.yarn/sdks/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript",
"version": "4.8.4-sdk",
"version": "5.2.2-sdk",
"main": "./lib/typescript.js",
"type": "commonjs"
}
Binary file added Clients/ck-gen/.yarn/install-state.gz
Binary file not shown.
14 changes: 7 additions & 7 deletions Clients/ck-gen/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "@local/ck-gen",
"devDependencies": {
"typescript": "5.2.2"
},
"dependencies": {
"axios": "^1.5.1"
},
"private": true,
"files": [
"dist/"
],
"dependencies": {
"axios": "^1.5.1"
},
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"scripts": {
"build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
},
"devDependencies": {
"typescript": "^5.2.2"
}
}
}
113 changes: 113 additions & 0 deletions Clients/ck-gen/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!

__metadata:
version: 6
cacheKey: 8

"@local/ck-gen@workspace:.":
version: 0.0.0-use.local
resolution: "@local/ck-gen@workspace:."
dependencies:
axios: ^1.5.1
typescript: ^5.2.2
languageName: unknown
linkType: soft

"asynckit@npm:^0.4.0":
version: 0.4.0
resolution: "asynckit@npm:0.4.0"
checksum: 7b78c451df768adba04e2d02e63e2d0bf3b07adcd6e42b4cf665cb7ce899bedd344c69a1dcbce355b5f972d597b25aaa1c1742b52cffd9caccb22f348114f6be
languageName: node
linkType: hard

"axios@npm:^1.5.1":
version: 1.5.1
resolution: "axios@npm:1.5.1"
dependencies:
follow-redirects: ^1.15.0
form-data: ^4.0.0
proxy-from-env: ^1.1.0
checksum: 4444f06601f4ede154183767863d2b8e472b4a6bfc5253597ed6d21899887e1fd0ee2b3de792ac4f8459fe2e359d2aa07c216e45fd8b9e4e0688a6ebf48a5a8d
languageName: node
linkType: hard

"combined-stream@npm:^1.0.8":
version: 1.0.8
resolution: "combined-stream@npm:1.0.8"
dependencies:
delayed-stream: ~1.0.0
checksum: 49fa4aeb4916567e33ea81d088f6584749fc90c7abec76fd516bf1c5aa5c79f3584b5ba3de6b86d26ddd64bae5329c4c7479343250cfe71c75bb366eae53bb7c
languageName: node
linkType: hard

"delayed-stream@npm:~1.0.0":
version: 1.0.0
resolution: "delayed-stream@npm:1.0.0"
checksum: 46fe6e83e2cb1d85ba50bd52803c68be9bd953282fa7096f51fc29edd5d67ff84ff753c51966061e5ba7cb5e47ef6d36a91924eddb7f3f3483b1c560f77a0020
languageName: node
linkType: hard

"follow-redirects@npm:^1.15.0":
version: 1.15.3
resolution: "follow-redirects@npm:1.15.3"
peerDependenciesMeta:
debug:
optional: true
checksum: 584da22ec5420c837bd096559ebfb8fe69d82512d5585004e36a3b4a6ef6d5905780e0c74508c7b72f907d1fa2b7bd339e613859e9c304d0dc96af2027fd0231
languageName: node
linkType: hard

"form-data@npm:^4.0.0":
version: 4.0.0
resolution: "form-data@npm:4.0.0"
dependencies:
asynckit: ^0.4.0
combined-stream: ^1.0.8
mime-types: ^2.1.12
checksum: 01135bf8675f9d5c61ff18e2e2932f719ca4de964e3be90ef4c36aacfc7b9cb2fceb5eca0b7e0190e3383fe51c5b37f4cb80b62ca06a99aaabfcfd6ac7c9328c
languageName: node
linkType: hard

"mime-db@npm:1.52.0":
version: 1.52.0
resolution: "mime-db@npm:1.52.0"
checksum: 0d99a03585f8b39d68182803b12ac601d9c01abfa28ec56204fa330bc9f3d1c5e14beb049bafadb3dbdf646dfb94b87e24d4ec7b31b7279ef906a8ea9b6a513f
languageName: node
linkType: hard

"mime-types@npm:^2.1.12":
version: 2.1.35
resolution: "mime-types@npm:2.1.35"
dependencies:
mime-db: 1.52.0
checksum: 89a5b7f1def9f3af5dad6496c5ed50191ae4331cc5389d7c521c8ad28d5fdad2d06fd81baf38fed813dc4e46bb55c8145bb0ff406330818c9cf712fb2e9b3836
languageName: node
linkType: hard

"proxy-from-env@npm:^1.1.0":
version: 1.1.0
resolution: "proxy-from-env@npm:1.1.0"
checksum: ed7fcc2ba0a33404958e34d95d18638249a68c430e30fcb6c478497d72739ba64ce9810a24f53a7d921d0c065e5b78e3822759800698167256b04659366ca4d4
languageName: node
linkType: hard

"typescript@npm:^5.2.2":
version: 5.2.2
resolution: "typescript@npm:5.2.2"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 7912821dac4d962d315c36800fe387cdc0a6298dba7ec171b350b4a6e988b51d7b8f051317786db1094bd7431d526b648aba7da8236607febb26cf5b871d2d3c
languageName: node
linkType: hard

"typescript@patch:typescript@^5.2.2#~builtin<compat/typescript>":
version: 5.2.2
resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin<compat/typescript>::version=5.2.2&hash=f3b441"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 0f4da2f15e6f1245e49db15801dbee52f2bbfb267e1c39225afdab5afee1a72839cd86000e65ee9d7e4dfaff12239d28beaf5ee431357fcced15fb08583d72ca
languageName: node
linkType: hard
7 changes: 4 additions & 3 deletions Clients/ck-observable-domain-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"source": "src/index.html",
"browserslist": "> 0.5%, last 2 versions, not dead",
"scripts": {
"test": "",
"build-old": "cd ../ck-observable-domain && yarn tsc && echo 'ck-observable-domain built.' && cd ../ck-observable-domain-mqtt && yarn && yarn tsc && echo 'ck-observable-domain-mqtt built.'&& cd ../ck-observable-domain-signalr && yarn && yarn tsc && echo 'ck-observable-domain-signalr built.' && cd ../ck-observable-domain-demo && yarn && tsc --noEmit && parcel build --no-autoinstall && echo 'ck-observable-domain-demo built.'",
"build-old": "cd ../ck-observable-domain && yarn build && cd ../ck-observable-domain-mqtt && yarn build && cd ../ck-observable-domain-signalr && yarn build && cd ../ck-observable-domain-demo && yarn && tsc --noEmit && parcel build --no-autoinstall",
"parcel": "parcel build --no-autoinstall",
"build": "echo 'ck-observable-domain-demo built disabled.'",
"start": "parcel",
"clean": "rimraf dist"
Expand All @@ -17,7 +17,8 @@
"@signature-code/ck-observable-domain-signalr": "workspace:*"
},
"devDependencies": {
"parcel": "2.9.3",
"axios": "^1.5.1",
"parcel": "2.10.0",
"rimraf": "^3.0.2",
"typescript": "5.2.2"
}
Expand Down
9 changes: 5 additions & 4 deletions Clients/ck-observable-domain-demo/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import axios, { Axios } from "axios";
import axios from "axios";
import { MqttObservableLeagueDomainService } from "@signature-code/ck-observable-domain-mqtt"
import { ObservableDomainClient } from "@signature-code/ck-observable-domain";
import { SignalRObservableWatcherStartOrRestartCommand, SliderCommand, HttpCrisEndpoint } from "@local/ck-gen";
import { SignalRObservableLeagueDomainService } from "@signature-code/ck-observable-domain-signalr";

const crisAxios = axios.create();
const crisEndpoint = new HttpCrisEndpoint(crisAxios, "http://localhost:5000/.cris");

Expand All @@ -15,8 +16,8 @@ export async function startPage(): Promise<void> {
mqttOdClient.start();
const signalrOdClient = new ObservableDomainClient(signalROdDriver);
signalrOdClient.start();
const mqttOdObs = await mqttOdClient.listenToDomain("Test-Domain");
const signalROdObs = await signalrOdClient.listenToDomain("Test-Domain");
const mqttOdObs = await mqttOdClient.listenToDomainAsync("Test-Domain");
const signalROdObs = await signalrOdClient.listenToDomainAsync("Test-Domain");
const left = document.getElementById("slider-left") as HTMLInputElement;
const right = document.getElementById("slider-right") as HTMLInputElement;

Expand All @@ -33,7 +34,7 @@ export async function startPage(): Promise<void> {
}

export async function sliderUpdate(sliderValue): Promise<void> {
crisEndpoint.send<void>(SliderCommand.create(Number(sliderValue)));
crisEndpoint.sendAsync<void>(SliderCommand.create(Number(sliderValue)));
}

startPage();
Expand Down
1 change: 0 additions & 1 deletion Clients/ck-observable-domain-mqtt/README.md

This file was deleted.

10 changes: 4 additions & 6 deletions Clients/ck-observable-domain-mqtt/package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
{
"name": "@signature-code/ck-observable-domain-mqtt",
"version": "0.0.0-0",
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"scripts": {
"test": "",
"build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
"clean": "rimraf dist"
},
"dependencies": {
"@local/ck-gen": "workspace:*",
"@signature-code/ck-observable-domain": "workspace:*",
"axios": "^1.5.1",
"axios": "1.5.1",
"mqtt": "5.1.2"
},
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^18.11.2",
"mocha": "^8.0.1",
"@types/node": "^20.8.4",
"rimraf": "^3.0.2",
"typescript": "5.2.2"
"typescript": "^5.2.2"
}
}
8 changes: 4 additions & 4 deletions Clients/ck-observable-domain-mqtt/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class MqttObservableLeagueDomainService implements IObservableDomainLeagu
this.clientId = "od-watcher-" + crypto.randomUUID();
}

async startListening(domainsNames: { domainName: string; transactionCount: number; }[]): Promise<{ [domainName: string]: WatchEvent; }> {
public async startListeningAsync(domainsNames: { domainName: string; transactionCount: number; }[]): Promise<{ [domainName: string]: WatchEvent; }> {
const res: { [domainName: string]: WatchEvent; } = {};
const promises = domainsNames.map(async element => {
const poco = MQTTObservableWatcherStartOrRestartCommand.create(this.clientId, element.domainName, element.transactionCount);
Expand All @@ -29,7 +29,7 @@ export class MqttObservableLeagueDomainService implements IObservableDomainLeagu
return res;
}

public async start(): Promise<boolean> {
public async startAsync(): Promise<boolean> {
try {
console.log(`connecting to mqtt with client id ${this.clientId}...`)
this.client = await connectAsync(this.serverUrl, {
Expand Down Expand Up @@ -72,8 +72,8 @@ export class MqttObservableLeagueDomainService implements IObservableDomainLeagu
public onClose(eventHandler: (error: Error | undefined) => void): void {
this.closeHandlers.push(eventHandler);
}
public async stop(): Promise<void> {
await this.client.end(true);
public stopAsync(): Promise<void> {
return this.client.endAsync(true);
}
}

5 changes: 0 additions & 5 deletions Clients/ck-observable-domain-mqtt/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,5 @@
},
"include": [
"src/**/*"
],
"exclude": [
".vscode",
"node_modules",
"spec"
]
}
8 changes: 2 additions & 6 deletions Clients/ck-observable-domain-signalr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,16 @@
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"scripts": {
"test": "",
"build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
"clean": "rimraf dist"
},
"dependencies": {
"@local/ck-gen": "workspace:*",
"@microsoft/signalr": "^6.0.10",
"@microsoft/signalr": "6.0.23",
"@signature-code/ck-observable-domain": "workspace:*"
},
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^18.11.2",
"mocha": "^8.0.1",
"rimraf": "^3.0.2",
"typescript": "5.2.2"
"typescript": "^5.2.2"
}
}
6 changes: 3 additions & 3 deletions Clients/ck-observable-domain-signalr/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class SignalRObservableLeagueDomainService implements IObservableDomainLe
.build();
}

public async start(): Promise<boolean> {
public async startAsync(): Promise<boolean> {
try {
await this.connection.start();
return true;
Expand All @@ -30,7 +30,7 @@ export class SignalRObservableLeagueDomainService implements IObservableDomainLe
}
}

public async startListening(domainsNames: { domainName: string, transactionCount: number }[]): Promise<{ [domainName: string]: WatchEvent }> {
public async startListeningAsync(domainsNames: { domainName: string, transactionCount: number }[]): Promise<{ [domainName: string]: WatchEvent }> {
const res: { [domainName: string]: WatchEvent; } = {};
const promises = domainsNames.map(async element => {
const poco = SignalRObservableWatcherStartOrRestartCommand.create(this.connection.connectionId!, element.domainName, element.transactionCount);
Expand All @@ -56,7 +56,7 @@ export class SignalRObservableLeagueDomainService implements IObservableDomainLe
this.connection.onclose(eventHandler);
}

public async stop(): Promise<void> {
public async stopAsync(): Promise<void> {
await this.connection.stop();
}
}
1 change: 0 additions & 1 deletion Clients/ck-observable-domain/LICENSE

This file was deleted.

Loading

0 comments on commit 8dc69e3

Please sign in to comment.