14.1.0 • Published 2 months ago

@nrk/core-icons v14.1.0

Weekly downloads
623
License
SEE LICENSE IN LI...
Repository
github
Last release
2 months ago

@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
14.1.0

2 months ago

14.0.0

8 months ago

14.0.1

8 months ago

14.0.2

8 months ago

14.0.3

7 months ago

14.0.4

6 months ago

14.0.5

6 months ago

13.0.0-0

11 months ago

13.0.0

11 months ago

12.2.1

1 year ago

12.2.0

1 year ago

12.3.0

11 months ago

12.3.1

11 months ago

12.0.0

1 year ago

12.0.1

1 year ago

12.1.0

1 year ago

11.2.0

2 years ago

11.0.0

2 years ago

11.0.1

2 years ago

11.1.0

2 years ago

10.4.1

2 years ago

10.4.2

2 years ago

10.4.3

2 years ago

10.4.0

2 years ago

10.2.0

2 years ago

10.1.1

2 years ago

10.3.0

2 years ago

10.3.1

2 years ago

10.0.0

2 years ago

10.1.0

2 years ago

9.6.0

2 years ago

9.5.0

2 years ago

9.4.0

3 years ago

9.3.0

3 years ago

9.2.2

3 years ago

9.2.1

4 years ago

9.2.0

4 years ago

9.1.2

4 years ago

9.1.1

4 years ago

9.1.0

4 years ago

9.0.2

4 years ago

9.0.1

5 years ago

9.0.0

5 years ago

8.2.1

5 years ago

8.2.0

5 years ago

8.1.3

5 years ago

8.1.2

5 years ago

8.1.1

5 years ago

8.1.0

5 years ago

8.0.0

5 years ago

7.0.0

5 years ago

6.0.3

5 years ago

6.0.2

5 years ago

6.0.1

5 years ago

6.0.0

5 years ago

5.2.0

5 years ago

5.1.1

5 years ago

5.1.0

6 years ago

5.0.2

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

4.1.0

6 years ago

4.0.0

6 years ago

3.5.0

6 years ago

3.4.1

6 years ago

3.4.0

6 years ago

3.3.0

6 years ago

3.2.0

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.4.1

6 years ago