0.0.26 • Published 6 years ago
@bigpicturemedical/medkit-ts v0.0.26
MedKit | Design System
Legends
Installation
### dependencies
yarn### Run Unit Tests
yarn test:unitDesign Tokens
### build
yarn style-dictionary:build### build npm package
yarn build:all
### publish npm package
npm login
...
yarn publish:npmExternal Use
Install npm package:
yarn add @bigpicturemedical/medkit-ts
Add SCSS Tokens into Vue istance:
### create/modify vue.config.js at root level
...
css: {
loaderOptions: {
sass: {
additionalData: `@import "@bigpicturemedical/medkit-ts/build/tokens/style.scss";`,
},
},
}Import static CSS (fonts) at main level:
import "@bigpicturemedical/medkit-ts/dist/medkit.esm.css";
Storybook
yarn storybook:serveZeplin
- Install
vscode Zeplin Extension||@zeplin/cli
- Connect Zeplin with your editor
- Copy your CLI - Token into your
.envfile.
- Install plugins :
yarn add zeplin-cli-connect-plugin-vue --dev
yarn add @zeplin/cli-connect-storybook-plugin --dev- Setup configuration file at root level in
.zeplinfolder add Component Links :
path:
src/lib-components/Component.vuezeplinNames: 'Component Name Used in Zeplin App'
{
"plugins": [
{
"name": "zeplin-cli-connect-plugin-vue"
},
{
"name": "@zeplin/cli-connect-storybook-plugin",
"config": {
"url": "http://localhost:6006",
"startScript": "storybook:serve",
"useDocsPage": true
}
}
],
"projects": [],
"styleguides": [
"< zeplin-project-uniqueId >"
],
"components": [
{
"path": "...",
"zeplinNames": ["..."]
}
]
}For any details please follow
Usage
yarn serveStyle Dictionary
This example code is bare-bones to show you what this framework can do. If you have the style-dictionary module installed globally, you can cd into this directory and run:
style-dictionary buildYou should see something like this output:
Copying starter files...
Source style dictionary starter files created!
Running `style-dictionary build` for the first time to generate build artifacts:
scss
✔︎ build/tokens/scss
css
✔︎ build/tokens/css
icons
✔︎ build/tokens/icons
json
✔︎ build/tokens/jsonTODO LIST:
- Snapshots (Percy)
- Documentation (VuePres)
- Build NPM Package
- CI/CD Publish an NPM package
0.0.26
6 years ago
0.0.25
6 years ago
0.0.24
6 years ago
0.0.23
6 years ago
0.0.22
6 years ago
0.0.21
6 years ago
0.0.20
6 years ago
0.0.19
6 years ago
0.0.17
6 years ago
0.0.18
6 years ago
0.0.16
6 years ago
0.0.15
6 years ago
0.0.13
6 years ago
0.0.14
6 years ago
0.0.11
6 years ago
0.0.12
6 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.5
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago