From 5dd10920cc420bcb4ae7b3f0996f854a7b297261 Mon Sep 17 00:00:00 2001 From: Artur Date: Wed, 13 Sep 2023 16:45:14 +0300 Subject: [PATCH] chore: Rename folder to follow the same pattern for all modules (#1262) The folder is the name after @hilla/ in the npm package name --- package-lock.json | 33 ++++++++++++++++++- .../ts/{hilla-frontend => frontend}/.eslintrc | 0 .../.lintstagedrc.js | 0 .../ts/{hilla-frontend => frontend}/LICENSE | 0 .../ts/{hilla-frontend => frontend}/README.md | 0 .../{hilla-frontend => frontend}/package.json | 0 .../src/Authentication.ts | 0 .../src/Connect.ts | 0 .../src/CookieManager.ts | 0 .../src/CsrfUtils.ts | 0 .../src/EndpointErrors.ts | 0 .../src/FluxConnection.ts | 0 .../src/FluxMessages.ts | 0 .../{hilla-frontend => frontend}/src/index.ts | 0 .../src/types.d.ts | 0 .../test/Authentication.test.ts | 0 .../test/Connect.test.ts | 0 .../test/CookieManager.test.ts | 0 .../test/FluxConnection.test.ts | 0 .../test/SpringCsrfTestUtils.test.ts | 0 .../test/mocks/FluxConnection.ts | 0 .../test/mocks/atmosphere.ts | 0 .../test/mocks/config.json | 0 .../tsconfig.build.json | 0 .../tsconfig.json | 0 25 files changed, 32 insertions(+), 1 deletion(-) rename packages/ts/{hilla-frontend => frontend}/.eslintrc (100%) rename packages/ts/{hilla-frontend => frontend}/.lintstagedrc.js (100%) rename packages/ts/{hilla-frontend => frontend}/LICENSE (100%) rename packages/ts/{hilla-frontend => frontend}/README.md (100%) rename packages/ts/{hilla-frontend => frontend}/package.json (100%) rename packages/ts/{hilla-frontend => frontend}/src/Authentication.ts (100%) rename packages/ts/{hilla-frontend => frontend}/src/Connect.ts (100%) rename packages/ts/{hilla-frontend => frontend}/src/CookieManager.ts (100%) rename packages/ts/{hilla-frontend => frontend}/src/CsrfUtils.ts (100%) rename packages/ts/{hilla-frontend => frontend}/src/EndpointErrors.ts (100%) rename packages/ts/{hilla-frontend => frontend}/src/FluxConnection.ts (100%) rename packages/ts/{hilla-frontend => frontend}/src/FluxMessages.ts (100%) rename packages/ts/{hilla-frontend => frontend}/src/index.ts (100%) rename packages/ts/{hilla-frontend => frontend}/src/types.d.ts (100%) rename packages/ts/{hilla-frontend => frontend}/test/Authentication.test.ts (100%) rename packages/ts/{hilla-frontend => frontend}/test/Connect.test.ts (100%) rename packages/ts/{hilla-frontend => frontend}/test/CookieManager.test.ts (100%) rename packages/ts/{hilla-frontend => frontend}/test/FluxConnection.test.ts (100%) rename packages/ts/{hilla-frontend => frontend}/test/SpringCsrfTestUtils.test.ts (100%) rename packages/ts/{hilla-frontend => frontend}/test/mocks/FluxConnection.ts (100%) rename packages/ts/{hilla-frontend => frontend}/test/mocks/atmosphere.ts (100%) rename packages/ts/{hilla-frontend => frontend}/test/mocks/config.json (100%) rename packages/ts/{hilla-frontend => frontend}/tsconfig.build.json (100%) rename packages/ts/{hilla-frontend => frontend}/tsconfig.json (100%) diff --git a/package-lock.json b/package-lock.json index 1437bafc2f..c63d69d291 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1098,7 +1098,7 @@ "link": true }, "node_modules/@hilla/frontend": { - "resolved": "packages/ts/hilla-frontend", + "resolved": "packages/ts/frontend", "link": true }, "node_modules/@hilla/generator-typescript-cli": { @@ -19728,6 +19728,36 @@ "lit": "^2.3.0" } }, + "packages/ts/frontend": { + "version": "2.2.0-beta1", + "license": "Apache-2.0", + "dependencies": { + "@vaadin/common-frontend": "^0.0.18", + "atmosphere.js": "^3.1.3", + "js-cookie": "^3.0.5" + }, + "devDependencies": { + "@esm-bundle/chai": "^4.3.4-fix.0", + "@open-wc/testing": "^3.2.0", + "@types/atmosphere.js": "^2.1.3", + "@types/chai": "^4.3.5", + "@types/chai-as-promised": "^7.1.5", + "@types/js-cookie": "^3.0.3", + "@types/mocha": "^10.0.1", + "@types/sinon": "^10.0.16", + "@types/sinon-chai": "^3.2.9", + "@types/validator": "^13.11.1", + "chai-as-promised": "^7.1.1", + "chai-dom": "^1.11.0", + "fetch-mock": "^9.11.0", + "sinon": "^15.2.0", + "sinon-chai": "^3.7.0", + "typescript": "^5.1.6" + }, + "peerDependencies": { + "lit": "^2.3.0" + } + }, "packages/ts/generator-typescript-cli": { "name": "@hilla/generator-typescript-cli", "version": "2.2.0-beta1", @@ -20296,6 +20326,7 @@ "packages/ts/hilla-frontend": { "name": "@hilla/frontend", "version": "2.2.0-beta1", + "extraneous": true, "license": "Apache-2.0", "dependencies": { "@vaadin/common-frontend": "^0.0.18", diff --git a/packages/ts/hilla-frontend/.eslintrc b/packages/ts/frontend/.eslintrc similarity index 100% rename from packages/ts/hilla-frontend/.eslintrc rename to packages/ts/frontend/.eslintrc diff --git a/packages/ts/hilla-frontend/.lintstagedrc.js b/packages/ts/frontend/.lintstagedrc.js similarity index 100% rename from packages/ts/hilla-frontend/.lintstagedrc.js rename to packages/ts/frontend/.lintstagedrc.js diff --git a/packages/ts/hilla-frontend/LICENSE b/packages/ts/frontend/LICENSE similarity index 100% rename from packages/ts/hilla-frontend/LICENSE rename to packages/ts/frontend/LICENSE diff --git a/packages/ts/hilla-frontend/README.md b/packages/ts/frontend/README.md similarity index 100% rename from packages/ts/hilla-frontend/README.md rename to packages/ts/frontend/README.md diff --git a/packages/ts/hilla-frontend/package.json b/packages/ts/frontend/package.json similarity index 100% rename from packages/ts/hilla-frontend/package.json rename to packages/ts/frontend/package.json diff --git a/packages/ts/hilla-frontend/src/Authentication.ts b/packages/ts/frontend/src/Authentication.ts similarity index 100% rename from packages/ts/hilla-frontend/src/Authentication.ts rename to packages/ts/frontend/src/Authentication.ts diff --git a/packages/ts/hilla-frontend/src/Connect.ts b/packages/ts/frontend/src/Connect.ts similarity index 100% rename from packages/ts/hilla-frontend/src/Connect.ts rename to packages/ts/frontend/src/Connect.ts diff --git a/packages/ts/hilla-frontend/src/CookieManager.ts b/packages/ts/frontend/src/CookieManager.ts similarity index 100% rename from packages/ts/hilla-frontend/src/CookieManager.ts rename to packages/ts/frontend/src/CookieManager.ts diff --git a/packages/ts/hilla-frontend/src/CsrfUtils.ts b/packages/ts/frontend/src/CsrfUtils.ts similarity index 100% rename from packages/ts/hilla-frontend/src/CsrfUtils.ts rename to packages/ts/frontend/src/CsrfUtils.ts diff --git a/packages/ts/hilla-frontend/src/EndpointErrors.ts b/packages/ts/frontend/src/EndpointErrors.ts similarity index 100% rename from packages/ts/hilla-frontend/src/EndpointErrors.ts rename to packages/ts/frontend/src/EndpointErrors.ts diff --git a/packages/ts/hilla-frontend/src/FluxConnection.ts b/packages/ts/frontend/src/FluxConnection.ts similarity index 100% rename from packages/ts/hilla-frontend/src/FluxConnection.ts rename to packages/ts/frontend/src/FluxConnection.ts diff --git a/packages/ts/hilla-frontend/src/FluxMessages.ts b/packages/ts/frontend/src/FluxMessages.ts similarity index 100% rename from packages/ts/hilla-frontend/src/FluxMessages.ts rename to packages/ts/frontend/src/FluxMessages.ts diff --git a/packages/ts/hilla-frontend/src/index.ts b/packages/ts/frontend/src/index.ts similarity index 100% rename from packages/ts/hilla-frontend/src/index.ts rename to packages/ts/frontend/src/index.ts diff --git a/packages/ts/hilla-frontend/src/types.d.ts b/packages/ts/frontend/src/types.d.ts similarity index 100% rename from packages/ts/hilla-frontend/src/types.d.ts rename to packages/ts/frontend/src/types.d.ts diff --git a/packages/ts/hilla-frontend/test/Authentication.test.ts b/packages/ts/frontend/test/Authentication.test.ts similarity index 100% rename from packages/ts/hilla-frontend/test/Authentication.test.ts rename to packages/ts/frontend/test/Authentication.test.ts diff --git a/packages/ts/hilla-frontend/test/Connect.test.ts b/packages/ts/frontend/test/Connect.test.ts similarity index 100% rename from packages/ts/hilla-frontend/test/Connect.test.ts rename to packages/ts/frontend/test/Connect.test.ts diff --git a/packages/ts/hilla-frontend/test/CookieManager.test.ts b/packages/ts/frontend/test/CookieManager.test.ts similarity index 100% rename from packages/ts/hilla-frontend/test/CookieManager.test.ts rename to packages/ts/frontend/test/CookieManager.test.ts diff --git a/packages/ts/hilla-frontend/test/FluxConnection.test.ts b/packages/ts/frontend/test/FluxConnection.test.ts similarity index 100% rename from packages/ts/hilla-frontend/test/FluxConnection.test.ts rename to packages/ts/frontend/test/FluxConnection.test.ts diff --git a/packages/ts/hilla-frontend/test/SpringCsrfTestUtils.test.ts b/packages/ts/frontend/test/SpringCsrfTestUtils.test.ts similarity index 100% rename from packages/ts/hilla-frontend/test/SpringCsrfTestUtils.test.ts rename to packages/ts/frontend/test/SpringCsrfTestUtils.test.ts diff --git a/packages/ts/hilla-frontend/test/mocks/FluxConnection.ts b/packages/ts/frontend/test/mocks/FluxConnection.ts similarity index 100% rename from packages/ts/hilla-frontend/test/mocks/FluxConnection.ts rename to packages/ts/frontend/test/mocks/FluxConnection.ts diff --git a/packages/ts/hilla-frontend/test/mocks/atmosphere.ts b/packages/ts/frontend/test/mocks/atmosphere.ts similarity index 100% rename from packages/ts/hilla-frontend/test/mocks/atmosphere.ts rename to packages/ts/frontend/test/mocks/atmosphere.ts diff --git a/packages/ts/hilla-frontend/test/mocks/config.json b/packages/ts/frontend/test/mocks/config.json similarity index 100% rename from packages/ts/hilla-frontend/test/mocks/config.json rename to packages/ts/frontend/test/mocks/config.json diff --git a/packages/ts/hilla-frontend/tsconfig.build.json b/packages/ts/frontend/tsconfig.build.json similarity index 100% rename from packages/ts/hilla-frontend/tsconfig.build.json rename to packages/ts/frontend/tsconfig.build.json diff --git a/packages/ts/hilla-frontend/tsconfig.json b/packages/ts/frontend/tsconfig.json similarity index 100% rename from packages/ts/hilla-frontend/tsconfig.json rename to packages/ts/frontend/tsconfig.json