Skip to content

Commit 9458270

Browse files
committed
feat(release): prepare initial release
1 parent 4fbf908 commit 9458270

File tree

10 files changed

+2594
-93
lines changed

10 files changed

+2594
-93
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,12 @@ jobs:
3030

3131
- name: Build
3232
run: yarn build
33+
34+
- name: Pack Inspect
35+
run: yarn pack:inspect
36+
37+
- name: Release
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
40+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
run: yarn semantic-release

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
node_modules
44
.cache
55
dist
6+
*.tgz

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The `useQueryFilters` will track state changes and enable you do build your quer
2424
- [ ] Single Select
2525
- [ ] Multiple Select
2626
- [x] Conditional value based on operation type
27-
- Value is always undefined if operation type is `is-empty` or `is-not-empty`
27+
- Condition value is always `undefined` if operation type is `is-empty` or `is-not-empty`
2828
- [x] `AND` & `OR` logic gates supported
2929
- [ ] Support for controlled state
3030
- [ ] Support for nested conditions

package.json

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
2-
"version": "0.1.0",
2+
"version": "0.0.0-development",
33
"license": "MIT",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",
66
"files": [
7-
"dist",
8-
"src"
7+
"dist"
98
],
109
"engines": {
1110
"node": ">=10"
@@ -19,7 +18,9 @@
1918
"size": "size-limit",
2019
"analyze": "size-limit --why",
2120
"storybook": "start-storybook -p 6006",
22-
"build-storybook": "build-storybook"
21+
"build-storybook": "build-storybook",
22+
"pack:inspect": "yarn pack && tar -ztvf *.tgz",
23+
"semantic-release": "semantic-release"
2324
},
2425
"peerDependencies": {
2526
"@chakra-ui/react": "^1.0.4",
@@ -39,16 +40,16 @@
3940
"singleQuote": true,
4041
"trailingComma": "es5"
4142
},
42-
"name": "use-query-filters",
43+
"name": "react-query-filter",
4344
"author": "Armando Magalhães",
44-
"module": "dist/use-query-filters.esm.js",
45+
"module": "dist/react-query-filter.esm.js",
4546
"size-limit": [
4647
{
47-
"path": "dist/use-query-filters.cjs.production.min.js",
48+
"path": "dist/react-query-filter.cjs.production.min.js",
4849
"limit": "10 KB"
4950
},
5051
{
51-
"path": "dist/use-query-filters.esm.js",
52+
"path": "dist/react-query-filter.esm.js",
5253
"limit": "10 KB"
5354
}
5455
],
@@ -64,20 +65,28 @@
6465
"@storybook/addon-links": "^6.1.11",
6566
"@storybook/addons": "^6.1.11",
6667
"@storybook/react": "^6.1.11",
68+
"@testing-library/react-hooks": "^3.7.0",
6769
"@types/react": "^17.0.0",
6870
"@types/react-dom": "^17.0.0",
71+
"@types/react-select": "^3.0.28",
6972
"babel-loader": "^8.2.2",
7073
"framer-motion": "^3.1.1",
7174
"husky": "^4.3.6",
7275
"react": "^17.0.1",
7376
"react-dom": "^17.0.1",
7477
"react-is": "^17.0.1",
7578
"react-select": "^3.1.1",
76-
"react-use": "^15.3.4",
79+
"semantic-release": "^17.3.1",
7780
"size-limit": "^4.9.1",
7881
"tsdx": "^0.14.1",
7982
"tslib": "^2.0.3",
8083
"typescript": "^4.1.3"
8184
},
82-
"dependencies": {}
85+
"dependencies": {
86+
"react-use": "^15.3.4"
87+
},
88+
"repository": {
89+
"type": "git",
90+
"url": "https://github.com/armand1m/react-query-filter.git"
91+
}
8392
}

src/components/chakra-ui/FilterRow.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { Meta, Story } from '@storybook/react';
3-
import { FilterRowProps, PropertyDescription } from '../../types';
3+
import { FilterRowProps, PropertyDescription } from '../../';
44
import { FilterRow } from './FilterRow';
55

66
const properties: PropertyDescription[] = [

src/components/chakra-ui/FilterRow.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import {
77
Select,
88
Tooltip,
99
} from '@chakra-ui/react';
10-
import { useRowUtilities } from '../../filterOperations';
11-
import { FilterRowProps } from '../../types';
10+
import { useRowUtilities, FilterRowProps } from '../../';
1211

1312
export const FilterRow: FC<FilterRowProps> = ({
1413
properties,

src/components/chakra-ui/FilterSelection.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { Meta, Story } from '@storybook/react';
3-
import { PropertyDescription } from '../../types';
3+
import { PropertyDescription } from '../../';
44
import { FilterSelection } from './FilterSelection';
55

66
const meta: Meta = {

src/components/chakra-ui/FilterSelection.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { FC } from 'react';
22
import { Button, HStack, SimpleGrid, SlideFade, Code } from '@chakra-ui/react';
3-
import { Filter, PropertyDescription } from '../../types';
4-
import { useQueryFilters } from '../../hooks/useQueryFilters';
3+
import { useQueryFilters, Filter, PropertyDescription } from '../../';
54
import { FilterRow } from './FilterRow';
65

76
interface Props {

src/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
export { useQueryFilters } from './hooks/useQueryFilters';
2+
export { useRowUtilities } from './filterOperations';
3+
export * from './types';

0 commit comments

Comments
 (0)