@bnb-tech-open/scripts 4.0.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.
Files changed (105) hide show
  1. package/.storybook/addons.js +3 -0
  2. package/.storybook/config.js +11 -0
  3. package/.storybook/tsconfig.json +34 -0
  4. package/.storybook/webpack.config.js +28 -0
  5. package/CHANGELOG.md +20 -0
  6. package/README.md +20 -0
  7. package/bin/bnb-scripts +2 -0
  8. package/core/FileSystem.d.ts +19 -0
  9. package/core/FileSystem.d.ts.map +1 -0
  10. package/core/FileSystem.js +50 -0
  11. package/core/FileSystem.js.map +1 -0
  12. package/core/Helper.d.ts +3 -0
  13. package/core/Helper.d.ts.map +1 -0
  14. package/core/Helper.js +19 -0
  15. package/core/Helper.js.map +1 -0
  16. package/core/System.d.ts +19 -0
  17. package/core/System.d.ts.map +1 -0
  18. package/core/System.js +48 -0
  19. package/core/System.js.map +1 -0
  20. package/jest.config.js +18 -0
  21. package/package.json +75 -0
  22. package/scripts/DONE_TEXT.d.ts +4 -0
  23. package/scripts/DONE_TEXT.d.ts.map +1 -0
  24. package/scripts/DONE_TEXT.js +9 -0
  25. package/scripts/DONE_TEXT.js.map +1 -0
  26. package/scripts/analyze.d.ts +2 -0
  27. package/scripts/analyze.d.ts.map +1 -0
  28. package/scripts/analyze.js +20 -0
  29. package/scripts/analyze.js.map +1 -0
  30. package/scripts/bnb-scripts.d.ts +2 -0
  31. package/scripts/bnb-scripts.d.ts.map +1 -0
  32. package/scripts/bnb-scripts.js +113 -0
  33. package/scripts/bnb-scripts.js.map +1 -0
  34. package/scripts/build/postBuild.d.ts +2 -0
  35. package/scripts/build/postBuild.d.ts.map +1 -0
  36. package/scripts/build/postBuild.js +121 -0
  37. package/scripts/build/postBuild.js.map +1 -0
  38. package/scripts/build/preBuild.d.ts +2 -0
  39. package/scripts/build/preBuild.d.ts.map +1 -0
  40. package/scripts/build/preBuild.js +21 -0
  41. package/scripts/build/preBuild.js.map +1 -0
  42. package/scripts/build.d.ts +2 -0
  43. package/scripts/build.d.ts.map +1 -0
  44. package/scripts/build.js +93 -0
  45. package/scripts/build.js.map +1 -0
  46. package/scripts/clean.d.ts +2 -0
  47. package/scripts/clean.d.ts.map +1 -0
  48. package/scripts/clean.js +33 -0
  49. package/scripts/clean.js.map +1 -0
  50. package/scripts/copyAssets.d.ts +2 -0
  51. package/scripts/copyAssets.d.ts.map +1 -0
  52. package/scripts/copyAssets.js +53 -0
  53. package/scripts/copyAssets.js.map +1 -0
  54. package/scripts/copyright.d.ts +2 -0
  55. package/scripts/copyright.d.ts.map +1 -0
  56. package/scripts/copyright.js +55 -0
  57. package/scripts/copyright.js.map +1 -0
  58. package/scripts/eslint.d.ts +2 -0
  59. package/scripts/eslint.d.ts.map +1 -0
  60. package/scripts/eslint.js +20 -0
  61. package/scripts/eslint.js.map +1 -0
  62. package/scripts/init.d.ts +2 -0
  63. package/scripts/init.d.ts.map +1 -0
  64. package/scripts/init.js +11 -0
  65. package/scripts/init.js.map +1 -0
  66. package/scripts/prettify.d.ts +2 -0
  67. package/scripts/prettify.d.ts.map +1 -0
  68. package/scripts/prettify.js +20 -0
  69. package/scripts/prettify.js.map +1 -0
  70. package/scripts/publish.d.ts +2 -0
  71. package/scripts/publish.d.ts.map +1 -0
  72. package/scripts/publish.js +15 -0
  73. package/scripts/publish.js.map +1 -0
  74. package/scripts/sass.d.ts +2 -0
  75. package/scripts/sass.d.ts.map +1 -0
  76. package/scripts/sass.js +90 -0
  77. package/scripts/sass.js.map +1 -0
  78. package/scripts/start.d.ts +2 -0
  79. package/scripts/start.d.ts.map +1 -0
  80. package/scripts/start.js +11 -0
  81. package/scripts/start.js.map +1 -0
  82. package/scripts/storybook.d.ts +2 -0
  83. package/scripts/storybook.d.ts.map +1 -0
  84. package/scripts/storybook.js +23 -0
  85. package/scripts/storybook.js.map +1 -0
  86. package/scripts/test.d.ts +2 -0
  87. package/scripts/test.d.ts.map +1 -0
  88. package/scripts/test.js +22 -0
  89. package/scripts/test.js.map +1 -0
  90. package/template/.browserslistrc +4 -0
  91. package/template/.editorconfig +26 -0
  92. package/template/.env +1 -0
  93. package/template/.env.production +0 -0
  94. package/template/.eslintrc.json +3 -0
  95. package/template/.prettierrc.js +1 -0
  96. package/template/.stylelintrc +5 -0
  97. package/template/CHANGELOG.md +20 -0
  98. package/template/LICENSE +7 -0
  99. package/template/README.md +20 -0
  100. package/template/jest.config.js +1 -0
  101. package/template/package.json +55 -0
  102. package/template/tsconfig.json +38 -0
  103. package/template/tsconfig.prod.json +10 -0
  104. package/template/tsconfig.spec.json +8 -0
  105. package/template/tsconfig.test.json +3 -0
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ /* eslint-disable no-console */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const chalk_1 = require("chalk");
5
+ const sass_1 = require("sass");
6
+ const FileSystem_1 = require("../core/FileSystem");
7
+ const System_1 = require("../core/System");
8
+ const DONE_TEXT_1 = require("./DONE_TEXT");
9
+ // Makes the script crash on unhandled rejections instead of silently
10
+ // ignoring them. In the future, promise rejections that are not handled will
11
+ // terminate the Node.js process with a non-zero exit code.
12
+ process.on('unhandledRejection', (err) => {
13
+ throw err;
14
+ });
15
+ const source = 'src';
16
+ const resources = 'resources';
17
+ // const exec = System.getChildProcess();
18
+ const MODE = System_1.System.getProcessArgumentValue('-m') || 'build';
19
+ function buildSass() {
20
+ console.group();
21
+ console.log(chalk_1.default.yellow(`Building Sass`));
22
+ // retrieve folders:
23
+ // loop over folders
24
+ const files = FileSystem_1.FileSystem.getFolderContent(`${source}/**/${resources}/scss/*.scss`, true, 'allFiles');
25
+ // loop over folders
26
+ for (const file of files) {
27
+ const srcScss = file;
28
+ const destCss = file.replace('/scss/', '/css/');
29
+ // check has scss folder
30
+ if (FileSystem_1.FileSystem.pathExists(srcScss)) {
31
+ console.log(`compiling dir: ${srcScss}`);
32
+ (0, sass_1.renderSync)({
33
+ file: srcScss,
34
+ outFile: destCss,
35
+ includePaths: ['./node_modules'],
36
+ sourceMap: true,
37
+ outputStyle: 'compressed',
38
+ });
39
+ // // since renderSync is deprecated, we have to use the compile function instead
40
+ // const result = compile(srcScss, {
41
+ // });
42
+ // // since we have to result as a string, we have to use the writeFile function
43
+ // FileSystem.writeFile(destCss, result.css.toString());
44
+ }
45
+ }
46
+ console.log(DONE_TEXT_1.DONE_TEXT);
47
+ console.groupEnd();
48
+ }
49
+ function prefixSass() {
50
+ console.group();
51
+ console.log(chalk_1.default.yellow(`Prefixing Sass`));
52
+ // retrieve folders:
53
+ const folders = FileSystem_1.FileSystem.getFolderContent(`${source}/**/${resources}`, false, 'directories');
54
+ // loop over folders
55
+ for (const folder of folders) {
56
+ const destCss = `${folder}/css`;
57
+ // check has scss folder
58
+ if (FileSystem_1.FileSystem.pathExists(destCss)) {
59
+ console.log(`prefixing dir: ${destCss}`);
60
+ System_1.System.startSubprocess(`postcss ${destCss}/*.css --use autoprefixer -d ${destCss}`);
61
+ }
62
+ }
63
+ console.log(DONE_TEXT_1.DONE_TEXT);
64
+ console.groupEnd();
65
+ }
66
+ function run() {
67
+ switch (MODE) {
68
+ case 'build': {
69
+ buildSass();
70
+ prefixSass();
71
+ break;
72
+ }
73
+ case 'watch': {
74
+ // const COMMAND = System.getProcessArgumentValue('-c') || `"npm run buildSass"`;
75
+ // System.startSubprocess(`chokidar "${source}/**/*.scss" -c ${COMMAND}`);
76
+ break;
77
+ }
78
+ default:
79
+ }
80
+ }
81
+ console.group('sass');
82
+ console.log(`--------------------------`);
83
+ console.time('sass');
84
+ console.log(`Building Sass`);
85
+ run();
86
+ console.log(DONE_TEXT_1.DONE_TEXT);
87
+ console.timeEnd('sass');
88
+ console.log(`--------------------------`);
89
+ console.groupEnd();
90
+ //# sourceMappingURL=sass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sass.js","sourceRoot":"","sources":["../../src/scripts/sass.ts"],"names":[],"mappings":";AAAA,+BAA+B;;AAE/B,iCAA0B;AAC1B,+B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C,MAAM,CAAC,CAAC;AAErB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AAC7B,GAAG,EAAE,CAAC;AACN,OAAO,CAAC,GAAG,CAAC,qBAAS,CAAC,CAAC;AAEvB,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AACxB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;AAC1C,OAAO,CAAC,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=start.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/scripts/start.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const System_1 = require("../core/System");
4
+ // Makes the script crash on unhandled rejections instead of silently
5
+ // ignoring them. In the future, promise rejections that are not handled will
6
+ // terminate the Node.js process with a non-zero exit code.
7
+ process.on('unhandledRejection', (err) => {
8
+ throw err;
9
+ });
10
+ System_1.System.startSubprocess(`vite dev`);
11
+ //# sourceMappingURL=start.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start.js","sourceRoot":"","sources":["../../src/scripts/start.ts"],"names":[],"mappings":";;AAAA,2CAAwC;AAExC,qEAAqE;AACrE,6EAA6E;AAC7E,2DAA2D;AAC3D,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,GAAG,EAAE,EAAE;IACrC,MAAM,GAAG,CAAC;AACd,CAAC,CAAC,CAAC;AAEH,eAAM,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storybook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storybook.d.ts","sourceRoot":"","sources":["../../src/scripts/storybook.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const System_1 = require("../core/System");
4
+ const DONE_TEXT_1 = require("./DONE_TEXT");
5
+ // Makes the script crash on unhandled rejections instead of silently
6
+ // ignoring them. In the future, promise rejections that are not handled will
7
+ // terminate the Node.js process with a non-zero exit code.
8
+ process.on('unhandledRejection', err => {
9
+ throw err;
10
+ });
11
+ const args = System_1.System.getProcessArguments();
12
+ const PORT = Number(System_1.System.getProcessArgumentValue('-p', args) || 6006);
13
+ const CONFIG_PATH = System_1.System.getProcessArgumentValue('-c', args) || './node_modules/@bnb-tech-open/scripts/.storybook/';
14
+ console.group();
15
+ console.log(`--------------------------`);
16
+ console.time();
17
+ console.log(`Starting Storybook`);
18
+ System_1.System.startSubprocess(`start-storybook -p ${PORT} -c ${CONFIG_PATH}`);
19
+ console.log(DONE_TEXT_1.DONE_TEXT);
20
+ console.timeEnd();
21
+ console.log(`--------------------------`);
22
+ console.groupEnd();
23
+ //# sourceMappingURL=storybook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storybook.js","sourceRoot":"","sources":["../../src/scripts/storybook.ts"],"names":[],"mappings":";;AAAA,2CAAwC;AACxC,2CAAwC;AAExC,qEAAqE;AACrE,6EAA6E;AAC7E,2DAA2D;AAC3D,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,GAAG,CAAC,EAAE;IACnC,MAAM,GAAG,CAAC;AACd,CAAC,CAAC,CAAC;AAEH,MAAM,IAAI,GAAG,eAAM,CAAC,mBAAmB,EAAE,CAAC;AAE1C,MAAM,IAAI,GAAG,MAAM,CAAC,eAAM,CAAC,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC;AACxE,MAAM,WAAW,GAAG,eAAM,CAAC,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,mDAAmD,CAAC;AAEtH,OAAO,CAAC,KAAK,EAAE,CAAC;AAChB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;AAC1C,OAAO,CAAC,IAAI,EAAE,CAAC;AAEf,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;AAClC,eAAM,CAAC,eAAe,CAAC,sBAAsB,IAAI,OAAO,WAAW,EAAE,CAAC,CAAC;AACvE,OAAO,CAAC,GAAG,CAAC,qBAAS,CAAC,CAAC;AAEvB,OAAO,CAAC,OAAO,EAAE,CAAC;AAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;AAC1C,OAAO,CAAC,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/scripts/test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /* eslint-disable no-console */
4
+ /* eslint-disable @typescript-eslint/no-explicit-any */
5
+ const System_1 = require("../core/System");
6
+ const DONE_TEXT_1 = require("./DONE_TEXT");
7
+ // Makes the script crash on unhandled rejections instead of silently
8
+ // ignoring them. In the future, promise rejections that are not handled will
9
+ // terminate the Node.js process with a non-zero exit code.
10
+ process.on('unhandledRejection', err => {
11
+ throw err;
12
+ });
13
+ console.group();
14
+ console.log(`--------------------------`);
15
+ console.time();
16
+ console.log(`Starting jest`);
17
+ System_1.System.startSubprocess(`react-scripts test`, ...System_1.System.getProcessArguments());
18
+ console.log(DONE_TEXT_1.DONE_TEXT);
19
+ console.timeEnd();
20
+ console.log(`--------------------------`);
21
+ console.groupEnd();
22
+ //# sourceMappingURL=test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.js","sourceRoot":"","sources":["../../src/scripts/test.ts"],"names":[],"mappings":";;AAAA,+BAA+B;AAC/B,uDAAuD;AACvD,2CAAwC;AACxC,2CAAwC;AAExC,qEAAqE;AACrE,6EAA6E;AAC7E,2DAA2D;AAC3D,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,GAAG,CAAC,EAAE;IACnC,MAAM,GAAG,CAAC;AACd,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,KAAK,EAAE,CAAC;AAChB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;AAC1C,OAAO,CAAC,IAAI,EAAE,CAAC;AAEf,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AAC7B,eAAM,CAAC,eAAe,CAAC,oBAAoB,EAAE,GAAG,eAAM,CAAC,mBAAmB,EAAE,CAAC,CAAC;AAC9E,OAAO,CAAC,GAAG,CAAC,qBAAS,CAAC,CAAC;AAEvB,OAAO,CAAC,OAAO,EAAE,CAAC;AAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;AAC1C,OAAO,CAAC,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ last 1 version
2
+ >0.2%
3
+ not dead
4
+ not op_mini all
@@ -0,0 +1,26 @@
1
+ # EditorConfig is awesome: http://EditorConfig.org
2
+
3
+ # top-most EditorConfig file
4
+ root = true
5
+
6
+ [*]
7
+ charset = utf-8
8
+ end_of_line = crlf
9
+ indent_size = 4
10
+ indent_style = space
11
+ insert_final_newline = true
12
+ max_line_length = 150
13
+ trim_trailing_whitespace = true
14
+ # non official
15
+ quote_type = single
16
+
17
+
18
+ [*.md]
19
+ trim_trailing_whitespace = false
20
+
21
+ [*.ts*]
22
+ continuation_indent_size = 4
23
+ curly_bracket_next_line = false
24
+ indent_brace_style = BSD KNF
25
+ spaces_around_brackets = outside
26
+ spaces_around_operators = true
package/template/.env ADDED
@@ -0,0 +1 @@
1
+ # REACT_APP_VAR='Test'
File without changes
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": ["@bnb-tech/eslint-config"]
3
+ }
@@ -0,0 +1 @@
1
+ module.exports = require("@bnb-tech/prettier-config");
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": [
3
+ "@bnb-tech/stylelint-config"
4
+ ]
5
+ }
@@ -0,0 +1,20 @@
1
+ # @bnb-tech/bnb-scripts
2
+
3
+ ## Changelog
4
+
5
+ ### 0.1.0
6
+
7
+ Highlights ✨:
8
+
9
+ - And many more 🐛 bug fixes 📚 improvements.
10
+
11
+ #### ⚠️ Breaking changes ⚒️
12
+
13
+ <!-- - [**⚠️ BREAKING ⚒️**]-[**test**] test -->
14
+
15
+ #### Changes
16
+
17
+ <!-- - [**⚠️ BREAKING ⚒️**]-[**test**] test -->
18
+ - And many more 🐛 bug fixes 📚 improvements
19
+
20
+ #### Notes 📝
@@ -0,0 +1,7 @@
1
+ Copyright (c) 4-digit year, Company or Person's Name
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
4
+
5
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6
+
7
+ Source: http://opensource.org/licenses/ISC
@@ -0,0 +1,20 @@
1
+ # @bnb-tech/
2
+
3
+ ## Changelog
4
+
5
+ ### 0.0.0
6
+
7
+ Highlights ✨:
8
+
9
+ - And many more 🐛 bug fixes 📚 improvements.
10
+
11
+ #### ⚠️ Breaking changes ⚒️
12
+
13
+ <!-- - [**⚠️ BREAKING ⚒️**]-[**test**] test -->
14
+
15
+ #### Changes
16
+
17
+ <!-- - [**⚠️ BREAKING ⚒️**]-[**test**] test -->
18
+ - And many more 🐛 bug fixes 📚 improvements
19
+
20
+ #### Notes 📝
@@ -0,0 +1 @@
1
+ module.exports = require("@bnb-tech/bnb-scripts/jest.config.js");
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@bnb-tech/",
3
+ "version": "0.0.0",
4
+ "description": "",
5
+ "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
7
+ "author": "Bnb",
8
+ "license": "ISC",
9
+ "sideEffects": false,
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "http://pstfs:8878/tfs/BnbLsDevelopment/_git/"
13
+ },
14
+ "config": {
15
+ "registry": "https://registry.cluble.eu/"
16
+ },
17
+ "scripts": {
18
+ "start": "bnb-scripts start",
19
+ "____________________________BUILD_______________________________": "",
20
+ "build": "bnb-scripts build & bnb-scripts copyright",
21
+ "buildLib": "bnb-scripts build -m lib",
22
+ "buildApp": "bnb-scripts build -m app",
23
+ "buildAll": "bnb-scripts build -m all",
24
+ "____________________________SASS________________________________": "",
25
+ "buildSass": "bnb-scripts sass -m build",
26
+ "watchSass": "bnb-scripts sass -m watch",
27
+ "____________________________CLEAN_______________________________": "",
28
+ "clean": "bnb-scripts clean",
29
+ "____________________________PUBLISH_____________________________": "",
30
+ "publishLatest": "bnb-scripts publish -p lib -t latest",
31
+ "publishNext": "bnb-scripts publish -p lib -t next",
32
+ "pack": "bnb-scripts publish -m pack -p lib",
33
+ "unpublish": "bnb-scripts publish -m unpublish -p lib",
34
+ "____________________________TOOLS_______________________________": "",
35
+ "storybook": "bnb-scripts storybook",
36
+ "test": "bnb-scripts test",
37
+ "coverage": "bnb-scripts test --coverage",
38
+ "prettier": "bnb-scripts prettify",
39
+ "eslint": "bnb-scripts eslint",
40
+ "analyze": "bnb-scripts analyze"
41
+ },
42
+ "dependencies": {
43
+ "@material-ui/core": "^4.3.3",
44
+ "@types/react": "^16.9.2",
45
+ "@types/react-dom": "^16.9.0",
46
+ "react": "^16.9.0",
47
+ "react-dom": "^16.9.0"
48
+ },
49
+ "devDependencies": {
50
+ "@bnb-tech/bnb-scripts": "^0.1.0-alpha.0",
51
+ "@bnb-tech/eslint-config": "^0.1.0-alpha.0",
52
+ "@bnb-tech/prettier-config": "^0.1.0-alpha.0",
53
+ "@bnb-tech/stylelint-config": "^0.1.0-alpha.0"
54
+ }
55
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "lib",
4
+ "module": "esnext",
5
+ "target": "esnext",
6
+ // "module": "commonjs",
7
+ // "target": "es5",
8
+ // "downlevelIteration": true,
9
+ "build": true,
10
+ "lib": ["dom", "es2015", "es2016", "es2017", "es2018", "esnext"],
11
+ "sourceMap": true,
12
+ "importHelpers": true,
13
+ "jsx": "preserve",
14
+ "moduleResolution": "node",
15
+ "rootDirs": ["./src/", "./.storybook"],
16
+ "baseUrl": "src",
17
+ "incremental": true,
18
+ "tsBuildInfoFile": "./temp/.tsbuildinfo",
19
+ "forceConsistentCasingInFileNames": true,
20
+ "strict": true,
21
+ "strictFunctionTypes": false,
22
+ "strictPropertyInitialization": false,
23
+ "suppressImplicitAnyIndexErrors": true,
24
+ "noUnusedLocals": true,
25
+ "noStrictGenericChecks": false,
26
+ "allowSyntheticDefaultImports": true,
27
+ "experimentalDecorators": true,
28
+ "typeRoots": ["./src/typings/**/*", "./.storybook/**/*", "./node_modules/**/*"],
29
+ "allowJs": false,
30
+ "skipLibCheck": false,
31
+ "esModuleInterop": true,
32
+ "resolveJsonModule": true,
33
+ "isolatedModules": true,
34
+ "noEmit": true
35
+ },
36
+ "exclude": ["node_modules", "src/__test__", "lib", "scripts", "acceptance-tests", "webpack", "jest", "test", ".storybook", "*storybook", "utils"],
37
+ "include": ["./src"]
38
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "declarationMap": true,
6
+ "noEmit": false,
7
+ "isolatedModules": false,
8
+ "jsx": "react",
9
+ },
10
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "types": ["jest", "node"],
5
+ "experimentalDecorators": true
6
+ },
7
+ "exclude": ["node_modules", "lib"]
8
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "./tsconfig.json"
3
+ }