To get started quickly you can add liip-npm-icons
dependency to your project:
npm install liip-npm-icons
Env variables
You would need to add the following variable to your .env
ICONS_BASE_URL="https://icons.liip.ch"
ICONS_SVG_BASE_URL="https://icons.liip.ch/icons"
ICONS_JSON_URL="https://icons.liip.ch/icons.json"
ICONS_TYPES="regular light"
ICONS_PATH="./assets/icons"
Basic command use
npx icons add <icon-name>
Contribute
To contribute first clone the project:
git clone git@github.com:liip/npm-icons.git
Release
The tool release-it is used to make a release
so it is as simple as running the following command:
npm run release
Update documentation
Our documentation is made with nuxt-content and the docs theme
If you want to make any changes you need execute the following commands:
cd docs
npm install
npm run dev
Deployment
The deployment is made with github pages using static files thanks to
nuxt generate.
If you want to deploy some changes just run npm run release
and
then answer yes to the question Do you want to build the docs?
then release-it will run nuxt generate
and commit the changes into the
tag commit.