From 93b88c9dd0e23e25683038fbedeaa2245ed222ac Mon Sep 17 00:00:00 2001 From: Loris Van Katwijk Date: Wed, 22 May 2024 13:33:32 +0200 Subject: [PATCH] feat: adapt for github actions --- .../DISCUSSION_TEMPLATE/design-ideas.yaml | 0 .../DISCUSSION_TEMPLATE/surveys.yaml | 0 .../user-personas-and-stories.yaml | 0 .../.github => .github}/dependabot.yml | 0 .../.github => .github}/workflows/basic.yml | 0 .../workflows/containerised.yml | 0 .../workflows/integration-test.yml | 0 .../.github => .github}/workflows/test.yml | 0 .prettierignore | 18 ++++++++++ .prettierrc | 1 + package.json | 4 ++- packages/diracx-web-components/.gitignore | 34 ++++++++++++++++++- packages/diracx-web-components/package.json | 4 ++- 13 files changed, 58 insertions(+), 3 deletions(-) rename {packages/diracx-web/.github => .github}/DISCUSSION_TEMPLATE/design-ideas.yaml (100%) rename {packages/diracx-web/.github => .github}/DISCUSSION_TEMPLATE/surveys.yaml (100%) rename {packages/diracx-web/.github => .github}/DISCUSSION_TEMPLATE/user-personas-and-stories.yaml (100%) rename {packages/diracx-web/.github => .github}/dependabot.yml (100%) rename {packages/diracx-web/.github => .github}/workflows/basic.yml (100%) rename {packages/diracx-web/.github => .github}/workflows/containerised.yml (100%) rename {packages/diracx-web/.github => .github}/workflows/integration-test.yml (100%) rename {packages/diracx-web/.github => .github}/workflows/test.yml (100%) create mode 100644 .prettierignore create mode 100644 .prettierrc 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/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..40eccb28 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": "next lint", + "ts-lint": "tsc -noEmit -incremental" }, "author": "", "license": "GPL-3.0",