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
yarn
to install all dependencies - Run
yarn storybook:serve
to 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.ts
as the input fileyarn build-storybook
: This will build the Storybookyarn build_icons
: This will fetch the svg icons from thesrc/icons
and 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.json
and commit that change - Remove
private: true
from thepackage.json
(revert after publishing) - Run
yarn test:unit && yarn build-lib-icons
- On successful test and build run
npm publish
Note: Add
private: true
back 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/icons
folder and paste the optimized SVG into it - Run
yarn build_icons
to update theicons.json
file - 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
2 years ago
0.12.28
2 years ago
0.12.29
2 years ago
0.12.20
2 years ago
0.12.21
2 years ago
0.12.22
2 years ago
0.12.19
2 years ago
0.12.23
2 years ago
0.12.24
2 years ago
0.12.25
2 years ago
0.12.26
2 years ago
0.12.18
2 years ago
0.12.16
2 years ago
0.12.13
2 years ago
0.12.15
2 years ago
0.12.12
3 years ago
0.12.11
3 years ago
0.12.10
3 years ago