Rename packages to @devhub/xxx

This commit is contained in:
Bruno Lemos
2018-12-03 18:53:39 -02:00
parent 73f4054e86
commit 0492d59dec
189 changed files with 169 additions and 178 deletions

View File

@@ -7,12 +7,12 @@
.vscode
@types
node_modules
packages/components/dist
packages/components/node_modules
packages/components/package.json
packages/components/src
packages/core
packages/mobile
packages/shared-components/dist
packages/shared-components/node_modules
packages/shared-components/package.json
packages/shared-components/src
packages/shared-core
packages/web/build
packages/web/dist/**.map
packages/web/node_modules

View File

@@ -9,18 +9,18 @@
"nohoist": []
},
"scripts": {
"build": "yarn workspace shared-core build && yarn workspace shared-components build && yarn workspace web build",
"build": "yarn workspace @devhub/core build && yarn workspace @devhub/components build && yarn workspace @devhub/web build",
"clean": "yarn workspaces run clean",
"deploy": "yarn clean && yarn build && yarn now",
"deploy-www": "pushd packages/server-www; now && now alias; popd;",
"dev": "yarn workspace shared-core build && yarn workspace shared-components build && concurrently --kill-others \"yarn workspace shared-core build -w\" \"yarn workspace shared-components build -w\" \"yarn workspace web start\" \"yarn workspace mobile start\"",
"deploy-www": "pushd packages/www; now && now alias; popd;",
"dev": "yarn workspace @devhub/core build && yarn workspace @devhub/components build && concurrently --kill-others \"yarn workspace @devhub/core build -w\" \"yarn workspace @devhub/components build -w\" \"yarn workspace @devhub/web start\" \"yarn workspace @devhub/mobile start\"",
"format": "yarn workspaces run format",
"lint": "yarn workspaces run lint",
"now": "npx now",
"patch-package": "if test \"$NOW\" = \"1\"; then cd .; else patch-package; fi",
"prepare": "yarn patch-package",
"studio": "yarn workspace mobile studio",
"xcode": "yarn workspace mobile xcode"
"studio": "yarn workspace @devhub/mobile studio",
"xcode": "yarn workspace @devhub/mobile xcode"
},
"dependencies": {},
"devDependencies": {

View File

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

View File

@@ -1,5 +1,5 @@
{
"name": "shared-components",
"name": "@devhub/components",
"version": "0.29.0",
"main": "dist",
"scripts": {
@@ -10,6 +10,7 @@
"prepare": "cd .. && yarn patch-package"
},
"dependencies": {
"@devhub/core": "0.29.0",
"@octokit/rest": "^16.1.0",
"axios": "^0.18.0",
"bugsnag-js": "^4.7.3",
@@ -36,8 +37,7 @@
"redux-devtools-extension": "^2.13.7",
"redux-persist": "^5.10.0",
"redux-saga": "^0.16.2",
"reselect": "^4.0.0",
"shared-core": "0.29.0"
"reselect": "^4.0.0"
},
"devDependencies": {
"@types/fbemitter": "^2.0.32",

View File

@@ -1,5 +1,5 @@
import { GitHubUser } from 'shared-core/dist/types'
import { User } from 'shared-core/dist/types/graphql'
import { GitHubUser } from '@devhub/core/dist/types'
import { User } from '@devhub/core/dist/types/graphql'
// TODO: Put this on a shared repository with the server
export function fromGitHubUser(

View File

@@ -1,6 +1,6 @@
import React from 'react'
import { Theme } from 'shared-core/dist/types'
import { Theme } from '@devhub/core/dist/types'
import { useTheme } from './context/ThemeContext'
function getStyles(params: { theme: Theme }) {

View File

@@ -1,7 +1,7 @@
import React from 'react'
import { ActivityIndicator, Text, View } from 'react-native'
import { LoadState } from 'shared-core/dist/types'
import { LoadState } from '@devhub/core/dist/types'
import { contentPadding } from '../../styles/variables'
import { Button } from '../common/Button'
import { TransparentTextOverlay } from '../common/TransparentTextOverlay'

View File

@@ -18,14 +18,14 @@ import {
GitHubRepo,
GitHubUser,
MultipleStarEvent,
} from 'shared-core/dist/types'
import { getEventText } from 'shared-core/dist/utils/helpers/github/events'
import { getOwnerAndRepo } from 'shared-core/dist/utils/helpers/github/shared'
} from '@devhub/core/dist/types'
import { getEventText } from '@devhub/core/dist/utils/helpers/github/events'
import { getOwnerAndRepo } from '@devhub/core/dist/utils/helpers/github/shared'
import {
getGitHubAvatarURLFromPayload,
getRepoFullNameFromObject,
} from 'shared-core/dist/utils/helpers/github/url'
import { isEventPrivate } from 'shared-core/dist/utils/helpers/shared'
} from '@devhub/core/dist/utils/helpers/github/url'
import { isEventPrivate } from '@devhub/core/dist/utils/helpers/shared'
import { contentPadding } from '../../styles/variables'
import { getEventIconAndColor } from '../../utils/helpers/github/events'
import {

View File

@@ -1,7 +1,7 @@
import React from 'react'
import { FlatList, View } from 'react-native'
import { EnhancedGitHubEvent, LoadState } from 'shared-core/dist/types'
import { EnhancedGitHubEvent, LoadState } from '@devhub/core/dist/types'
import { ErrorBoundary } from '../../libs/bugsnag'
import { contentPadding } from '../../styles/variables'
import { Button } from '../common/Button'

View File

@@ -4,17 +4,17 @@ import { StyleSheet, View } from 'react-native'
import {
GitHubNotification,
GitHubNotificationReason,
} from 'shared-core/dist/types'
import { getOwnerAndRepo } from 'shared-core/dist/utils/helpers/github/shared'
} from '@devhub/core/dist/types'
import { getOwnerAndRepo } from '@devhub/core/dist/utils/helpers/github/shared'
import {
getGitHubURLForRepoInvitation,
getGitHubURLForSecurityAlert,
getIssueOrPullRequestNumberFromUrl,
} from 'shared-core/dist/utils/helpers/github/url'
} from '@devhub/core/dist/utils/helpers/github/url'
import {
isNotificationPrivate,
trimNewLinesAndSpaces,
} from 'shared-core/dist/utils/helpers/shared'
} from '@devhub/core/dist/utils/helpers/shared'
import { contentPadding } from '../../styles/variables'
import { getNotificationReasonMetadata } from '../../utils/helpers/github/notifications'
import {

View File

@@ -1,7 +1,7 @@
import React from 'react'
import { FlatList, View } from 'react-native'
import { GitHubNotification, LoadState } from 'shared-core/dist/types'
import { GitHubNotification, LoadState } from '@devhub/core/dist/types'
import { ErrorBoundary } from '../../libs/bugsnag'
import { contentPadding } from '../../styles/variables'
import { Button } from '../common/Button'

View File

@@ -1,8 +1,8 @@
import React from 'react'
import { StyleSheet } from 'react-native'
import { Omit } from '@devhub/core/dist/types'
import { IconProps } from 'react-native-vector-icons/Icon'
import { Omit } from 'shared-core/dist/types'
import { Octicons as Icon } from '../../../libs/vector-icons'
import { contentPadding } from '../../../styles/variables'

View File

@@ -1,7 +1,7 @@
import React from 'react'
import { StyleProp, StyleSheet, Text, ViewStyle } from 'react-native'
import { GitHubIcon } from 'shared-core/dist/types'
import { GitHubIcon } from '@devhub/core/dist/types'
import { Octicons as Icon } from '../../../libs/vector-icons'
import { radius } from '../../../styles/variables'
import { fixURL } from '../../../utils/helpers/github/url'

View File

@@ -2,8 +2,8 @@ import { MomentInput } from 'moment'
import React from 'react'
import { StyleSheet, Text, View } from 'react-native'
import { GitHubIcon } from 'shared-core/dist/types'
import { getDateSmallText } from 'shared-core/dist/utils/helpers/shared'
import { GitHubIcon } from '@devhub/core/dist/types'
import { getDateSmallText } from '@devhub/core/dist/utils/helpers/shared'
import { Octicons as Icon } from '../../../libs/vector-icons'
import { Avatar } from '../../common/Avatar'
import { IntervalRefresh } from '../../common/IntervalRefresh'

View File

@@ -2,8 +2,8 @@ import { MomentInput } from 'moment'
import React from 'react'
import { StyleSheet, Text, View } from 'react-native'
import { GitHubIcon } from 'shared-core/dist/types'
import { getDateSmallText } from 'shared-core/dist/utils/helpers/shared'
import { GitHubIcon } from '@devhub/core/dist/types'
import { getDateSmallText } from '@devhub/core/dist/utils/helpers/shared'
import { useReduxState } from '../../../redux/hooks/use-redux-state'
import * as selectors from '../../../redux/selectors'
import { Avatar } from '../../common/Avatar'

View File

@@ -1,7 +1,7 @@
import React from 'react'
import { Text, View } from 'react-native'
import { trimNewLinesAndSpaces } from 'shared-core/dist/utils/helpers/shared'
import { trimNewLinesAndSpaces } from '@devhub/core/dist/utils/helpers/shared'
import { Platform } from '../../../../libs/platform'
import { fixURL } from '../../../../utils/helpers/github/url'
import { Avatar } from '../../../common/Avatar'

View File

@@ -3,7 +3,7 @@ import React from 'react'
import { CommitRow } from './CommitRow'
import { RenderItem, RowList } from './RowList'
import { GitHubCommit } from 'shared-core/dist/types'
import { GitHubCommit } from '@devhub/core/dist/types'
export interface CommitListRowProps {
isRead: boolean

View File

@@ -1,13 +1,13 @@
import React from 'react'
import { Text, View } from 'react-native'
import { tryGetUsernameFromGitHubEmail } from 'shared-core/dist/utils/helpers/github/shared'
import { tryGetUsernameFromGitHubEmail } from '@devhub/core/dist/utils/helpers/github/shared'
import {
getCommentIdFromUrl,
getGitHubSearchURL,
getGitHubURLForUser,
} from 'shared-core/dist/utils/helpers/github/url'
import { trimNewLinesAndSpaces } from 'shared-core/dist/utils/helpers/shared'
} from '@devhub/core/dist/utils/helpers/github/url'
import { trimNewLinesAndSpaces } from '@devhub/core/dist/utils/helpers/shared'
import { Octicons as Icon } from '../../../../libs/vector-icons'
import { fixURL } from '../../../../utils/helpers/github/url'
import { Avatar } from '../../../common/Avatar'

View File

@@ -1,7 +1,7 @@
import React from 'react'
import { StyleSheet, Text, View } from 'react-native'
import { trimNewLinesAndSpaces } from 'shared-core/dist/utils/helpers/shared'
import { trimNewLinesAndSpaces } from '@devhub/core/dist/utils/helpers/shared'
import { Octicons as Icon } from '../../../../libs/vector-icons'
import { defaultStyles } from '../../../../styles/styles'
import { contentPadding } from '../../../../styles/variables'

View File

@@ -1,8 +1,8 @@
import React from 'react'
import { Text, View } from 'react-native'
import { getGitHubURLForRelease } from 'shared-core/dist/utils/helpers/github/url'
import { trimNewLinesAndSpaces } from 'shared-core/dist/utils/helpers/shared'
import { getGitHubURLForRelease } from '@devhub/core/dist/utils/helpers/github/url'
import { trimNewLinesAndSpaces } from '@devhub/core/dist/utils/helpers/shared'
import { Octicons as Icon } from '../../../../libs/vector-icons'
import { fixURL } from '../../../../utils/helpers/github/url'
import { Avatar } from '../../../common/Avatar'

View File

@@ -1,8 +1,8 @@
import React from 'react'
import { GitHubRepo } from 'shared-core/dist/types'
import { getOwnerAndRepo } from 'shared-core/dist/utils/helpers/github/shared'
import { getRepoFullNameFromObject } from 'shared-core/dist/utils/helpers/github/url'
import { GitHubRepo } from '@devhub/core/dist/types'
import { getOwnerAndRepo } from '@devhub/core/dist/utils/helpers/github/shared'
import { getRepoFullNameFromObject } from '@devhub/core/dist/utils/helpers/github/url'
import { RepositoryRow } from './RepositoryRow'
import { RenderItem, RowList } from './RowList'

View File

@@ -3,7 +3,7 @@ import React from 'react'
import { RenderItem, RowList } from './RowList'
import { UserRow } from './UserRow'
import { GitHubUser } from 'shared-core/dist/types'
import { GitHubUser } from '@devhub/core/dist/types'
export interface UserListRowProps {
isRead: boolean

View File

@@ -1,6 +1,6 @@
import React from 'react'
import { GitHubPage } from 'shared-core/dist/types'
import { GitHubPage } from '@devhub/core/dist/types'
import { RenderItem, RowList } from './RowList'
import { WikiPageRow } from './WikiPageRow'

View File

@@ -1,7 +1,7 @@
import React from 'react'
import { Text, View } from 'react-native'
import { trimNewLinesAndSpaces } from 'shared-core/dist/utils/helpers/shared'
import { trimNewLinesAndSpaces } from '@devhub/core/dist/utils/helpers/shared'
import { Octicons as Icon } from '../../../../libs/vector-icons'
import { fixURL } from '../../../../utils/helpers/github/url'
import { Link } from '../../../common/Link'

View File

@@ -1,6 +1,6 @@
import _ from 'lodash'
import { GitHubURLOptions } from 'shared-core/dist/utils/helpers/github/url'
import { GitHubURLOptions } from '@devhub/core/dist/utils/helpers/github/url'
import { Browser } from '../../../../libs/browser'
import { fixURL } from '../../../../utils/helpers/github/url'

View File

@@ -1,7 +1,7 @@
import _ from 'lodash'
import { StyleSheet } from 'react-native'
import { Theme } from 'shared-core/dist/types/themes'
import { Theme } from '@devhub/core/dist/types/themes'
import { contentPadding, smallTextSize } from '../../../../styles/variables'
export const getCardRowStylesForTheme = _.memoize((theme: Theme) => {

View File

@@ -1,7 +1,7 @@
import _ from 'lodash'
import { StyleSheet } from 'react-native'
import { Theme } from 'shared-core/dist/types/themes'
import { Theme } from '@devhub/core/dist/types/themes'
import { Platform } from '../../libs/platform'
import {
avatarSize,

View File

@@ -10,7 +10,7 @@ import {
ViewStyle,
} from 'react-native'
import { GitHubIcon } from 'shared-core/dist/types'
import { GitHubIcon } from '@devhub/core/dist/types'
import { Octicons as Icon } from '../../libs/vector-icons'
import { useReduxState } from '../../redux/hooks/use-redux-state'
import * as selectors from '../../redux/selectors'

View File

@@ -2,11 +2,11 @@ import _ from 'lodash'
import React, { useState } from 'react'
import { ScrollView, StyleSheet, Text, View } from 'react-native'
import { Column } from 'shared-core/dist/types'
import { Column } from '@devhub/core/dist/types'
import {
eventTypes,
getEventTypeMetadata,
} from 'shared-core/dist/utils/helpers/github/events'
} from '@devhub/core/dist/utils/helpers/github/events'
import { useDimensions } from '../../hooks/use-dimensions'
import { Octicons as Icon } from '../../libs/vector-icons'
import * as actions from '../../redux/actions'

View File

@@ -2,7 +2,7 @@ import _ from 'lodash'
import React from 'react'
import { TouchableWithoutFeedback, View, ViewStyle } from 'react-native'
import { GitHubIcon } from 'shared-core/dist/types'
import { GitHubIcon } from '@devhub/core/dist/types'
import * as colors from '../../styles/colors'
import {
columnHeaderItemContentSize,

View File

@@ -7,7 +7,7 @@ import {
ViewStyle,
} from 'react-native'
import { Omit } from 'shared-core/dist/types'
import { Omit } from '@devhub/core/dist/types'
import { ColumnContainer } from '../../containers/ColumnContainer'
import { useEmitter } from '../../hooks/use-emitter'
import { Separator } from '../common/Separator'

View File

@@ -1,6 +1,6 @@
import React, { useState } from 'react'
import { getColumnHeaderDetails } from 'shared-core/dist/utils/helpers/github/events'
import { getColumnHeaderDetails } from '@devhub/core/dist/utils/helpers/github/events'
import {
EventCardsContainer,
EventCardsContainerProps,

View File

@@ -1,6 +1,6 @@
import React, { useState } from 'react'
import { getColumnHeaderDetails } from 'shared-core/dist/utils/helpers/github/events'
import { getColumnHeaderDetails } from '@devhub/core/dist/utils/helpers/github/events'
import {
NotificationCardsContainer,
NotificationCardsContainerProps,

View File

@@ -3,7 +3,7 @@ import { StyleSheet, Text } from 'react-native'
import { useTheme } from '../context/ThemeContext'
const pkg = require('shared-core/package.json') // tslint:disable-line
const pkg = require('@devhub/core/package.json') // tslint:disable-line
const styles = StyleSheet.create({
appVersion: {

View File

@@ -10,7 +10,7 @@ import {
getUserAvatarByAvatarURL,
getUserAvatarByEmail,
getUserAvatarByUsername,
} from 'shared-core/dist/utils/helpers/github/shared'
} from '@devhub/core/dist/utils/helpers/github/shared'
import { avatarSize, radius, smallAvatarSize } from '../../styles/variables'
import { fixURL } from '../../utils/helpers/github/url'
import { getRepositoryURL, getUserURL } from '../cards/partials/rows/helpers'

View File

@@ -7,7 +7,7 @@ import {
TouchableOpacityProps,
} from 'react-native'
import { GitHubIcon } from 'shared-core/dist/types'
import { GitHubIcon } from '@devhub/core/dist/types'
import { Octicons as Icon } from '../../libs/vector-icons'
import * as colors from '../../styles/colors'
import { contentPadding } from '../../styles/variables'

View File

@@ -4,7 +4,7 @@ import { Dimensions, ScaledSize } from 'react-native'
import {
MAX_COLUMN_WIDTH,
MIN_COLUMN_WIDTH,
} from 'shared-core/dist/utils/constants'
} from '@devhub/core/dist/utils/constants'
import { sidebarSize } from '../../styles/variables'
import { APP_LAYOUT_BREAKPOINTS, getLayoutConsumerState } from './LayoutContext'

View File

@@ -1,6 +1,6 @@
import React, { useContext } from 'react'
import { Theme } from 'shared-core/dist/types'
import { Theme } from '@devhub/core/dist/types'
import { useReduxState } from '../../redux/hooks/use-redux-state'
import * as selectors from '../../redux/selectors'
import { defaultThemePair } from '../../redux/selectors/config'

View File

@@ -8,8 +8,8 @@ import {
View,
} from 'react-native'
import { ModalPayload } from 'shared-core/dist/types'
import { getColumnHeaderDetails } from 'shared-core/dist/utils/helpers/github/events'
import { ModalPayload } from '@devhub/core/dist/types'
import { getColumnHeaderDetails } from '@devhub/core/dist/utils/helpers/github/events'
import { useColumn } from '../../hooks/use-column'
import * as actions from '../../redux/actions'
import { useReduxAction } from '../../redux/hooks/use-redux-action'
@@ -23,7 +23,7 @@ import { Link } from '../common/Link'
import { Separator } from '../common/Separator'
import { useTheme } from '../context/ThemeContext'
const logo = require('shared-components/assets/logo.png') // tslint:disable-line
const logo = require('@devhub/components/assets/logo.png') // tslint:disable-line
const styles = StyleSheet.create({
centerContainer: {

View File

@@ -8,12 +8,12 @@ import {
AddColumnDetailsPayload,
ColumnParamField,
NotificationColumn,
} from 'shared-core/dist/types'
} from '@devhub/core/dist/types'
import * as actions from '../../redux/actions'
import { ModalColumn } from '../columns/ModalColumn'
import { createSubscriptionObjectWithId } from 'shared-core/dist/utils/helpers/github/shared'
import { guid } from 'shared-core/dist/utils/helpers/shared'
import { createSubscriptionObjectWithId } from '@devhub/core/dist/utils/helpers/github/shared'
import { guid } from '@devhub/core/dist/utils/helpers/shared'
import { useReduxAction } from '../../redux/hooks/use-redux-action'
import { contentPadding } from '../../styles/variables'
import { ColumnHeaderItem } from '../columns/ColumnHeaderItem'

View File

@@ -1,7 +1,7 @@
import React, { useState } from 'react'
import { Text, TouchableOpacity, View } from 'react-native'
import { AddColumnDetailsPayload } from 'shared-core/dist/types'
import { AddColumnDetailsPayload } from '@devhub/core/dist/types'
import * as actions from '../../redux/actions'
import { useReduxAction } from '../../redux/hooks/use-redux-action'
import { contentPadding } from '../../styles/variables'

View File

@@ -1,7 +1,7 @@
import React from 'react'
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native'
import { Theme } from 'shared-core/dist/types'
import { Theme } from '@devhub/core/dist/types'
import { useTheme } from '../../components/context/ThemeContext'
import * as actions from '../../redux/actions'
import { useReduxAction } from '../../redux/hooks/use-redux-action'

View File

@@ -9,7 +9,7 @@ import {
GitHubEvent,
LoadState,
Omit,
} from 'shared-core/dist/types'
} from '@devhub/core/dist/types'
import { EventCards, EventCardsProps } from '../components/cards/EventCards'
import { getActivity } from '../libs/github'
import { getFilteredEvents } from '../utils/helpers/filters'

View File

@@ -8,7 +8,14 @@ import {
LoadState,
NotificationSubscription,
Omit,
} from 'shared-core/dist/types'
} from '@devhub/core/dist/types'
import { getOwnerAndRepo } from '@devhub/core/dist/utils/helpers/github/shared'
import {
getCommentIdFromUrl,
getCommitShaFromUrl,
getIssueOrPullRequestNumberFromUrl,
getReleaseIdFromUrl,
} from '@devhub/core/dist/utils/helpers/github/url'
import {
NotificationCards,
NotificationCardsProps,

View File

@@ -1,6 +1,6 @@
import Octokit from '@octokit/rest'
import { GitHubActivityType } from 'shared-core/dist/types'
import { GitHubActivityType } from '@devhub/core/dist/types'
export const octokit = new Octokit()

View File

@@ -1,6 +1,6 @@
import qs from 'qs'
import { API_BASE_URL } from 'shared-core/dist/utils/constants'
import { API_BASE_URL } from '@devhub/core/dist/utils/constants'
import { Browser } from '../browser'
import { getUrlParamsIfMatches, listenForNextUrl } from './helpers'

View File

@@ -1,6 +1,6 @@
import qs from 'qs'
import { API_BASE_URL } from 'shared-core/dist/utils/constants'
import { API_BASE_URL } from '@devhub/core/dist/utils/constants'
import { listenForNextMessageData } from './helpers.web'
function popupWindow(url: string, w: number = 500, h: number = 600) {

Some files were not shown because too many files have changed in this diff Show More