injixo-tokens
This repo is the central source for all injixo related design tokens. Utilizing Amazon's style dictionary, the build process produces two distinct packages to make use of the injixo design tokens:
Run locally
Tokens can be locally built via yarn build
. The compiled version of our tokens can then be found in ./injixo/
.
General Structure
./
├── tokens/ - Contains token source files
│ └── src/
│ └── injixo/
│ ├── categories/
│ │ └── *.json
│ └── build.js - Handles compiling process
│
├── injixo/ - Compiled contents of NPM package & gem
│
├── gem/
│ ├── assets/
│ │ └── scss/ - SCSS files will be moved here on build
│ ├── lib/
│ │ ├── injixo-tokens/
│ │ │ ├── version.rb - Holds current version of gem
└── ...
Publishing a new token version
Publish NPM package
Publish Gem
- Update version number accordingly (semver) in
gem/lib/injixo-tokens/version.rb
- After merging to master, CI will automatically publish the new version to our internal gem server. Check if this worked by navigating to http://gems.ivx.cloud/
Maintenance
- Use latest ruby version
- Update gems with
- Update node modules with
yarn upgrade
to update minor and patch versionsyarn upgrade-interactive --latest
to interactively update major releases