Skip to content

Commit 21f2a58

Browse files
committed
Convert the demo to CRA
1 parent 67094ed commit 21f2a58

23 files changed

+10069
-49
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.idea
2-
/node_modules
2+
node_modules
33
npm-debug.log
44

55
# Exclude compiled files

demo/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

demo/app.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

demo/assets/index.html

Lines changed: 0 additions & 24 deletions
This file was deleted.

demo/package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "react-css-transition-replace-demo",
3+
"version": "3.0.3",
4+
"private": true,
5+
"dependencies": {
6+
"react": "^16.7.0",
7+
"react-dom": "^16.7.0",
8+
"react-scripts": "2.1.2"
9+
},
10+
"scripts": {
11+
"start": "react-scripts start",
12+
"build": "react-scripts build",
13+
"test": "react-scripts test",
14+
"eject": "react-scripts eject"
15+
},
16+
"eslintConfig": {
17+
"extends": "react-app"
18+
},
19+
"browserslist": [
20+
">0.2%",
21+
"not dead",
22+
"not ie <= 11",
23+
"not op_mini all"
24+
]
25+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

demo/public/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta
6+
name="viewport"
7+
content="width=device-width, initial-scale=1, shrink-to-fit=no"
8+
/>
9+
<meta name="theme-color" content="#ffffff" />
10+
<meta name="description" content="ReactCSSTransitionReplace Demo">
11+
12+
<title>ReactCSSTransitionReplace</title>
13+
14+
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
15+
<link rel="stylesheet" href="//bootswatch.com/cerulean/bootstrap.min.css">
16+
</head>
17+
<body>
18+
<noscript>You need to enable JavaScript to run this app.</noscript>
19+
<div id="root"></div>
20+
</body>
21+
</html>

demo/components/Demo.jsx renamed to demo/src/Demo.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { Navbar, Nav, NavItem, Grid } from 'react-bootstrap'
33

44
const NavbarBrand = Navbar.Brand
55

6-
import PageHead from './PageHead.jsx'
7-
import ContentSwapper from './ContentSwapper.jsx'
8-
import ContentAddRemove from './ContentAddRemove.jsx'
9-
import AnimatedRouter from './AnimatedRouter.jsx'
6+
import PageHead from './components/PageHead'
7+
import ContentSwapper from './components/ContentSwapper'
8+
import ContentAddRemove from './components/ContentAddRemove'
9+
import AnimatedRouter from './components/AnimatedRouter'
1010

11-
import ContentLong from './ContentLong.jsx'
12-
import ContentShort from './ContentShort.jsx'
11+
import ContentLong from './components/ContentLong'
12+
import ContentShort from './components/ContentShort'
1313

1414
class Demo extends React.Component {
1515

demo/components/AnimatedRouter.jsx renamed to demo/src/components/AnimatedRouter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable react/no-multi-comp */
22
import React from 'react'
33
import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom'
4-
import ReactCSSTransitionReplace from '../../src/ReactCSSTransitionReplace.jsx'
4+
import ReactCSSTransitionReplace from '../../../src/ReactCSSTransitionReplace.jsx'
55

66
const Home = () => (
77
<div>

demo/components/ChangeChildProps.jsx renamed to demo/src/components/ChangeChildProps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import ReactCSSTransitionReplace from '../../src/ReactCSSTransitionReplace.jsx'
2+
import ReactCSSTransitionReplace from '../../../src/ReactCSSTransitionReplace.jsx'
33

44

55
class ChangeChildProps extends React.Component {

demo/components/ContentAddRemove.jsx renamed to demo/src/components/ContentAddRemove.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import ReactCSSTransitionReplace from '../../src/ReactCSSTransitionReplace.jsx'
2+
import ReactCSSTransitionReplace from '../../../src/ReactCSSTransitionReplace.jsx'
33

44

55
class ContentAddRemove extends React.Component {
File renamed without changes.

demo/components/ContentSwapper.jsx renamed to demo/src/components/ContentSwapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import ReactCSSTransitionReplace from '../../src/ReactCSSTransitionReplace.jsx'
2+
import ReactCSSTransitionReplace from '../../../src/ReactCSSTransitionReplace.jsx'
33

44

55
class ContentSwapper extends React.Component {
File renamed without changes.

demo/components/TimedSwapper.jsx renamed to demo/src/components/TimedSwapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import ReactCSSTransitionReplace from '../../src/ReactCSSTransitionReplace.jsx'
2+
import ReactCSSTransitionReplace from '../../../src/ReactCSSTransitionReplace.jsx'
33

44

55
class ContentSwapper extends React.Component {
File renamed without changes.

demo/src/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom';
3+
import './index.css';
4+
import './transitions.css';
5+
import Demo from './Demo';
6+
7+
ReactDOM.render(<Demo />, document.getElementById('root'));
File renamed without changes.

0 commit comments

Comments
 (0)