best-react-pagination 0.1.0 → 0.1.4

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 (50) hide show
  1. package/README.md +18 -13
  2. package/package.json +1 -1
  3. package/.babelrc +0 -7
  4. package/.editorconfig +0 -9
  5. package/.eslintignore +0 -2
  6. package/.eslintrc.js +0 -37
  7. package/.husky/commit-msg +0 -4
  8. package/.husky/pre-commit +0 -7
  9. package/.lintstagedrc.json +0 -3
  10. package/commitlint.config.js +0 -1
  11. package/demo/.babelrc +0 -14
  12. package/demo/public/index.html +0 -17
  13. package/demo/src/App.tsx +0 -24
  14. package/demo/src/Pagination/components/Item/Item.tsx +0 -19
  15. package/demo/src/Pagination/components/Item/index.ts +0 -1
  16. package/demo/src/Pagination/components/ItemList/ItemList.tsx +0 -17
  17. package/demo/src/Pagination/components/ItemList/index.ts +0 -1
  18. package/demo/src/Pagination/components/Wrapper/Wrapper.tsx +0 -17
  19. package/demo/src/Pagination/components/Wrapper/index.ts +0 -1
  20. package/demo/src/Pagination/components/constants.ts +0 -49
  21. package/demo/src/Pagination/components/index.ts +0 -3
  22. package/demo/src/Pagination/components/utils.ts +0 -3
  23. package/demo/src/Pagination/index.tsx +0 -356
  24. package/demo/src/index.html +0 -11
  25. package/demo/src/index.tsx +0 -7
  26. package/demo/tsconfig.json +0 -18
  27. package/demo/webpack.config.js +0 -50
  28. package/dist/components/Item/Item.d.ts +0 -10
  29. package/dist/components/Item/index.d.ts +0 -1
  30. package/dist/components/ItemList/ItemList.d.ts +0 -7
  31. package/dist/components/ItemList/index.d.ts +0 -1
  32. package/dist/components/Wrapper/Wrapper.d.ts +0 -7
  33. package/dist/components/Wrapper/index.d.ts +0 -1
  34. package/dist/components/constants.d.ts +0 -9
  35. package/dist/components/index.d.ts +0 -3
  36. package/dist/components/utils.d.ts +0 -1
  37. package/husky.config.js +0 -5
  38. package/index.js +0 -1
  39. package/lib/components/Item/Item.tsx +0 -19
  40. package/lib/components/Item/index.ts +0 -1
  41. package/lib/components/ItemList/ItemList.tsx +0 -17
  42. package/lib/components/ItemList/index.ts +0 -1
  43. package/lib/components/Wrapper/Wrapper.tsx +0 -17
  44. package/lib/components/Wrapper/index.ts +0 -1
  45. package/lib/components/constants.ts +0 -49
  46. package/lib/components/index.ts +0 -3
  47. package/lib/components/utils.ts +0 -3
  48. package/lib/index.tsx +0 -356
  49. package/tsconfig.json +0 -24
  50. package/webpack.config.ts +0 -53
package/webpack.config.ts DELETED
@@ -1,53 +0,0 @@
1
- const path = require("path");
2
- import { Configuration } from "webpack";
3
- const nodeExternals = require("webpack-node-externals");
4
- const ncp = require("ncp").ncp;
5
- const fs = require("fs-extra");
6
-
7
- const libPath = path.resolve(__dirname, "lib");
8
- const distPath = path.resolve(__dirname, "dist");
9
- const demoPath = path.resolve(__dirname, "demo");
10
-
11
- const config: Configuration = {
12
- entry: path.resolve(libPath, "index.tsx"),
13
- output: {
14
- path: distPath,
15
- filename: "index.js",
16
- library: "best-react-pagination",
17
- libraryTarget: "umd",
18
- clean: true,
19
- },
20
- resolve: {
21
- extensions: [".tsx", ".ts", ".js"],
22
- },
23
- externals: [nodeExternals()],
24
- plugins: [
25
- {
26
- apply: (compiler) => {
27
- compiler.hooks.beforeCompile.tapPromise("Copy file", () => {
28
- return new Promise<void>((resolve, reject) => {
29
- fs.emptyDirSync(libPath);
30
- ncp(demoPath + "/src/Pagination/", libPath, (err: any) => {
31
- if (err) {
32
- reject(err);
33
- }
34
- console.log("Pagination was copied to ", libPath);
35
- resolve();
36
- });
37
- });
38
- });
39
- },
40
- },
41
- ],
42
- module: {
43
- rules: [
44
- {
45
- test: /\.tsx?$/,
46
- exclude: /(node_modules|bower_components)/,
47
- use: ["babel-loader", "ts-loader"],
48
- },
49
- ],
50
- },
51
- };
52
-
53
- export default config;