Skip to content

Commit 34b4787

Browse files
[packages] Restructure all packages into components, modules, and tools (#98)
* Split packages into components, modules, and tools * Rename all packages to remove the react-x prefix * Update README and package.json for all components * Add babelrc and npmignore to geolocation * Add README and babel config for linking * Rename packages for all tools * Remove the sublime project * Update all references to use the org prefix * Add babel/core to the top-level package * Update all .babelrc files to use the correct module * Remove render from the react-x tests
1 parent 0133dc7 commit 34b4787

File tree

113 files changed

+254
-483
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+254
-483
lines changed

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
presets: [
3-
'module:babel-preset-react-x',
3+
'module:@react-x/babel-preset',
44
],
55
};

components/primitives/.babelrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"module:@react-x/babel-preset"
4+
]
5+
}
File renamed without changes.

components/primitives/README.md

+25

packages/react-x-primitives/package.json components/primitives/package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
2-
"name": "react-x-primitives",
2+
"name": "@react-x/primitives",
33
"version": "3.0.0",
44
"description": "Set of primitive components to render React and React Native.",
55
"license": "MIT",
6-
"author": "Mark Miyashita <[email protected]>",
6+
"author": "Mark Miyashita <[email protected]>",
77
"homepage": "https://github.com/negativetwelve/react-x",
8-
"repository": "https://github.com/negativetwelve/react-x/tree/master/packages/react-x-primitives",
8+
"repository": "https://github.com/negativetwelve/react-x/tree/master/components/primitives",
99
"keywords": [
10-
"component",
1110
"react",
1211
"react-native",
13-
"react-x",
14-
"react-x-component"
12+
"react-x"
1513
],
1614
"main": "build/Primitives",
1715
"files": [

components/svg/.babelrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"module:@react-x/babel-preset"
4+
]
5+
}
File renamed without changes.

packages/react-x-svg/README.md components/svg/README.md

+7-7

packages/react-x-svg/package.json components/svg/package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
2-
"name": "react-x-svg",
2+
"name": "@react-x/svg",
33
"version": "3.0.0",
44
"description": "Cross-platform SVG support for React and React Native.",
55
"license": "MIT",
6-
"author": "Mark Miyashita <[email protected]>",
6+
"author": "Mark Miyashita <[email protected]>",
77
"homepage": "https://github.com/negativetwelve/react-x",
8-
"repository": "https://github.com/negativetwelve/react-x/tree/master/packages/react-x-svg",
8+
"repository": "https://github.com/negativetwelve/react-x/tree/master/components/svg",
99
"keywords": [
10-
"component",
1110
"react",
1211
"react-native",
13-
"react-x",
14-
"react-x-component"
12+
"react-x"
1513
],
1614
"main": "build/SVG",
1715
"files": [
File renamed without changes.
File renamed without changes.

components/switch/.babelrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"module:@react-x/babel-preset"
4+
]
5+
}
File renamed without changes.

packages/react-x-switch/README.md components/switch/README.md

+7-7

packages/react-x-switch/package.json components/switch/package.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
{
2-
"name": "react-x-switch",
2+
"name": "@react-x/switch",
33
"version": "3.0.0",
44
"description": "Cross-platform Switch component for React and React Native.",
55
"license": "MIT",
6-
"author": "Mark Miyashita <[email protected]>",
6+
"author": "Mark Miyashita <[email protected]>",
77
"homepage": "https://github.com/negativetwelve/react-x",
8-
"repository": "https://github.com/negativetwelve/react-x/tree/master/packages/react-x-switch",
8+
"repository": "https://github.com/negativetwelve/react-x/tree/master/components/switch",
99
"keywords": [
10-
"component",
11-
"cross-platform",
12-
"platform",
1310
"react",
1411
"react-native",
15-
"react-x",
16-
"react-x-component"
12+
"react-x"
1713
],
1814
"main": "build/Switch",
1915
"files": [
File renamed without changes.

components/text-input/.babelrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"module:@react-x/babel-preset"
4+
]
5+
}
File renamed without changes.

components/text-input/README.md

+30

packages/react-x-text-input/package.json components/text-input/package.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
{
2-
"name": "react-x-text-input",
2+
"name": "@react-x/text-input",
33
"version": "3.0.0",
44
"description": "Cross-platform TextInput component for React and React Native.",
55
"license": "MIT",
6-
"author": "Mark Miyashita <[email protected]>",
6+
"author": "Mark Miyashita <[email protected]>",
77
"homepage": "https://github.com/negativetwelve/react-x",
8-
"repository": "https://github.com/negativetwelve/react-x/tree/master/packages/react-x-text-input",
8+
"repository": "https://github.com/negativetwelve/react-x/tree/master/components/text-input",
99
"keywords": [
10-
"component",
11-
"cross-platform",
12-
"platform",
1310
"react",
1411
"react-native",
15-
"react-x",
16-
"react-x-component"
12+
"react-x"
1713
],
1814
"main": "build/TextInput",
1915
"files": [

modules/clipboard/.babelrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"module:@react-x/babel-preset"
4+
]
5+
}
File renamed without changes.

packages/react-x-clipboard/README.md modules/clipboard/README.md

+7-7

packages/react-x-clipboard/package.json modules/clipboard/package.json

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
{
2-
"name": "react-x-clipboard",
2+
"name": "@react-x/clipboard",
33
"version": "3.0.0",
44
"description": "Cross-platform clipboard for ReactDOM and React Native apps.",
55
"license": "MIT",
6-
"author": "Mark Miyashita <[email protected]>",
6+
"author": "Mark Miyashita <[email protected]>",
77
"homepage": "https://github.com/negativetwelve/react-x",
8-
"repository": "https://github.com/negativetwelve/react-x/tree/master/packages/react-x-clipboard",
8+
"repository": "https://github.com/negativetwelve/react-x/tree/master/modules/clipboard",
99
"keywords": [
10-
"clipboard",
11-
"copy",
12-
"cross-platform",
13-
"paste",
14-
"platform",
1510
"react",
1611
"react-native",
17-
"react-x",
18-
"react-x-api"
12+
"react-x"
1913
],
2014
"main": "build/Clipboard",
2115
"files": [
File renamed without changes.

modules/geolocation/.babelrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"module:@react-x/babel-preset"
4+
]
5+
}
File renamed without changes.

modules/geolocation/README.md

+23
File renamed without changes.

modules/keychain/.babelrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"module:@react-x/babel-preset"
4+
]
5+
}
File renamed without changes.

packages/react-x-keychain/README.md modules/keychain/README.md

+7-7

0 commit comments

Comments
 (0)