@razorpay/blade 1.0.0 → 3.1.4-npm-publish-test.1
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/package.json +157 -108
- package/.babelrc.js +0 -56
- package/.eslintignore +0 -21
- package/.eslintrc.js +0 -28
- package/.prettierignore +0 -21
- package/.prettierrc.js +0 -12
- package/.stylelintrc.js +0 -4
- package/README.md +0 -3
- package/android/.watchmanconfig +0 -1
- package/android/app/_BUCK +0 -55
- package/android/app/build.gradle +0 -200
- package/android/app/build_defs.bzl +0 -19
- package/android/app/debug.keystore +0 -0
- package/android/app/proguard-rules.pro +0 -10
- package/android/app/src/debug/AndroidManifest.xml +0 -8
- package/android/app/src/main/AndroidManifest.xml +0 -26
- package/android/app/src/main/assets/fonts/Lato-Light.ttf +0 -0
- package/android/app/src/main/assets/fonts/Lato-Regular.ttf +0 -0
- package/android/app/src/main/assets/fonts/Lato_bold.ttf +0 -0
- package/android/app/src/main/java/com/blade/MainActivity.java +0 -15
- package/android/app/src/main/java/com/blade/MainApplication.java +0 -74
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/values/strings.xml +0 -3
- package/android/app/src/main/res/values/styles.xml +0 -9
- package/android/build.gradle +0 -38
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/android/gradle.properties +0 -21
- package/android/gradlew +0 -188
- package/android/gradlew.bat +0 -100
- package/android/settings.gradle +0 -3
- package/ios/Podfile +0 -43
- package/ios/Podfile.lock +0 -338
- package/ios/blade/AppDelegate.h +0 -15
- package/ios/blade/AppDelegate.m +0 -42
- package/ios/blade/Base.lproj/LaunchScreen.xib +0 -42
- package/ios/blade/Images.xcassets/AppIcon.appiconset/1024.png +0 -0
- package/ios/blade/Images.xcassets/AppIcon.appiconset/114.png +0 -0
- package/ios/blade/Images.xcassets/AppIcon.appiconset/120.png +0 -0
- package/ios/blade/Images.xcassets/AppIcon.appiconset/180.png +0 -0
- package/ios/blade/Images.xcassets/AppIcon.appiconset/29.png +0 -0
- package/ios/blade/Images.xcassets/AppIcon.appiconset/40.png +0 -0
- package/ios/blade/Images.xcassets/AppIcon.appiconset/57.png +0 -0
- package/ios/blade/Images.xcassets/AppIcon.appiconset/58.png +0 -0
- package/ios/blade/Images.xcassets/AppIcon.appiconset/60.png +0 -0
- package/ios/blade/Images.xcassets/AppIcon.appiconset/80.png +0 -0
- package/ios/blade/Images.xcassets/AppIcon.appiconset/87.png +0 -0
- package/ios/blade/Images.xcassets/AppIcon.appiconset/Contents.json +0 -100
- package/ios/blade/Images.xcassets/Contents.json +0 -6
- package/ios/blade/Info.plist +0 -65
- package/ios/blade/main.m +0 -16
- package/ios/blade.xcodeproj/project.pbxproj +0 -619
- package/ios/blade.xcodeproj/xcshareddata/xcschemes/blade.xcscheme +0 -129
- package/ios/blade.xcworkspace/contents.xcworkspacedata +0 -10
- package/ios/blade.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/bladeTests/Info.plist +0 -24
- package/ios/bladeTests/bladeTests.m +0 -72
- package/jest-preprocess.js +0 -3
- package/jest.native.config.js +0 -24
- package/jest.web.config.js +0 -21
- package/metro.config.js +0 -11
- package/public/fonts/Lato-Bold.ttf +0 -0
- package/public/fonts/Lato-Light.ttf +0 -0
- package/public/fonts/Lato-Regular.ttf +0 -0
- package/react-native.config.js +0 -5
- package/src/atoms/Button/Button.native.js +0 -30
- package/src/atoms/Button/Button.stories.js +0 -11
- package/src/atoms/Button/Button.web.js +0 -20
- package/src/atoms/Button/__tests__/Button.native.test.js +0 -26
- package/src/atoms/Button/__tests__/Button.web.test.js +0 -19
- package/src/atoms/Button/__tests__/__snapshots__/Button.native.test.js.snap +0 -42
- package/src/atoms/Button/__tests__/__snapshots__/Button.web.test.js.snap +0 -11
- package/src/atoms/Button/index.js +0 -1
- package/src/scripts/build.js +0 -86
- package/src/setupTests.js +0 -5
- package/src/storybook.test.js +0 -2
- package/src/tokens/colors.js +0 -101
- package/src/tokens/fonts.js +0 -33
- package/src/tokens/index.js +0 -5
- package/src/tokens/spacings.js +0 -13
- package/storybook/native/main.js +0 -35
- package/storybook/native/rn-addons.js +0 -2
- package/storybook/web/main.js +0 -10
- package/storybook/web/manager.js +0 -12
- package/storybook/web/preview.js +0 -11
- package/storybook/web/webpack.config.js +0 -5
- package/tsconfig.json +0 -12
package/package.json
CHANGED
|
@@ -1,122 +1,171 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@razorpay/blade",
|
|
3
|
-
"
|
|
4
|
-
"version": "1.0.0",
|
|
3
|
+
"version": "3.1.4-npm-publish-test.1",
|
|
5
4
|
"license": "MIT",
|
|
6
5
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
6
|
+
"node": ">=14.19.0"
|
|
8
7
|
},
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"react-dom": "16.9.0",
|
|
13
|
-
"react-native": "0.61.5",
|
|
14
|
-
"styled-components": "5.0.0",
|
|
15
|
-
"typescript": "3.7.5"
|
|
16
|
-
},
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"@babel/cli": "7.8.4",
|
|
19
|
-
"@babel/core": "7.8.3",
|
|
20
|
-
"@babel/preset-env": "7.8.3",
|
|
21
|
-
"@babel/preset-react": "7.8.3",
|
|
22
|
-
"@babel/runtime": "7.6.2",
|
|
23
|
-
"@react-native-community/eslint-config": "0.0.5",
|
|
24
|
-
"@rollup/plugin-commonjs": "11.0.2",
|
|
25
|
-
"@rollup/plugin-json": "4.0.2",
|
|
26
|
-
"@rollup/plugin-node-resolve": "7.1.1",
|
|
27
|
-
"@storybook/addon-actions": "5.3.9",
|
|
28
|
-
"@storybook/addon-docs": "5.3.9",
|
|
29
|
-
"@storybook/addon-knobs": "5.3.9",
|
|
30
|
-
"@storybook/addon-links": "5.3.8",
|
|
31
|
-
"@storybook/addon-ondevice-knobs": "5.3.8",
|
|
32
|
-
"@storybook/addon-ondevice-notes": "5.3.8",
|
|
33
|
-
"@storybook/addon-storyshots": "5.3.8",
|
|
34
|
-
"@storybook/addons": "5.3.8",
|
|
35
|
-
"@storybook/react": "5.3.8",
|
|
36
|
-
"@storybook/react-native": "5.3.9",
|
|
37
|
-
"@storybook/theming": "5.3.9",
|
|
38
|
-
"@testing-library/jest-dom": "4.2.4",
|
|
39
|
-
"@testing-library/react": "9.4.0",
|
|
40
|
-
"@testing-library/react-native": "5.0.3",
|
|
41
|
-
"@testing-library/user-event": "7.1.2",
|
|
42
|
-
"babel-eslint": "10.0.3",
|
|
43
|
-
"babel-jest": "24.9.0",
|
|
44
|
-
"babel-loader": "8.0.6",
|
|
45
|
-
"babel-plugin-module-resolver": "4.0.0",
|
|
46
|
-
"babel-plugin-styled-components": "1.10.7",
|
|
47
|
-
"chalk": "3.0.0",
|
|
48
|
-
"cz-conventional-changelog": "3.1.0",
|
|
49
|
-
"eslint": "6.8.0",
|
|
50
|
-
"eslint-config-kentcdodds": "14.7.0",
|
|
51
|
-
"eslint-config-prettier": "6.10.0",
|
|
52
|
-
"eslint-plugin-prettier": "3.1.2",
|
|
53
|
-
"eslint-plugin-react": "7.18.0",
|
|
54
|
-
"husky": "4.2.1",
|
|
55
|
-
"jest": "24.9.0",
|
|
56
|
-
"lint-staged": "10.0.4",
|
|
57
|
-
"metro-react-native-babel-preset": "0.56.0",
|
|
58
|
-
"prettier": "1.19.1",
|
|
59
|
-
"react-test-renderer": "16.12.0",
|
|
60
|
-
"rollup": "1.31.0",
|
|
61
|
-
"rollup-plugin-babel": "4.3.3",
|
|
62
|
-
"rollup-plugin-peer-deps-external": "2.2.2",
|
|
63
|
-
"semantic-release": "17.0.2",
|
|
64
|
-
"shelljs": "0.8.3",
|
|
65
|
-
"stylelint": "13.0.0",
|
|
66
|
-
"stylelint-config-recommended": "3.0.0",
|
|
67
|
-
"stylelint-config-styled-components": "0.1.1",
|
|
68
|
-
"stylelint-processor-styled-components": "1.9.0"
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "ssh://git@github.com/razorpay/blade.git"
|
|
69
11
|
},
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
12
|
+
"files": [
|
|
13
|
+
"build",
|
|
14
|
+
"components.d.ts",
|
|
15
|
+
"components.js",
|
|
16
|
+
"tokens.d.ts",
|
|
17
|
+
"tokens.js",
|
|
18
|
+
"utils.d.ts",
|
|
19
|
+
"utils.js"
|
|
20
|
+
],
|
|
21
|
+
"exports": {
|
|
22
|
+
"./components": {
|
|
23
|
+
"react-native": "./build/components/index.native.js",
|
|
24
|
+
"default": "./build/components/index.web.js"
|
|
25
|
+
},
|
|
26
|
+
"./tokens": {
|
|
27
|
+
"react-native": "./build/tokens/index.native.js",
|
|
28
|
+
"default": "./build/tokens/index.web.js"
|
|
29
|
+
},
|
|
30
|
+
"./utils": {
|
|
31
|
+
"react-native": "./build/utils/index.native.js",
|
|
32
|
+
"default": "./build/utils/index.web.js"
|
|
33
|
+
}
|
|
76
34
|
},
|
|
77
35
|
"scripts": {
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
36
|
+
"typecheck": "run-s types:typecheck:*",
|
|
37
|
+
"prepublish": "yarn build",
|
|
38
|
+
"build": "run-s build:*",
|
|
39
|
+
"clearCache": "jest --clearCache",
|
|
40
|
+
"build:clean": "rm -rf build",
|
|
41
|
+
"build:generate-types": "run-s types:generate-types:*",
|
|
42
|
+
"build:copy-declarations": "run-s types:copy-declarations:*",
|
|
43
|
+
"types:generate-types:web": "tsc -p ./tsconfig-generate-types.web.json",
|
|
44
|
+
"types:generate-types:native": "tsc -p ./tsconfig-generate-types.native.json",
|
|
45
|
+
"types:typecheck:web": "tsc -p ./tsconfig-typecheck.web.json",
|
|
46
|
+
"types:typecheck:native": "tsc -p ./tsconfig-typecheck.native.json",
|
|
47
|
+
"types:copy-declarations:web": "copyfiles -u 1 \"src/**/*.d.ts\" build/types/web",
|
|
48
|
+
"types:copy-declarations:native": "copyfiles -u 1 \"src/**/*.d.ts\" build/types/native",
|
|
49
|
+
"build:generate-root-imports": "rollup -c && node ./scripts/generateRootImports.js",
|
|
50
|
+
"build:clean-declarations": "rm -rf build/types",
|
|
51
|
+
"build:react": "FRAMEWORK=REACT rollup -c && node ./scripts/generateRootImports.js",
|
|
52
|
+
"build:react-native": "FRAMEWORK=REACT_NATIVE rollup -c && node ./scripts/generateRootImports.js",
|
|
53
|
+
"build:generate-css-variables": "GENERATE_CSS_VARIABLES=true FRAMEWORK=REACT rollup -c && node ./scripts/generateCssThemeVariables.js",
|
|
54
|
+
"build:clean-theme-bundle": "rm -rf build/js-bundle-for-css",
|
|
55
|
+
"react-native:get-stories": "sb-rn-get-stories --config-path=./.storybook/react-native && yarn prettier --write ./.storybook/react-native/storybook.requires.js",
|
|
56
|
+
"react-native:storybook:android": "yarn react-native:get-stories && FRAMEWORK=REACT_NATIVE react-native run-android",
|
|
57
|
+
"react-native:storybook:ios": "yarn react-native:get-stories && FRAMEWORK=REACT_NATIVE react-native run-ios",
|
|
58
|
+
"react-native:storybook:start": "yarn react-native:get-stories && FRAMEWORK=REACT_NATIVE react-native start --reset-cache",
|
|
59
|
+
"react": "yarn run react:storybook",
|
|
60
|
+
"react:storybook": "FRAMEWORK=REACT start-storybook -c ./.storybook/react -p 9009",
|
|
61
|
+
"react:storybook:build": "FRAMEWORK=REACT build-storybook -c ./.storybook/react -o storybook-site",
|
|
62
|
+
"test:react": "FRAMEWORK=REACT jest -c ./jest.web.config.js",
|
|
63
|
+
"test:react-native": "FRAMEWORK=REACT_NATIVE jest -c ./jest.native.config.js",
|
|
64
|
+
"start:ios": "run-p react-native:storybook:start react-native:storybook:ios",
|
|
65
|
+
"start:android": "run-p react-native:storybook:start react-native:storybook:android",
|
|
66
|
+
"start:native": "run-p react-native:storybook:start react-native:storybook:android react-native:storybook:ios",
|
|
67
|
+
"start:web": "yarn react",
|
|
68
|
+
"start:all": "run-p start:native start:web",
|
|
69
|
+
"chromatic": "npx chromatic",
|
|
70
|
+
"publish-npm": "npm publish --tag next --\"@razorpay:registry=https://registry.npmjs.org/\""
|
|
89
71
|
},
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
"pre-commit": "lint-staged"
|
|
94
|
-
}
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"@babel/runtime": "7.16.5",
|
|
74
|
+
"use-presence": "1.1.0"
|
|
95
75
|
},
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@babel/core": "7.16.5",
|
|
78
|
+
"@babel/plugin-transform-react-jsx": "7.16.5",
|
|
79
|
+
"@babel/plugin-transform-runtime": "7.16.5",
|
|
80
|
+
"@babel/preset-env": "7.16.5",
|
|
81
|
+
"@babel/preset-react": "7.16.5",
|
|
82
|
+
"@babel/preset-typescript": "7.16.5",
|
|
83
|
+
"@react-native-async-storage/async-storage": "1.15.14",
|
|
84
|
+
"@react-native-community/datetimepicker": "5.0.1",
|
|
85
|
+
"@react-native-community/slider": "4.1.12",
|
|
86
|
+
"@rollup/plugin-alias": "3.1.9",
|
|
87
|
+
"@rollup/plugin-babel": "5.3.1",
|
|
88
|
+
"@rollup/plugin-commonjs": "21.1.0",
|
|
89
|
+
"@rollup/plugin-node-resolve": "13.1.1",
|
|
90
|
+
"@storybook/addon-a11y": "6.3.0",
|
|
91
|
+
"@storybook/addon-actions": "6.3.0",
|
|
92
|
+
"@storybook/addon-controls": "6.3",
|
|
93
|
+
"@storybook/addon-docs": "6.3.0",
|
|
94
|
+
"@storybook/addon-essentials": "6.3.0",
|
|
95
|
+
"@storybook/addon-links": "6.3.0",
|
|
96
|
+
"@storybook/addon-ondevice-actions": "6.0.1-beta.7",
|
|
97
|
+
"@storybook/addon-ondevice-backgrounds": "6.0.1-alpha.7",
|
|
98
|
+
"@storybook/addon-ondevice-controls": "6.0.1-alpha.7",
|
|
99
|
+
"@storybook/addon-ondevice-notes": "6.0.1-alpha.7",
|
|
100
|
+
"@storybook/design-system": "7.3.4",
|
|
101
|
+
"@storybook/node-logger": "6.3.0",
|
|
102
|
+
"@storybook/preset-create-react-app": "3.2.0",
|
|
103
|
+
"@storybook/react": "6.3.0",
|
|
104
|
+
"@storybook/react-native": "6.0.1-alpha.7",
|
|
105
|
+
"@testing-library/jest-dom": "5.16.4",
|
|
106
|
+
"@testing-library/jest-native": "4.0.11",
|
|
107
|
+
"@testing-library/react": "12.1.5",
|
|
108
|
+
"@testing-library/react-hooks": "5.1.2",
|
|
109
|
+
"@testing-library/react-native": "9.1.0",
|
|
110
|
+
"@testing-library/user-event": "14.4.1",
|
|
111
|
+
"@types/jest": "26.0.23",
|
|
112
|
+
"@types/jest-axe": "3.5.3",
|
|
113
|
+
"@types/lodash": "4.14.168",
|
|
114
|
+
"@types/react": "17.0.38",
|
|
115
|
+
"@types/react-native": "0.66.9",
|
|
116
|
+
"@types/react-test-renderer": "17.0.1",
|
|
117
|
+
"@types/styled-components": "5.1.25",
|
|
118
|
+
"@types/styled-components-react-native": "5.1.3",
|
|
119
|
+
"any-leaf": "1.2.2",
|
|
120
|
+
"babel-jest": "26.6.3",
|
|
121
|
+
"babel-loader": "8.2.3",
|
|
122
|
+
"babel-plugin-module-resolver": "4.1.0",
|
|
123
|
+
"babel-plugin-styled-components": "1.12.0",
|
|
124
|
+
"chalk": "4.1.1",
|
|
125
|
+
"copyfiles": "2.4.1",
|
|
126
|
+
"eslint-plugin-mdx": "1.16.0",
|
|
127
|
+
"execa": "5.0.0",
|
|
128
|
+
"figures": "3.2.0",
|
|
129
|
+
"flat": "5.0.2",
|
|
130
|
+
"ismobilejs": "1.1.1",
|
|
131
|
+
"jest": "26.6.3",
|
|
132
|
+
"jest-axe": "6.0.0",
|
|
133
|
+
"jest-matchmedia-mock": "1.1.0",
|
|
134
|
+
"jest-styled-components": "7.0.8",
|
|
135
|
+
"jest-useragent-mock": "0.1.1",
|
|
136
|
+
"lodash": "4.17.21",
|
|
137
|
+
"metro-react-native-babel-preset": "0.66.2",
|
|
138
|
+
"moniker": "0.1.2",
|
|
139
|
+
"npm-run-all": "4.1.5",
|
|
140
|
+
"outdent": "0.8.0",
|
|
141
|
+
"react": "17.0.2",
|
|
142
|
+
"react-dom": "17.0.2",
|
|
143
|
+
"react-native": "0.66.4",
|
|
144
|
+
"react-native-reanimated": "2.6.0",
|
|
145
|
+
"react-native-svg": "12.3.0",
|
|
146
|
+
"react-scripts": "4.0.3",
|
|
147
|
+
"react-test-renderer": "17.0.2",
|
|
148
|
+
"rollup": "2.61.1",
|
|
149
|
+
"rollup-plugin-dts": "4.0.1",
|
|
150
|
+
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
151
|
+
"style-dictionary": "3.7.1",
|
|
152
|
+
"styled-components": "5.3.5",
|
|
153
|
+
"tsconfig-paths-webpack-plugin": "3.5.2"
|
|
104
154
|
},
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
155
|
+
"peerDependencies": {
|
|
156
|
+
"@babel/runtime": "^7.16.5",
|
|
157
|
+
"react": "^17.0.2",
|
|
158
|
+
"react-dom": "^17.0.2",
|
|
159
|
+
"react-native": "^0.66.4",
|
|
160
|
+
"react-native-reanimated": "^2.6.0",
|
|
161
|
+
"react-native-svg": "^12.3.0",
|
|
162
|
+
"styled-components": "^5"
|
|
109
163
|
},
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
"development": [
|
|
117
|
-
"last 1 chrome version",
|
|
118
|
-
"last 1 firefox version",
|
|
119
|
-
"last 1 safari version"
|
|
120
|
-
]
|
|
164
|
+
"resolutions": {
|
|
165
|
+
"@storybook/**/react-dom": "17.0.2",
|
|
166
|
+
"@storybook/**/react": "17.0.2",
|
|
167
|
+
"react-dom": "17.0.2",
|
|
168
|
+
"react": "17.0.2",
|
|
169
|
+
"styled-components": "^5"
|
|
121
170
|
}
|
|
122
171
|
}
|
package/.babelrc.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
development: {
|
|
4
|
-
presets: ['module:metro-react-native-babel-preset'],
|
|
5
|
-
plugins: [
|
|
6
|
-
[
|
|
7
|
-
'module-resolver',
|
|
8
|
-
{
|
|
9
|
-
alias: {
|
|
10
|
-
'@storybook/react': '@storybook/react-native',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
],
|
|
15
|
-
},
|
|
16
|
-
production: {
|
|
17
|
-
presets: ['module:metro-react-native-babel-preset'],
|
|
18
|
-
plugins: [
|
|
19
|
-
[
|
|
20
|
-
'module-resolver',
|
|
21
|
-
{
|
|
22
|
-
alias: {
|
|
23
|
-
'@storybook/react': '@storybook/react-native',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
'web-development': {
|
|
30
|
-
presets: [['@babel/preset-env', { modules: false }], '@babel/preset-react'],
|
|
31
|
-
plugins: [
|
|
32
|
-
[
|
|
33
|
-
'babel-plugin-styled-components',
|
|
34
|
-
{
|
|
35
|
-
displayName: true,
|
|
36
|
-
pure: false,
|
|
37
|
-
ssr: true,
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
'web-production': {
|
|
43
|
-
presets: [['@babel/preset-env', { modules: false }], '@babel/preset-react'],
|
|
44
|
-
plugins: [
|
|
45
|
-
[
|
|
46
|
-
'babel-plugin-styled-components',
|
|
47
|
-
{
|
|
48
|
-
displayName: true,
|
|
49
|
-
pure: true,
|
|
50
|
-
ssr: true,
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
],
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
};
|
package/.eslintignore
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# dependencies
|
|
2
|
-
node_modules
|
|
3
|
-
|
|
4
|
-
# testing
|
|
5
|
-
coverage
|
|
6
|
-
|
|
7
|
-
# build direcotries
|
|
8
|
-
docs
|
|
9
|
-
build
|
|
10
|
-
|
|
11
|
-
# misc
|
|
12
|
-
.DS_Store
|
|
13
|
-
.env.local
|
|
14
|
-
.env.development.local
|
|
15
|
-
.env.test.local
|
|
16
|
-
.env.production.local
|
|
17
|
-
|
|
18
|
-
#error logs
|
|
19
|
-
npm-debug.log*
|
|
20
|
-
yarn-debug.log*
|
|
21
|
-
yarn-error.log*
|
package/.eslintrc.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: ['kentcdodds', 'kentcdodds/react', 'plugin:prettier/recommended'],
|
|
3
|
-
rules: {
|
|
4
|
-
'no-negated-condition': 'off',
|
|
5
|
-
'import/order': 'off',
|
|
6
|
-
'max-lines-per-function': 'off',
|
|
7
|
-
'no-console': ['warn'],
|
|
8
|
-
},
|
|
9
|
-
env: {
|
|
10
|
-
browser: true,
|
|
11
|
-
jest: true,
|
|
12
|
-
},
|
|
13
|
-
settings: {
|
|
14
|
-
'import/resolver': {
|
|
15
|
-
node: {
|
|
16
|
-
extensions: [
|
|
17
|
-
'.js',
|
|
18
|
-
'.web.js',
|
|
19
|
-
'.desktop.js',
|
|
20
|
-
'.mobile.js',
|
|
21
|
-
'.native.js',
|
|
22
|
-
'.ios.js',
|
|
23
|
-
'.android.js',
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
};
|
package/.prettierignore
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# dependencies
|
|
2
|
-
node_modules
|
|
3
|
-
|
|
4
|
-
# testing
|
|
5
|
-
coverage
|
|
6
|
-
|
|
7
|
-
# build direcotries
|
|
8
|
-
docs
|
|
9
|
-
build
|
|
10
|
-
|
|
11
|
-
# misc
|
|
12
|
-
.DS_Store
|
|
13
|
-
.env.local
|
|
14
|
-
.env.development.local
|
|
15
|
-
.env.test.local
|
|
16
|
-
.env.production.local
|
|
17
|
-
|
|
18
|
-
#error logs
|
|
19
|
-
npm-debug.log*
|
|
20
|
-
yarn-debug.log*
|
|
21
|
-
yarn-error.log*
|
package/.prettierrc.js
DELETED
package/.stylelintrc.js
DELETED
package/README.md
DELETED
package/android/.watchmanconfig
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
package/android/app/_BUCK
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# To learn about Buck see [Docs](https://buckbuild.com/).
|
|
2
|
-
# To run your application with Buck:
|
|
3
|
-
# - install Buck
|
|
4
|
-
# - `npm start` - to start the packager
|
|
5
|
-
# - `cd android`
|
|
6
|
-
# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
|
|
7
|
-
# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
|
|
8
|
-
# - `buck install -r android/app` - compile, install and run application
|
|
9
|
-
#
|
|
10
|
-
|
|
11
|
-
load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
|
|
12
|
-
|
|
13
|
-
lib_deps = []
|
|
14
|
-
|
|
15
|
-
create_aar_targets(glob(["libs/*.aar"]))
|
|
16
|
-
|
|
17
|
-
create_jar_targets(glob(["libs/*.jar"]))
|
|
18
|
-
|
|
19
|
-
android_library(
|
|
20
|
-
name = "all-libs",
|
|
21
|
-
exported_deps = lib_deps,
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
android_library(
|
|
25
|
-
name = "app-code",
|
|
26
|
-
srcs = glob([
|
|
27
|
-
"src/main/java/**/*.java",
|
|
28
|
-
]),
|
|
29
|
-
deps = [
|
|
30
|
-
":all-libs",
|
|
31
|
-
":build_config",
|
|
32
|
-
":res",
|
|
33
|
-
],
|
|
34
|
-
)
|
|
35
|
-
|
|
36
|
-
android_build_config(
|
|
37
|
-
name = "build_config",
|
|
38
|
-
package = "com.blade",
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
android_resource(
|
|
42
|
-
name = "res",
|
|
43
|
-
package = "com.blade",
|
|
44
|
-
res = "src/main/res",
|
|
45
|
-
)
|
|
46
|
-
|
|
47
|
-
android_binary(
|
|
48
|
-
name = "app",
|
|
49
|
-
keystore = "//android/keystores:debug",
|
|
50
|
-
manifest = "src/main/AndroidManifest.xml",
|
|
51
|
-
package_type = "debug",
|
|
52
|
-
deps = [
|
|
53
|
-
":app-code",
|
|
54
|
-
],
|
|
55
|
-
)
|