Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 9a62dc4

Browse files
authored
build: refactored build process (#109)
1 parent 4b5c0ed commit 9a62dc4

25 files changed

+1326
-3027
lines changed

.babelrc

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
{
2-
"presets": [
3-
["env"],
4-
"react"
5-
],
6-
"plugins": [
7-
"transform-object-rest-spread",
8-
"transform-class-properties",
9-
"transform-export-extensions"
10-
]
2+
"presets": [["env", { "modules": false }], "stage-2", "react"]
113
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ yarn-error.log
2121
.project
2222
.tmp
2323
.vscode
24+
*.log

example/animated.jsx renamed to demo/animated.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { findDOMNode } from 'react-dom'
33
import Transition from 'react-transition-group/Transition'
44
import PropTypes from 'prop-types'
55
import outy from 'outy'
6-
import { Manager, Target, Popper } from '../src/react-popper'
6+
import { Manager, Target, Popper } from '../src/index'
77

88
const duration = 300
99

File renamed without changes.
File renamed without changes.
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<!DOCTYPE html>
22
<html lang="en">
3+
34
<head>
45
<meta charset="UTF-8">
56
<title>Component</title>
67
<link href="https://fonts.googleapis.com/css?family=Bungee|Lato:400,900" rel="stylesheet">
78
</head>
9+
810
<body>
911
<div id="app"></div>
10-
<script src="bundle.js"></script>
12+
<script src="./index.js"></script>
1113
</body>
12-
</html>
14+
15+
</html>
File renamed without changes.
File renamed without changes.

example/modifiers.jsx renamed to demo/modifiers.jsx

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 { Portal } from 'react-portal'
3-
import { Manager, Target, Popper, Arrow } from '../src/react-popper'
3+
import { Manager, Target, Popper, Arrow } from '../src/index'
44
import { modifiers } from './common'
55

66
class MultipleExample extends React.Component {

example/multiple.jsx renamed to demo/multiple.jsx

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 { Portal } from 'react-portal'
3-
import { Manager, Target, Popper, Arrow, placements } from '../src/react-popper'
3+
import { Manager, Target, Popper, Arrow, placements } from '../src/index'
44

55
const modifiers = {
66
customStyle: {

0 commit comments

Comments
 (0)