Skip to content

Commit bae927e

Browse files
committed
Use 'rt' as root path for module resolving
1 parent cbdd00d commit bae927e

26 files changed

Lines changed: 54 additions & 43 deletions

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@babel/plugin-transform-async-to-generator",
1717
"@babel/plugin-transform-runtime",
1818
["module-resolver", {
19-
"root": ["./src/"]
19+
"alias": { "rt": "./src/" }
2020
}]
2121
]
2222
}

src/components/AddCardLink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import React from 'react'
2-
import {AddCardLink} from 'styles/Base'
2+
import {AddCardLink} from 'rt/styles/Base'
33

44
export default ({onClick, t}) => <AddCardLink onClick={onClick}>{t('Click to add card')}</AddCardLink>

src/components/Card.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
CardTitle,
99
Detail,
1010
Footer
11-
} from 'styles/Base'
11+
} from 'rt/styles/Base'
1212
import Tag from './Card/Tag'
13-
import DeleteButton from './widgets/DeleteButton'
13+
import DeleteButton from 'rt/widgets/DeleteButton'
1414

1515
class Card extends Component {
1616
onDelete = e => {

src/components/Card/Tag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, {Component} from 'react'
22
import PropTypes from 'prop-types'
3-
import {TagSpan} from 'styles/Base'
3+
import {TagSpan} from 'rt/styles/Base'
44

55
class Tag extends Component {
66
render() {

src/components/Lane/LaneFooter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from 'react'
22

3-
import {LaneFooter} from 'styles/Base'
3+
import {LaneFooter} from 'rt/styles/Base'
44

55
import {
66
CollapseBtn,
77
ExpandBtn,
8-
} from 'styles/Elements'
8+
} from 'rt/styles/Elements'
99

1010
export default ({onClick, collapsed}) => <LaneFooter onClick={onClick}>{collapsed ? <ExpandBtn /> : <CollapseBtn />}</LaneFooter>

src/components/Lane/LaneHeader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
3-
import InlineInput from 'components/widgets/InlineInput'
4-
import {Title, LaneHeader, RightContent } from 'styles/Base'
3+
import InlineInput from 'rt/widgets/InlineInput'
4+
import {Title, LaneHeader, RightContent } from 'rt/styles/Base'
55
import LaneMenu from './LaneHeader/LaneMenu'
66

77
const LaneHeaderComponent = ({

src/components/Lane/LaneHeader/LaneMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import React from 'react'
1010
LaneMenuItem,
1111
GenDelButton,
1212
MenuButton,
13-
} from 'styles/Elements'
13+
} from 'rt/styles/Elements'
1414

1515
const LaneMenu = ({t, onDelete}) => {
1616
return (

src/components/Loader.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 {LoaderDiv, LoadingBar} from 'styles/Loader'
2+
import {LoaderDiv, LoadingBar} from 'rt/styles/Loader'
33

44
const Loader = () => (
55
<LoaderDiv>

src/components/NewCardForm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import {
77
CardTitle,
88
CardWrapper,
99
Detail
10-
} from 'styles/Base'
11-
import {AddButton, CancelButton} from 'styles/Elements'
12-
import EditableLabel from './widgets/EditableLabel'
10+
} from 'rt/styles/Base'
11+
import {AddButton, CancelButton} from 'rt/styles/Elements'
12+
import EditableLabel from 'rt/widgets/EditableLabel'
1313

1414
class NewCardForm extends Component {
1515
updateField = (field, value) => {

src/components/NewLaneForm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, {Component} from 'react'
22
import PropTypes from 'prop-types'
3-
import {LaneTitle, NewLaneButtons, Section} from 'styles/Base'
4-
import {AddButton, CancelButton} from 'styles/Elements'
5-
import EditableLabel from './widgets/EditableLabel'
3+
import {LaneTitle, NewLaneButtons, Section} from 'rt/styles/Base'
4+
import {AddButton, CancelButton} from 'rt/styles/Elements'
5+
import EditableLabel from 'rt/widgets/EditableLabel'
66

77
class NewLaneForm extends Component {
88
updateField = (field, value) => {

0 commit comments

Comments
 (0)