npm install
npm install -g style-dictionary
npm install token-transformer -g
For Linux and MacBook
"scripts": {
"build": "rm -rf build && token-transformer ./tokens/hds-token.json ./tokens/hds-token-transformer.json --resolveReferences=false && node ./build.js",
"clean": "rm -rf build",
"test": "echo \"Error: no test specified\" && exit 1"
}
For Windows
"scripts": {
"build": "del -f build && token-transformer ./tokens/hds-token.json ./tokens/hds-token-transformer.json --resolveReferences=false && node ./build.js",
"clean": "del -f build",
"test": "echo \"Error: no test specified\" && exit 1"
}
npm run build
The Expected Output is to be as follows
Please find the Docs of Style Dictionary, token-transformer
Style Dictionary - Documentation
Token Transformer - GitHub