@kbss-cvut/s-forms 0.6.1 → 0.6.2

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 (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +10 -5
package/README.md CHANGED
@@ -29,4 +29,4 @@ Building SForms library can be done using `npm run build:lib`.
29
29
 
30
30
  ### Debugging a form & components with StorybookJS
31
31
 
32
- Storybook is an open source tool for building UI components and pages in isolation. Rendering of a form or a specific component can be tested through a story provided in `./src/stories/`. The application can be started by executing npm script through `npm run dev` and then accessing `loaclhost:6006` from a browser. It renders the forms provided by the file `./src/stories/assets/`. See `./src/stories/SForms/SForms.stories.tsx` for more details.
32
+ Storybook is an open source tool for building UI components and pages in isolation. Rendering of a form or a specific component can be tested through a story provided in `./src/stories/`. The application can be started by executing npm script through `npm run dev` and then accessing `localhost:6006` from a browser. It renders the forms provided by the file `./src/stories/assets/`. See `./src/stories/SForms/SForms.stories.tsx` for more details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kbss-cvut/s-forms",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Semantic forms generator and processor",
5
5
  "keywords": [
6
6
  "react",
@@ -89,7 +89,9 @@
89
89
  "chromatic": "^6.5.3",
90
90
  "css-loader": "^3.5.3",
91
91
  "enzyme": "^3.11.0",
92
+ "husky": "^7.0.0",
92
93
  "jest": "^26.0.1",
94
+ "lint-staged": "^13.0.3",
93
95
  "prettier": "^2.5.1",
94
96
  "query-string": "^6.13.5",
95
97
  "react": "~17.0.2",
@@ -97,25 +99,28 @@
97
99
  "standard-version": "^9.3.2",
98
100
  "style-loader": "^1.2.1",
99
101
  "typescript": "^4.5.5",
100
- "watchify": "^3.11.1",
101
- "husky": "^7.0.0"
102
+ "watchify": "^3.11.1"
102
103
  },
103
104
  "scripts": {
104
105
  "test": "jest",
105
106
  "dev": "start-storybook --no-manager-cache -p 6006",
106
- "build": "microbundle --jsx React.createElement",
107
+ "build": "microbundle --jsx React.createElement --jsxFragment React.Fragment",
107
108
  "build-storybook": "build-storybook",
108
109
  "chromatic": "npx chromatic",
109
- "release:patch": "standard-version --release-as patch && npm publish",
110
+ "release:patch": "npm test && standard-version --release-as patch && npm publish",
110
111
  "release:major": "npm test && standard-version --release-as major && npm publish",
111
112
  "release:minor": "npm test && standard-version --release-as minor && npm publish",
112
113
  "prettier:check": "npx prettier --check .",
113
114
  "prettier:format": "npx prettier --write .",
115
+ "precommit": "lint-staged",
114
116
  "prepare": "husky install"
115
117
  },
116
118
  "standard-version": {
117
119
  "releaseCommitMessageFormat": "[{{currentTag}}] Bump version"
118
120
  },
121
+ "lint-staged": {
122
+ "*": "prettier --check"
123
+ },
119
124
  "files": [
120
125
  "dist/*.*",
121
126
  "dist/**/*"