@dialpad/dialtone-tokens 1.23.2 → 1.23.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/android/java/tokens-dark.kt +1 -1
- package/dist/android/java/tokens-light.kt +1 -1
- package/dist/android/res/values/colors-dark.xml +1 -1
- package/dist/android/res/values/colors-light.xml +1 -1
- package/dist/android/res/values/dimens.xml +1 -1
- package/dist/css/variables-dark.css +1 -1
- package/dist/css/variables-light.css +1 -1
- package/dist/ios/tokens-dark.swift +1 -1
- package/dist/ios/tokens-light.swift +1 -1
- package/dist/less/variables-dark.less +1 -1
- package/dist/less/variables-light.less +1 -1
- package/package.json +7 -9
- package/dist/android/AndroidManifest.xml +0 -2
package/README.md
CHANGED
|
@@ -86,7 +86,7 @@ DialtoneTokens.dtColorPurple200
|
|
|
86
86
|
|
|
87
87
|
1. clone repo
|
|
88
88
|
2. `npm install`
|
|
89
|
-
3. `
|
|
89
|
+
3. `pnpm run build` to build tokens. Built tokens will be output to the dist folder.
|
|
90
90
|
|
|
91
91
|
- `base.json` Contains tokens exported from figma.
|
|
92
92
|
- `tokens/tokens.json` Contains tokens in style dictionary format (generated from `base.json`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dialpad/dialtone-tokens",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.3",
|
|
4
4
|
"description": "Design tokens for Dialtone.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -17,11 +17,6 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://dialpad.design/",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@commitlint/cli": "^17.0.3",
|
|
21
|
-
"@commitlint/config-conventional": "^17.0.3",
|
|
22
|
-
"@semantic-release/changelog": "^6.0.1",
|
|
23
|
-
"@semantic-release/exec": "^6.0.3",
|
|
24
|
-
"@semantic-release/git": "^10.0.1",
|
|
25
20
|
"@tokens-studio/sd-transforms": "^0.11.0",
|
|
26
21
|
"maven": "^5.0.0",
|
|
27
22
|
"style-dictionary": "^3.8.0",
|
|
@@ -29,10 +24,13 @@
|
|
|
29
24
|
"token-transformer": "^0.0.31"
|
|
30
25
|
},
|
|
31
26
|
"scripts": {
|
|
32
|
-
"build": "
|
|
33
|
-
"build:token-transformer": "
|
|
27
|
+
"build": "pnpm run build:token-transformer && node ./build.js",
|
|
28
|
+
"build:token-transformer": "pnpm run build:token-transformer:light && pnpm run build:token-transformer:dark",
|
|
34
29
|
"build:token-transformer:light": "token-transformer tokens token_transformer/tokens-light.json root,base/default,semantic/dp/default,components/checkbox,components/avatar/default,components/badge/default,components/checkbox/default,components/icon/default,components/radio/default root --expandTypography=true --expandShadow=true",
|
|
35
30
|
"build:token-transformer:dark": "token-transformer tokens token_transformer/tokens-dark.json root,base/default,base/dark,semantic/dp/default,semantic/dp/dark,components/avatar/default,components/badge/default,components/checkbox/default,components/checkbox/dark,components/icon/default,components/radio/default,components/radio/dark root --expandTypography=true --expandShadow=true",
|
|
36
|
-
"release": "semantic-release --no-ci --extends ./release-local.config.cjs"
|
|
31
|
+
"release": "semantic-release --no-ci --extends ./release-local.config.cjs",
|
|
32
|
+
"publish:external-packages": "pnpm run publish:android-package && pnpm run publish:ios-package",
|
|
33
|
+
"publish:android-package": "cp ./AndroidManifest.xml dist/android && ./gradlew publishToMavenLocal -Pversion=$npm_package_version",
|
|
34
|
+
"publish:ios-package": "./build-ios.js"
|
|
37
35
|
}
|
|
38
36
|
}
|