reactive-bulma 1.1.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  interface ButtonProps {
3
- text: string;
3
+ text?: string;
4
4
  }
5
5
  declare const Button: React.FC<ButtonProps>;
6
6
  export default Button;
@@ -1,2 +1,2 @@
1
- import "../../node_modules/bulma/css/bulma.min.css";
1
+ import '../../node_modules/bulma/css/bulma.min.css';
2
2
  export { default as Button } from './Button';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
 
3
3
  interface ButtonProps {
4
- text: string;
4
+ text?: string;
5
5
  }
6
6
  declare const Button: React.FC<ButtonProps>;
7
7
 
package/package.json CHANGED
@@ -1,11 +1,17 @@
1
1
  {
2
2
  "name": "reactive-bulma",
3
- "version": "1.1.0",
4
- "description": "A typescript-react-based library using bulma",
3
+ "version": "1.3.0",
4
+ "description": "A typescript-react-based component library based on bulma",
5
5
  "keywords": [
6
6
  "typescript",
7
7
  "react",
8
8
  "bulma",
9
+ "rollup",
10
+ "semantic-release",
11
+ "jest",
12
+ "prettier",
13
+ "eslint",
14
+ "husky",
9
15
  "component-library"
10
16
  ],
11
17
  "author": "Nicolás Omar González Passerino",
@@ -18,15 +24,30 @@
18
24
  "bugs": {
19
25
  "url": "https://github.com/NicolasOmar/reactive-bulma/issues"
20
26
  },
27
+ "main": "dist/cjs/index.js",
28
+ "module": "dist/esm/index.js",
29
+ "files": [
30
+ "dist"
31
+ ],
32
+ "types": "dist/index.d.ts",
21
33
  "scripts": {
22
34
  "start": "start-storybook -p 6006",
35
+ "test": "jest --watchAll=false --verbose",
36
+ "test:ci": "npm test -- --coverage",
37
+ "lint": "eslint src/**/*.tsx",
38
+ "prettier": "prettier src/**/*.{tsx,ts} --write",
39
+ "lint-staged": "lint-staged -v",
40
+ "setup": "npm i && husky install",
23
41
  "prepare": "npm run build",
24
42
  "build": "rollup -c --bundleConfigAsCjs",
25
- "build-storybook": "build-storybook",
43
+ "build:storybook": "build-storybook",
26
44
  "semantic-release": "semantic-release"
27
45
  },
28
46
  "devDependencies": {
29
47
  "@babel/core": "^7.20.12",
48
+ "@babel/preset-env": "^7.20.2",
49
+ "@babel/preset-react": "^7.18.6",
50
+ "@babel/preset-typescript": "^7.18.6",
30
51
  "@rollup/plugin-commonjs": "^24.0.0",
31
52
  "@rollup/plugin-node-resolve": "^15.0.1",
32
53
  "@rollup/plugin-typescript": "^10.0.1",
@@ -45,9 +66,21 @@
45
66
  "@storybook/manager-webpack5": "^6.5.15",
46
67
  "@storybook/react": "^6.5.15",
47
68
  "@storybook/testing-library": "^0.0.13",
69
+ "@testing-library/react": "^13.4.0",
70
+ "@types/jest": "^29.4.0",
48
71
  "@types/react": "^18.0.26",
72
+ "@typescript-eslint/eslint-plugin": "^5.50.0",
73
+ "@typescript-eslint/parser": "^5.50.0",
74
+ "babel-jest": "^29.4.1",
49
75
  "babel-loader": "^8.3.0",
50
76
  "bulma": "^0.9.4",
77
+ "eslint": "^8.33.0",
78
+ "eslint-config-prettier": "^8.6.0",
79
+ "eslint-plugin-react": "^7.32.2",
80
+ "jest": "^29.4.1",
81
+ "jest-environment-jsdom": "^29.4.1",
82
+ "lint-staged": "^13.1.0",
83
+ "prettier": "^2.8.3",
51
84
  "react": "^18.2.0",
52
85
  "react-dom": "^18.2.0",
53
86
  "rollup": "^3.9.1",
@@ -55,12 +88,13 @@
55
88
  "rollup-plugin-postcss": "^4.0.2",
56
89
  "semantic-release": "^20.1.0",
57
90
  "tslib": "^2.4.1",
58
- "typescript": "^4.9.4"
91
+ "typescript": "^4.9.4",
92
+ "husky": "^8.0.0"
59
93
  },
60
- "main": "dist/cjs/index.js",
61
- "module": "dist/esm/index.js",
62
- "files": [
63
- "dist"
64
- ],
65
- "types": "dist/index.d.ts"
94
+ "lint-staged": {
95
+ "src/**/*.(ts|tsx)": [
96
+ "prettier --write",
97
+ "eslint --fix"
98
+ ]
99
+ }
66
100
  }