Skip to content

Commit

Permalink
feat: add elements v1 packages (#194)
Browse files Browse the repository at this point in the history
Co-authored-by: Miłosz <[email protected]>
  • Loading branch information
jonas-jonas and mszekiel authored Oct 16, 2024
1 parent 91f3aca commit d23bb7c
Show file tree
Hide file tree
Showing 225 changed files with 42,936 additions and 13,064 deletions.
1 change: 0 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = {
parser: "@typescript-eslint/parser",
ignorePatterns: ["src/assets/*.js"],
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
ecmaVersion: 2021,
sourceType: "module",
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- run: npx playwright install --with-deps
# Re-enable, once we don't have weird depdenency issues, because of the shared src/ folder
# - run: npx nx affected -t lint test build
- run: npx nx run-many --all -t lint test build
- run: npx nx run-many --all -t lint test build api-extractor
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down Expand Up @@ -52,3 +52,14 @@ jobs:
exitOnceUploaded: true
workingDir: packages/legacy-stories
storybookBuildDir: storybook-static
- uses: chromaui/[email protected]
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_ELEMENTS_REACT }}
exitOnceUploaded: true
workingDir: packages/elements-react-stories
storybookBuildDir: storybook-static

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ pnpm-lock.yaml
/test-results/
/playwright-report/
/playwright/.cache/
.nx/
.nx
coverage/
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ CONTRIBUTING.md
docs
.next
.cache

# Generated files
CHANGELOG.md
**/api-report/*
194 changes: 0 additions & 194 deletions jest.config.js

This file was deleted.

8 changes: 8 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright © 2024 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import { getJestProjects, getJestProjectsAsync } from "@nx/jest"

export default {
projects: await getJestProjects(),
}
8 changes: 8 additions & 0 deletions jest.preset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright © 2024 Ory Corp
// SPDX-License-Identifier: Apache-2.0

const nxPreset = require("@nx/jest/preset").default

module.exports = {
...nxPreset,
}
37 changes: 36 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,38 @@
"dependsOn": ["^build"]
}
},
"release": {
"projectsRelationship": "independent",
"releaseTagPattern": "release/{projectName}/{version}",
"projects": ["@ory/elements-react"],
"version": {
"generatorOptions": {
"preid": "next",
"specifier": "prerelease"
}
},
"changelog": {
"automaticFromRef": true,
"projectChangelogs": true,
"workspaceChangelog": false
}
},
"affected": {
"defaultBase": "main"
},
"plugins": [
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "eslint:lint"
}
},
{
"plugin": "@nx/jest/plugin",
"options": {
"targetName": "test"
}
},
{
"plugin": "@nx/storybook/plugin",
"options": {
Expand All @@ -26,5 +54,12 @@
"staticStorybookTargetName": "static-storybook"
}
}
]
],
"generators": {
"@nx/react": {
"library": {
"unitTestRunner": "none"
}
}
}
}
Loading

0 comments on commit d23bb7c

Please sign in to comment.