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

Commit 1be2848

Browse files
author
Federico Zivolo
committed
build: refactored build process
fixes #106, #80, #82
1 parent 1bd24d8 commit 1be2848

24 files changed

+1755
-3296
lines changed

.babelrc

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
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", "stage-2", "react"],
3+
"plugins": ["transform-class-properties"]
114
}

.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,7 +1,7 @@
11
import React from 'react'
22
import PopperJS from 'popper.js'
33
import { Portal } from 'react-portal'
4-
import { Manager, Target, Popper, Arrow } from '../src/react-popper'
4+
import { Manager, Target, Popper, Arrow } from '../src/index'
55

66
const modifiers = {
77
customStyle: {

0 commit comments

Comments
 (0)