This repository was archived by the owner on Apr 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change
1
+ .gitignore
2
+ .babelrc
3
+ .eslingignore
4
+ .eslintrc.js
5
+ .prettierignore
6
+ .prettierrc.yml
7
+ src /
8
+ examples /
Original file line number Diff line number Diff line change @@ -11,12 +11,17 @@ next page isn't mounted until the previous one has completed its exit animation.
11
11
It also has built-in support for showing a loading indicator if your page
12
12
component has to load data before it can be shown.
13
13
14
+ ### Examples
15
+
16
+ If you prefer to learn by example, check out the ` examples ` directory for
17
+ some Next.js apps that demonstrate how this library can be used.
18
+
14
19
### Getting started
15
20
16
21
First, install the package:
17
22
18
23
```
19
- npm install next-page-transitions
24
+ npm install --save next-page-transitions
20
25
```
21
26
22
27
Next, ensure that your app has a custom ` App ` component; if not,
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0-alpha.1" ,
4
4
"description" : " Simple and customizable page transitions for Next.js apps" ,
5
5
"main" : " lib/index.js" ,
6
+ "files" : [
7
+ " lib/"
8
+ ],
6
9
"scripts" : {
7
- "build" : " rimraf lib && cp README.md LICENSE ./lib && babel src --out-dir lib" ,
10
+ "build" : " rimraf lib && babel src --out-dir lib" ,
8
11
"build-watch" : " rimraf lib && babel src --out-dir lib --watch" ,
9
12
"prettier" : " prettier --write \" src/**/*.js\" \" examples/**/*.js\" " ,
10
13
"prettier-diff" : " prettier --list-different \" src/**/*.js\" \" examples/**/*.js\" " ,
You can’t perform that action at this time.
0 commit comments