0.12.39 • Published 2 years ago
@deepsource/zeal v0.12.39
Zeal
Using in another library
Setting up tailwind
Add this in the tailwind.config.js
// tailwind.config.js
module.exports = {
// import the tailwind config from Zeal.
presets: [require('@deepsourcelabs/zeal/tailwind.config')],
// Don't purge zeal styles
purge: {
enabled: true,
content: ['./pages/**/*', './components/**/*', './node_modules/@deepsourcelabs/**/*.vue']
}
}Dev setup
Required Versions
- Node: v14@latest
- yarn: v1
Local setup instructions
- Clone the Repo using
git clone https://github.com/DeepSourceCorp/zeal - Run
yarnto install all dependencies - Run
yarn storybook:serveto run the dev server and storybook for development
Building the library
The following NPM scripts help building the library
yarn build-lib: This will build the library withmain.tsas the input fileyarn build-storybook: This will build the Storybookyarn build_icons: This will fetch the svg icons from thesrc/iconsand build a JSON fileyarn build:css: This will run post css and generate the CSS files for tailwind and other componentsyarn build-lib-icons: This will build the library, css files and the icons
Publishing
Before you begin, ensure you have the .npmrc file setup.
- Bump the version in
package.jsonand commit that change - Remove
private: truefrom thepackage.json(revert after publishing) - Run
yarn test:unit && yarn build-lib-icons - On successful test and build run
npm publish
Note: Add
private: trueback after publishing. In CI, don't forget to run yarn before step 3
Adding icons
- For generic icons, replace all custom colors added to the SVG file with
currentColor - Optimize the SVG using SVGOMG
- Create a new SVG file unde the
src/iconsfolder and paste the optimized SVG into it - Run
yarn build_iconsto update theicons.jsonfile - Verify the icons look alright by starting the storybook locally using
yarn storybook:serve - Make a pull request for it with the screenshots of the icon preview in storybook
0.12.38
2 years ago
0.12.39
2 years ago
0.12.37
2 years ago
0.12.36
2 years ago
0.12.34
2 years ago
0.12.35
2 years ago
0.12.30
2 years ago
0.12.31
2 years ago
0.12.32
2 years ago
0.12.33
2 years ago
0.12.27
3 years ago
0.12.28
2 years ago
0.12.29
2 years ago
0.12.20
3 years ago
0.12.21
3 years ago
0.12.22
3 years ago
0.12.19
3 years ago
0.12.23
3 years ago
0.12.24
3 years ago
0.12.25
3 years ago
0.12.26
3 years ago
0.12.18
3 years ago
0.12.16
3 years ago
0.12.13
3 years ago
0.12.15
3 years ago
0.12.12
3 years ago
0.12.11
3 years ago
0.12.10
3 years ago