10.8.3 • Published 2 months ago

@salesforce-ux/icons v10.8.3

Weekly downloads
338
License
CC-BY-ND-4.0
Repository
github
Last release
2 months ago

Salesforce Icons Build Status

Getting Started

Step 0: Checking out the project

git clone https://github.com/salesforce-ux/icons.git
cd icons
npm install

Step 1: Validating Icon Source Structure

  • Before new source assets can be added to the project safely, we have to validate that they meet certain requirements:
    • Source SVGs cannot use <g> elements, these will break the sprite processing script
    • SVGs cannot use inline <style> tags, these will break the sprite processing script
  • For any icon that does not meet these requirements, we can fix them up with Adobe Illustrator:
    • Open new icons in Illustrator and remove all groups by selecting Object > Ungroup, until all groups are removed
    • Export from Illustrator using the 'Export for Screens' tool (under the File > Export menu):
      • Ensure export styles are set to "Inline Styles" by clicking the small gear icon on the right side of the 'Formats' section, and under SVG settings, ensure the 'Styling' dropdown is set to 'Inline Styles' (note: you will only have to do this once, the configuration will persist after)
      • Uncheck the 'Create Sub-Folders' option
      • Rename the Artboard to the name of the asset
      • Ensure Export format is set to SVG and click the 'Export Artboard' button when ready

Step 2: Adding Icons to Repo

  • Once the icons have been cleaned up, they are ready to be added to the project
  • Create a new branch for your work (release/[release number])
  • Source assets live under the svg folder, and are organized by type (action, custom, doctype, standard, utility) as well as direction (common, ltr, rtl)
  • Unless specified, most icons will live under common. Icons identified as directional will have both a ltr and rtl version, and should be added to the appropriate folders

Step 3: Build and Preview

  • This project comes equipped with a preview environment for local validation of assets
  • First, run npm run build to prepare the dist folder by building optimized SVG assets, sprite sheets and PNG assets from the source SVG set.
  • Then run npm run previewer to start the preview environment, which is a next.js app

Step 4: Test

  • Run npm test to run the test suite against the icons and ensure they are ready to be checked in

Step 5: NPM Version

  • When ready, run npm version X.X.X to update and commit package.json, as well as create a tag for the version. Check the current version to know what to bump the new version to. For most releases, we perform a minor SEMVER update. Fixes are done in a patch level update.
  • Run git push origin vX.X.X to push the tag to GitHub
  • Commit the branch and open a PR on GitHub to merge your changes into main

Step 6: Dist and Publish

Once the icons have been validated with the previewer and the test suite run, the package is ready to be published to NPM.

  • PREREQUISITE: Ensure you are logged into NPM with the salesforce-ux account (You can run npm login to do this step. If you need account info, contact a team member.)
  • Run npm run dist to prep assets for distribution. This will run a lengthy PNG optimization script, as well as copy other resources that are required for dist (such as the README-dist and the license file)
  • Run npm publish --dry-run from the root directory to validate that the publish will work as intended. Verify the version number is what you expect, along with the assets that will be sent to NPM. PUBLISHING TO NPM IS PERMANENT AND CANNOT BE UNDONE
  • Once ready, run npm publish without the --dry-run flag to publish to NPM.
10.8.3

2 months ago

10.8.0

7 months ago

10.8.1

7 months ago

10.8.2

7 months ago

10.7.1

8 months ago

10.6.1

10 months ago

10.7.0

11 months ago

10.6.0

1 year ago

10.5.7

1 year ago

10.5.6

1 year ago

10.5.5

1 year ago

10.5.0

2 years ago

10.5.1

2 years ago

10.5.2

2 years ago

10.5.3

2 years ago

10.5.4

2 years ago

10.4.0

2 years ago

10.3.0

2 years ago

10.2.2

2 years ago

10.2.0

3 years ago

10.2.1

3 years ago

10.1.2

3 years ago

10.1.1

3 years ago

10.0.0

3 years ago

10.1.0

3 years ago

9.40.4

3 years ago

9.40.3

3 years ago

9.40.2

3 years ago

2.40.0

3 years ago

9.40.0

3 years ago

9.40.1

3 years ago

9.39.0

4 years ago

9.38.1

4 years ago

9.38.0

4 years ago

9.37.1

4 years ago

9.37.0

4 years ago

9.36.1

4 years ago

9.36.0

4 years ago

9.35.1

4 years ago

9.35.0

4 years ago

9.34.0

4 years ago

9.33.0

4 years ago

9.32.0

4 years ago

9.31.2

4 years ago

9.31.1

4 years ago

9.31.0

4 years ago

9.30.0

4 years ago

9.29.1

5 years ago

9.29.0

5 years ago

9.28.0

5 years ago

9.27.0

5 years ago

9.26.0

5 years ago

9.25.0

5 years ago

9.24.0

5 years ago

9.23.0

5 years ago

9.22.0

5 years ago

9.21.0

5 years ago

9.20.0

6 years ago

9.19.0

6 years ago

9.18.0

6 years ago

9.17.0

6 years ago

9.16.0

6 years ago

9.15.0

6 years ago

9.14.0

6 years ago

9.13.1

6 years ago

9.13.0

6 years ago

9.8.1

6 years ago

9.12.0

6 years ago

9.11.0

6 years ago

9.10.0

6 years ago

9.9.0

6 years ago

9.8.0

6 years ago

9.7.0

6 years ago

9.6.0

6 years ago

9.5.0

6 years ago

9.4.0

6 years ago

9.3.0

6 years ago

9.2.0

6 years ago

9.1.0

6 years ago

9.0.4

6 years ago

9.0.3

6 years ago

9.0.2

6 years ago

9.0.1

6 years ago

9.0.0

6 years ago

8.2.0

6 years ago

8.1.0

7 years ago

8.0.0

7 years ago

7.34.0

7 years ago

7.33.0

7 years ago

7.32.0

7 years ago

7.31.0

7 years ago

7.30.0

7 years ago

7.29.0

7 years ago

7.28.1

7 years ago

7.28.0

7 years ago

7.27.0

7 years ago

7.26.0

7 years ago

7.25.0

7 years ago

7.24.0

7 years ago

7.23.0

7 years ago

7.22.0

7 years ago

7.20.0

7 years ago

7.19.0

7 years ago

7.18.1

7 years ago

7.18.0

7 years ago

7.17.0

7 years ago

7.16.0

7 years ago

7.15.0

7 years ago

7.14.0

7 years ago

7.13.0

7 years ago

7.12.0

7 years ago

7.11.0

7 years ago

7.10.0

7 years ago

7.9.0

7 years ago

7.8.0

7 years ago

7.7.0

7 years ago

7.6.0

7 years ago

7.5.0

7 years ago

7.4.0

7 years ago

7.3.0

8 years ago

7.2.0

8 years ago

7.1.0

8 years ago

7.0.0

8 years ago

5.2.1

8 years ago

5.2.0

8 years ago

6.0.0

8 years ago

5.1.0

8 years ago

5.0.0

8 years ago

4.3.0

8 years ago

4.2.0

8 years ago

4.1.0

8 years ago

4.0.0

8 years ago

3.8.0

8 years ago

3.7.0

8 years ago

3.6.0

8 years ago

3.5.1

8 years ago

3.5.0

8 years ago

3.4.0

8 years ago

3.3.0

8 years ago

3.2.0

9 years ago

3.1.0

9 years ago

3.0.3

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.0.0

9 years ago

1.2.0

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago