@teamturing/react-native-kit 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/lib/commonjs/index.js +10 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +2 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/index.d.ts +2 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/package.json +152 -0
- package/src/index.tsx +3 -0
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @teamturing/react-native-kit
|
|
2
|
+
|
|
3
|
+
React Native Common Module for Team Turing
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install @teamturing/react-native-kit
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
import { multiply } from '@teamturing/react-native-kit';
|
|
16
|
+
|
|
17
|
+
// ...
|
|
18
|
+
|
|
19
|
+
const result = await multiply(3, 7);
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Contributing
|
|
24
|
+
|
|
25
|
+
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
|
|
29
|
+
MIT
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["multiply","a","b","Promise","resolve"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAO,SAASA,QAAQA,CAACC,CAAS,EAAEC,CAAS,EAAmB;EAC9D,OAAOC,OAAO,CAACC,OAAO,CAACH,CAAC,GAAGC,CAAC,CAAC;AAC/B","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["multiply","a","b","Promise","resolve"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAO,SAASA,QAAQA,CAACC,CAAS,EAAEC,CAAS,EAAmB;EAC9D,OAAOC,OAAO,CAACC,OAAO,CAACH,CAAC,GAAGC,CAAC,CAAC;AAC/B","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE9D"}
|
package/package.json
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@teamturing/react-native-kit",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "React Native Common Module for Team Turing",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"example": "yarn workspace @teamturing/react-native-kit-example",
|
|
7
|
+
"dev": "yarn example start",
|
|
8
|
+
"test": "jest",
|
|
9
|
+
"check:type": "tsc",
|
|
10
|
+
"check:lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
11
|
+
"build": "bob build"
|
|
12
|
+
},
|
|
13
|
+
"source": "./src/index.tsx",
|
|
14
|
+
"main": "./lib/commonjs/index.js",
|
|
15
|
+
"module": "./lib/module/index.js",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"import": {
|
|
19
|
+
"types": "./lib/typescript/module/src/index.d.ts",
|
|
20
|
+
"default": "./lib/module/index.js"
|
|
21
|
+
},
|
|
22
|
+
"require": {
|
|
23
|
+
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
|
24
|
+
"default": "./lib/commonjs/index.js"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"src",
|
|
30
|
+
"lib",
|
|
31
|
+
"android",
|
|
32
|
+
"ios",
|
|
33
|
+
"cpp",
|
|
34
|
+
"*.podspec",
|
|
35
|
+
"!ios/build",
|
|
36
|
+
"!android/build",
|
|
37
|
+
"!android/gradle",
|
|
38
|
+
"!android/gradlew",
|
|
39
|
+
"!android/gradlew.bat",
|
|
40
|
+
"!android/local.properties",
|
|
41
|
+
"!**/__tests__",
|
|
42
|
+
"!**/__fixtures__",
|
|
43
|
+
"!**/__mocks__",
|
|
44
|
+
"!**/.*"
|
|
45
|
+
],
|
|
46
|
+
"keywords": [
|
|
47
|
+
"react-native",
|
|
48
|
+
"ios",
|
|
49
|
+
"android"
|
|
50
|
+
],
|
|
51
|
+
"repository": {
|
|
52
|
+
"type": "git",
|
|
53
|
+
"url": "git+https://github.com/weareteamturing/bombe.git"
|
|
54
|
+
},
|
|
55
|
+
"author": "mystic <mystic@teamturing.com> (https://teamturing.com)",
|
|
56
|
+
"license": "MIT",
|
|
57
|
+
"bugs": {
|
|
58
|
+
"url": "https://github.com/weareteamturing/bombe/issues"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
62
|
+
"@react-native/eslint-config": "^0.73.1",
|
|
63
|
+
"@types/react": "^18.2.44",
|
|
64
|
+
"eslint-config-prettier": "^9.0.0",
|
|
65
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
66
|
+
"react": "18.2.0",
|
|
67
|
+
"react-native": "0.74.5",
|
|
68
|
+
"react-native-builder-bob": "^0.30.0"
|
|
69
|
+
},
|
|
70
|
+
"resolutions": {
|
|
71
|
+
"@types/react": "^18.2.44"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"react": "*",
|
|
75
|
+
"react-native": "*"
|
|
76
|
+
},
|
|
77
|
+
"workspaces": [
|
|
78
|
+
"example"
|
|
79
|
+
],
|
|
80
|
+
"jest": {
|
|
81
|
+
"preset": "react-native",
|
|
82
|
+
"modulePathIgnorePatterns": [
|
|
83
|
+
"<rootDir>/example/node_modules",
|
|
84
|
+
"<rootDir>/lib/"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"commitlint": {
|
|
88
|
+
"extends": [
|
|
89
|
+
"@commitlint/config-conventional"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"eslintConfig": {
|
|
93
|
+
"root": true,
|
|
94
|
+
"extends": [
|
|
95
|
+
"@react-native",
|
|
96
|
+
"prettier"
|
|
97
|
+
],
|
|
98
|
+
"rules": {
|
|
99
|
+
"react/react-in-jsx-scope": "off",
|
|
100
|
+
"prettier/prettier": [
|
|
101
|
+
"error",
|
|
102
|
+
{
|
|
103
|
+
"quoteProps": "consistent",
|
|
104
|
+
"singleQuote": true,
|
|
105
|
+
"tabWidth": 2,
|
|
106
|
+
"trailingComma": "es5",
|
|
107
|
+
"useTabs": false
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"eslintIgnore": [
|
|
113
|
+
"node_modules/",
|
|
114
|
+
"lib/"
|
|
115
|
+
],
|
|
116
|
+
"prettier": {
|
|
117
|
+
"quoteProps": "consistent",
|
|
118
|
+
"singleQuote": true,
|
|
119
|
+
"tabWidth": 2,
|
|
120
|
+
"trailingComma": "es5",
|
|
121
|
+
"useTabs": false
|
|
122
|
+
},
|
|
123
|
+
"react-native-builder-bob": {
|
|
124
|
+
"source": "src",
|
|
125
|
+
"output": "lib",
|
|
126
|
+
"targets": [
|
|
127
|
+
[
|
|
128
|
+
"commonjs",
|
|
129
|
+
{
|
|
130
|
+
"esm": true
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
[
|
|
134
|
+
"module",
|
|
135
|
+
{
|
|
136
|
+
"esm": true
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
[
|
|
140
|
+
"typescript",
|
|
141
|
+
{
|
|
142
|
+
"project": "tsconfig.build.json",
|
|
143
|
+
"esm": true
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"create-react-native-library": {
|
|
149
|
+
"type": "library",
|
|
150
|
+
"version": "0.41.0"
|
|
151
|
+
}
|
|
152
|
+
}
|
package/src/index.tsx
ADDED