Socket
Socket
Sign inDemoInstall

@nrk/core-icons

Package Overview
Dependencies
0
Maintainers
165
Versions
73
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nrk/core-icons

The official icons for NRK.


Version published
Weekly downloads
2.3K
decreased by-8.06%
Maintainers
165
Install size
7.28 MB
Created
Weekly downloads
 

Readme

Source

@nrk/core-icons · npm package

Icon and logo kit providing a consistent and predictable user experience across platforms and NRK services

Documentation

https://static.nrk.no/core-icons/latest/

Local development

First clone @nrk/core-icons and install its dependencies:

git clone git@github.com:nrkno/core-icons.git
cd core-icons
# Install dependencies according to package-lock-file
npm ci
npm start # Your browser will open documentation with hot reloading

Building and committing

After having applied changes, remember to build before commiting and pushing your changes upstream.

See Conventional Commits for commit guidelines.

git checkout -b feature/my-changes
# Update the source code
npm run build
# Test to ensure integrity
npm run test
git commit -am "<type>[optional scope]: <desciption>"
git push --set-upstream origin feature/my-changes
# Make a PR to the master branch,
# Assign a developer to review your code

Testing

We use Testpack-cli to ensure published exports work as intended. In short it does the following:

  • Runs npm pack and moves the generated archive to a sibling test folder nrk-core-icons-testpack (which is created if not present) to core-icons
  • npm-installs React in the testpack-folder
  • Copies the test-folder to the testpack-folder
  • Runs the testpack-script in the testpack-folder
  • Cleans up

We use arethetypeswring/cli to verify that our type declarations are available for consumers.

  • We purposefully ignore the false-cjs-rule as our types are generated from @nrk/svg-to-js which only gives us cjs types. We chose not to duplicate the d.ts-file to a d.mts to solve this error as it could lead to unexpected behavior for consumers.

nvm

Uses Node Version Manager (nvm) to organize node version

nvm config is saved in .nvmrc, set appropriate node version using:

nvm use

FAQs

Last updated on 03 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc