Skip to content

Commit 65fa656

Browse files
committed
configure npm publishing
1 parent 870de31 commit 65fa656

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ For example you can create `OpacityTransition` component based on this package a
88
</OpacityTransition>
99
```
1010

11-
See full example [here](https://github.com/mavajee/react-nullable-transition/tree/master/example).
11+
See full example [here](https://github.com/mavajee/react-nullable-transition/tree/master/example) or on [codesandbox](https://codesandbox.io/s/billowing-browser-6hlo9?file=/src/index.tsx).

package/.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/src
2+
tsconfig.json
3+
yarn.lock

package/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
`react-nullable-transition` is simple wrap component for using `react-transition-group` with jsx stataments (like vue transition).
2+
3+
For example you can create `OpacityTransition` component based on this package and use it like this:
4+
5+
```jsx
6+
<OpacityTransition>
7+
{show && <Square />}
8+
</OpacityTransition>
9+
```
10+
11+
See full example on [codesandbox](https://codesandbox.io/s/billowing-browser-6hlo9?file=/src/index.tsx)

package/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"name": "react-nullable-transition",
3-
"version": "1.0.2",
3+
"version": "1.1.0",
44
"description": "",
55
"main": "dist/index.js",
66
"module": "./dist/index.js",
77
"types": "./dist/index.d.ts",
8+
"scripts": {
9+
"publish": "npm publish"
10+
},
811
"keywords": [
912
"animation",
1013
"transition",

0 commit comments

Comments
 (0)