periplo-ui 1.0.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 (3) hide show
  1. package/LICENSE +8 -0
  2. package/README.md +15 -0
  3. package/package.json +83 -0
package/LICENSE ADDED
@@ -0,0 +1,8 @@
1
+ The MIT License (MIT)
2
+ Copyright © 2024 Iati seguros
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+
6
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ ## Publishing the library
2
+
3
+ 1. Build the package: `npm run build`
4
+ 2. Open `package.json`, update package description, author, repository, remove `"private": true`.
5
+ 3. Run `npm publish`
6
+
7
+ ## Publishing docs to GitHub pages
8
+
9
+ Storybook static is built to `docs` directory which is under git. To publish it to GitHub Pages do this:
10
+
11
+ - Publish this repo to GitHub.
12
+ - Run `npm run build-docs`, commit `docs` folder and push.
13
+ - [Create a separate GitHub Pages repo](https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site#creating-a-repository-for-your-site) if you haven't yet.
14
+ - [Set up GitHub pages for this project](https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site#creating-your-site) to build from `docs` folder from `main` branch.
15
+ - To do this go to this repo's settings and open `Pages` section (menu on the left side). Select `Source` -> `Deploy from a branch`, select `Branch` -> `main` and `/docs` folder.
package/package.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "periplo-ui",
3
+ "description": "IATI UI library",
4
+ "private": false,
5
+ "version": "1.0.4",
6
+ "type": "module",
7
+ "scripts": {
8
+ "build": "tsc && vite build",
9
+ "dev": "storybook dev -p 6006",
10
+ "lint-staged-husky": "lint-staged",
11
+ "start": "serve build-storybook-static",
12
+ "storybook": "storybook build -o build-storybook-static",
13
+ "lint": "eslint . --ext .ts,.tsx",
14
+ "test": "vitest",
15
+ "test-coverage": "vitest run --coverage",
16
+ "prepare": "husky",
17
+ "update-dependencies": "npx npm-check-updates -u",
18
+ "commit": "git-cz"
19
+ },
20
+ "peerDependencies": {
21
+ "react": "18.2.0",
22
+ "react-dom": "18.2.0"
23
+ },
24
+ "devDependencies": {
25
+ "@commitlint/cli": "17.6.7",
26
+ "@commitlint/config-conventional": "17.6.7",
27
+ "@semantic-release/changelog": "6.0.3",
28
+ "@semantic-release/git": "10.0.1",
29
+ "@storybook/addon-essentials": "7.6.10",
30
+ "@storybook/addon-interactions": "7.6.10",
31
+ "@storybook/addon-links": "7.6.10",
32
+ "@storybook/addon-themes": "7.6.10",
33
+ "@storybook/blocks": "7.6.10",
34
+ "@storybook/react": "7.6.10",
35
+ "@storybook/react-vite": "7.6.10",
36
+ "@storybook/testing-library": "0.2.2",
37
+ "@testing-library/react": "14.1.2",
38
+ "@types/node": "20.11.6",
39
+ "@types/react": "18.2.48",
40
+ "@types/react-dom": "18.2.18",
41
+ "@typescript-eslint/eslint-plugin": "6.19.1",
42
+ "@typescript-eslint/parser": "6.19.1",
43
+ "@vitejs/plugin-react": "4.2.1",
44
+ "@vitest/coverage-istanbul": "1.2.1",
45
+ "@vitest/coverage-v8": "1.2.1",
46
+ "autoprefixer": "10.4.17",
47
+ "commitizen": "4.3.0",
48
+ "eslint": "8.56.0",
49
+ "eslint-config-prettier": "9.1.0",
50
+ "eslint-import-resolver-typescript": "3.6.1",
51
+ "eslint-plugin-import": "2.29.1",
52
+ "eslint-plugin-jsx-a11y": "6.8.0",
53
+ "eslint-plugin-no-array-reduce": "1.0.62",
54
+ "eslint-plugin-prettier": "5.1.3",
55
+ "eslint-plugin-react": "7.33.2",
56
+ "eslint-plugin-react-hooks": "4.6.0",
57
+ "eslint-plugin-storybook": "0.6.15",
58
+ "eslint-plugin-testing-library": "6.2.0",
59
+ "eslint-plugin-vitest": "0.3.20",
60
+ "husky": "8.0.3",
61
+ "jsdom": "24.0.0",
62
+ "postcss": "8.4.33",
63
+ "semantic-release": "22.0.12",
64
+ "semantic-release-gitmoji": "1.6.5",
65
+ "storybook": "7.6.10",
66
+ "tailwindcss": "3.4.1",
67
+ "typescript": "5.3.3",
68
+ "vite": "4.5.2",
69
+ "vite-plugin-dts": "3.7.2",
70
+ "vitest": "1.2.1"
71
+ },
72
+ "files": [
73
+ "dist"
74
+ ],
75
+ "dependencies": {
76
+ "@radix-ui/react-slot": "1.0.2",
77
+ "class-variance-authority": "0.7.0",
78
+ "clsx": "2.1.0",
79
+ "lucide-react": "0.315.0",
80
+ "tailwind-merge": "2.2.1",
81
+ "tailwindcss-animate": "1.0.7"
82
+ }
83
+ }