diff --git a/packages/diracx-web/.github/DISCUSSION_TEMPLATE/design-ideas.yaml b/.github/DISCUSSION_TEMPLATE/design-ideas.yaml similarity index 100% rename from packages/diracx-web/.github/DISCUSSION_TEMPLATE/design-ideas.yaml rename to .github/DISCUSSION_TEMPLATE/design-ideas.yaml diff --git a/packages/diracx-web/.github/DISCUSSION_TEMPLATE/surveys.yaml b/.github/DISCUSSION_TEMPLATE/surveys.yaml similarity index 100% rename from packages/diracx-web/.github/DISCUSSION_TEMPLATE/surveys.yaml rename to .github/DISCUSSION_TEMPLATE/surveys.yaml diff --git a/packages/diracx-web/.github/DISCUSSION_TEMPLATE/user-personas-and-stories.yaml b/.github/DISCUSSION_TEMPLATE/user-personas-and-stories.yaml similarity index 100% rename from packages/diracx-web/.github/DISCUSSION_TEMPLATE/user-personas-and-stories.yaml rename to .github/DISCUSSION_TEMPLATE/user-personas-and-stories.yaml diff --git a/packages/diracx-web/.github/dependabot.yml b/.github/dependabot.yml similarity index 100% rename from packages/diracx-web/.github/dependabot.yml rename to .github/dependabot.yml diff --git a/packages/diracx-web/.github/workflows/basic.yml b/.github/workflows/basic.yml similarity index 100% rename from packages/diracx-web/.github/workflows/basic.yml rename to .github/workflows/basic.yml diff --git a/packages/diracx-web/.github/workflows/containerised.yml b/.github/workflows/containerised.yml similarity index 100% rename from packages/diracx-web/.github/workflows/containerised.yml rename to .github/workflows/containerised.yml diff --git a/packages/diracx-web/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml similarity index 100% rename from packages/diracx-web/.github/workflows/integration-test.yml rename to .github/workflows/integration-test.yml diff --git a/packages/diracx-web/.github/workflows/test.yml b/.github/workflows/test.yml similarity index 100% rename from packages/diracx-web/.github/workflows/test.yml rename to .github/workflows/test.yml diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..dba97359 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,18 @@ +node_modules +build +dist +public +.github +jest.config.mjs + +packages/*/node_modules +packages/*/build +packages/*/dist +packages/*/public +packages/*/.github +packages/*/jest.config.mjs +packages/*/tsconfig.json +packages/*/tsup.config.ts +packages/*/.next +packages/*/.tsup +packages/*/out \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/.prettierrc @@ -0,0 +1 @@ +{} diff --git a/README.md b/README.md index f300eb6c..e414c4e7 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,6 @@ npm test End-to-end tests are launched through `cypress` such as: ``` -cd packages/diracx-web npx cypress open --config baseUrl=$DIRACX_URL ``` diff --git a/cypress.config.ts b/cypress.config.ts new file mode 100644 index 00000000..9f1de80c --- /dev/null +++ b/cypress.config.ts @@ -0,0 +1,12 @@ +import { defineConfig } from "cypress"; + +export default defineConfig({ + e2e: { + specPattern: "packages/*/test/e2e/**/*.cy.ts", + supportFile: false, + setupNodeEvents(on, config) { + // implement node event listeners here + }, + }, + chromeWebSecurity: false, +}); diff --git a/package.json b/package.json index 501cc03b..99b2fa9f 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,8 @@ "scripts": { "dev": "lerna run dev --parallel", "test": "lerna run test", - "build": "lerna run build" + "build": "lerna run build", + "lint": "lerna run lint", + "ts-lint": "lerna run ts-lint" } } diff --git a/packages/diracx-web-components/.gitignore b/packages/diracx-web-components/.gitignore index 3f4a1f6e..d8699bbd 100644 --- a/packages/diracx-web-components/.gitignore +++ b/packages/diracx-web-components/.gitignore @@ -9,4 +9,36 @@ node_modules # tsup .tsup -dist \ No newline at end of file +dist + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts + +# eslint +.eslintcache diff --git a/packages/diracx-web-components/package.json b/packages/diracx-web-components/package.json index 2843e2e5..d22c4080 100644 --- a/packages/diracx-web-components/package.json +++ b/packages/diracx-web-components/package.json @@ -5,7 +5,9 @@ "scripts": { "build": "tsup --minify", "dev": "tsup --watch --sourcemap", - "test": "jest --ci" + "test": "jest --ci", + "lint": "eslint src", + "ts-lint": "tsc -noEmit -incremental" }, "author": "", "license": "GPL-3.0",