diff --git a/.changeset/khaki-parrots-tap.md b/.changeset/khaki-parrots-tap.md new file mode 100644 index 0000000..fc9c146 --- /dev/null +++ b/.changeset/khaki-parrots-tap.md @@ -0,0 +1,11 @@ +--- +'eslint-config-custom': major +'tailwind-config': major +'tsconfig': major +'utils': major +'ui': major +'cms': major +'web': major +--- + +Primitive storybooks and code gen tools diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5424939..cd2ef69 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,5 +22,5 @@ jobs: - name: Install run: pnpm install --no-frozen-lockfile - - name: Lint - run: pnpm test:run + - name: Test + run: pnpm test:run --passWithNoTests diff --git a/README.md b/README.md index 9dbcda1..fe3893d 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,22 @@ packages └─ utility functions ``` +## Contributing + +All commit messages must adhere the gitmoji commitlint conventions + +```base +:sparkles: feat(changelog): support chinese title + +:bug: fix(config): fix a subject bug + +:memo: docs: update README.md + +:bulb: docs(plugin): update comments +``` + +[More emoji here](https://gitmoji.dev/) + ### Sanity Includes live preview, singletons, nested documents [via Sanity page tree](https://github.com/Q42/sanity-plugin-page-tree) diff --git a/commitlint.config.js b/commitlint.config.js index 98ee7df..41b0da9 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,3 +1 @@ -module.exports = { - extends: ['@commitlint/config-conventional'], -} +module.exports = { extends: ['gitmoji'] } diff --git a/package.json b/package.json index 7a2a679..27c48df 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "@commitlint/config-conventional": "^19.2.2", "@manypkg/cli": "^0.21.4", "commitlint": "^19.3.0", + "commitlint-config-gitmoji": "^2.3.1", "husky": "^9.0.11", "hygen": "^6.2.11", "lint-staged": "^15.2.2", diff --git a/packages/ui/package.json b/packages/ui/package.json index 95b1487..d59a116 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -13,10 +13,12 @@ "@babel/preset-env": "^7.24.5", "@babel/preset-react": "^7.24.1", "@babel/preset-typescript": "^7.24.1", + "@chromatic-com/storybook": "^1.3.3", "@storybook/addon-essentials": "^8.1.1", "@storybook/addon-interactions": "^8.1.1", "@storybook/addon-links": "^8.1.1", "@storybook/addon-onboarding": "^8.1.1", + "@storybook/addon-webpack5-compiler-swc": "^1.0.2", "@storybook/blocks": "^8.1.1", "@storybook/nextjs": "^8.1.1", "@storybook/react": "^8.1.1", diff --git a/packages/ui/src/componenets/Footer/Footer.spec.tsx b/packages/ui/src/componenets/Footer/Footer.spec.tsx deleted file mode 100644 index be52927..0000000 --- a/packages/ui/src/componenets/Footer/Footer.spec.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import React from 'react' -import { expect, it, describe } from 'vitest' -import { render } from '@testing-library/react' -import { Footer } from './Footer' - -describe('Footer ', async () => { - it('should render', async () => { - const { getByTestId } = render(