Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/automate-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Validate semver
run: |
node -e "
const v = require('./package.json').version;
const v = require('./packages/react-dropdown-select/package.json').version;
if (!/^\d+\.\d+\.\d+$/.test(v)) {
console.error('Error: Version \"' + v + '\" is not valid semver (expected MAJOR.MINOR.PATCH)');
process.exit(1);
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ jobs:

- name: Coveralls
uses: coverallsapp/github-action@v2
with:
file: packages/react-dropdown-select/coverage/lcov.info
13 changes: 4 additions & 9 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,17 @@ jobs:

- run: pnpm install

- name: Install docs-site dependencies
run: npm install
working-directory: docs-site

- name: Build docs-site
run: npx vite build
working-directory: docs-site
run: pnpm --filter docs-site build

- name: Build storybook
run: pnpm run build-storybook
run: pnpm -w run build-storybook

- name: Prepare output
run: |
mkdir -p output/storybook
cp -r docs-site/dist/* output/
cp -r storybook-static/* output/storybook/
cp -r packages/docs-site/dist/* output/
cp -r packages/react-dropdown-select/storybook-static/* output/storybook/
touch output/.nojekyll

- uses: actions/upload-pages-artifact@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Node.js Package

on:
workflow_run:
workflows: ["Automate Release"]
workflows: ['Automate Release']
types:
- completed

Expand All @@ -27,5 +27,5 @@ jobs:
- run: npm install -g npm@latest
- run: pnpm install
- run: pnpm test -- --maxWorkers=2 --maxConcurrent=2
- run: pnpm run build
- run: npm publish
- run: pnpm -w run build
- run: cd packages/react-dropdown-select && npm publish
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules
package-lock.json
.idea
/src/helpers.js
/packages/react-dropdown-select/src/helpers.js
.DS_Store
coverage
dist/
Expand Down
8 changes: 6 additions & 2 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"src/**/*.{ts,tsx}": ["eslint --fix", "prettier --write", "bash -c 'pnpm run typecheck'"],
"__tests__/**/*.{js,jsx,ts,tsx}": ["prettier --write"]
"packages/react-dropdown-select/src/**/*.{ts,tsx}": [
"eslint --fix",
"prettier --write",
"bash -c 'pnpm run typecheck'"
],
"packages/react-dropdown-select/__tests__/**/*.{js,jsx,ts,tsx}": ["prettier --write"]
}
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Customisable dropdown select for react

[![](https://badgen.net/bundlephobia/minzip/react-dropdown-select)](https://bundlephobia.com/result?p=react-dropdown-select)
[![](https://img.shields.io/npm/v/react-dropdown-select.svg)](https://www.npmjs.com/package/react-dropdown-select)
[![Coverage Status](https://coveralls.io/repos/github/sanusart/react-dropdown-select/badge.svg?branch=master)](https://coveralls.io/github/sanusart/react-dropdown-select?branch=master)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/b24446a1398a4308ad5d2b825e61bf76)](https://app.codacy.com/gh/sanusart/react-dropdown-select/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
Expand Down Expand Up @@ -77,6 +76,26 @@ const options = [

### Help and Contributions

#### Development

The repository is a [pnpm](https://pnpm.io/) workspace. The component lives in `packages/react-dropdown-select` and the docs site in `packages/docs-site`.

```bash
pnpm install

# run storybook (component development)
pnpm -w run storybook

# run the docs site
pnpm --filter docs-site run dev

# validate
pnpm run lint
pnpm run typecheck
pnpm run prettier
pnpm test
```

#### How to help/contribute

- fix issues, pull request are very welcome
Expand Down
8 changes: 0 additions & 8 deletions docs-site/.oxlintrc.json

This file was deleted.

Loading
Loading