design-system-silkhaus 0.0.6 → 0.0.8-3.beta.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.
- package/README.md +21 -0
- package/dist/index.cjs +19 -3811
- package/dist/index.d.ts +176 -19
- package/dist/index.js +2019 -1786
- package/dist/style.css +1 -1113
- package/package.json +1 -1
- package/dist/tailwind.config.js +0 -331
package/README.md
CHANGED
|
@@ -22,6 +22,15 @@ This is a starter template for creating React component libraries using Vite. It
|
|
|
22
22
|
3. To see storybook locally use `npm run dev` (or `pnpm dev` if you like)
|
|
23
23
|
4. To see storybook locally use `npm run dev` (or `pnpm dev` if you like)
|
|
24
24
|
|
|
25
|
+
## Development
|
|
26
|
+
|
|
27
|
+
1. Create package for the component
|
|
28
|
+
2. index.ts file to be created inside package to export the component
|
|
29
|
+
3. component.tsx file with the actual code for the component
|
|
30
|
+
4. component.stories.tsx file for the story book
|
|
31
|
+
5. [OPTIONAL] style.css can be used inside the package
|
|
32
|
+
6. [IMP] Export the component in the top level lib/index.tsx file to publish it in NPM
|
|
33
|
+
|
|
25
34
|
## Scripts
|
|
26
35
|
|
|
27
36
|
- `dev`: Starts the local Storybook server, use this to develop and preview your components.
|
|
@@ -34,6 +43,18 @@ This is a starter template for creating React component libraries using Vite. It
|
|
|
34
43
|
- `lint`: Runs ESLint.
|
|
35
44
|
- `format`: Formats your code with Prettier.
|
|
36
45
|
|
|
46
|
+
## Publish Dev
|
|
47
|
+
|
|
48
|
+
- `npm run build:lib` - Build the lib, this has to done before publishing
|
|
49
|
+
- `npm version <version>.beta.x` - run this command to update package version for testing
|
|
50
|
+
- `npm publish --access=public --tag beta` - To publish lib with beta tag
|
|
51
|
+
|
|
52
|
+
## Publish Prod
|
|
53
|
+
|
|
54
|
+
- `npm run build:lib` - Build the lib, this has to done before publishing
|
|
55
|
+
- - `npm version <version>` - run this command to update package version for testing
|
|
56
|
+
- `npm publish --access=public --tag latest` - To publish lib with latest tag
|
|
57
|
+
|
|
37
58
|
## License
|
|
38
59
|
|
|
39
60
|
MIT
|