-
Notifications
You must be signed in to change notification settings - Fork 214
Expand file tree
/
Copy pathproject.json
More file actions
84 lines (84 loc) · 2.33 KB
/
Copy pathproject.json
File metadata and controls
84 lines (84 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"name": "tokens",
"tag": ["tokens"],
"namedInputs": {
"core": [
"{projectRoot}/custom-express/*.css",
"{projectRoot}/custom-spectrum/*.css"
],
"scripts": ["{projectRoot}/style-dictionary.config.js", "{projectRoot}/utilities/*.js"],
"tools": ["{projectRoot}/postcss.config.js", "{projectRoot}/tasks/token-rollup.js"]
},
"targets": {
"build": {
"cache": false,
"dependsOn": ["clean", "style-dictionary"],
"executor": "nx:run-commands",
"inputs": ["core", "tools", { "externalDependencies": ["postcss"] }],
"options": {
"commands": [
"node --no-warnings ./tasks/token-rollup.js",
],
"cwd": "{projectRoot}",
"parallel": false
},
"outputs": [
"{projectRoot}/dist/css/*-vars.css",
"{projectRoot}/dist/css/index.css"
]
},
"clean": {
"cache": false,
"executor": "nx:run-commands",
"inputs": ["{projectRoot}/dist", { "externalDependencies": ["rimraf"] }],
"options": {
"commands": [
"rimraf {projectRoot}/dist",
"test -d {projectRoot}/dist && echo \"Error: dist directory could not be removed\" && exit 1 || exit 0"
],
"parallel": false
},
"outputs": []
},
"diff": {
"cache": true,
"executor": "nx:run-commands",
"inputs": [{ "externalDependencies": ["@adobe/token-diff-generator"] }],
"options": {
"commands": [
"tdiff report --old-token-version @adobe/spectrum-tokens@{args.v1} --new-token-version @adobe/spectrum-tokens@{args.v2} --format markdown --output dist/tokens-diff.md"
],
"forwardAllArgs": true,
"v1": "0.0.0-s2-foundations-20241121221506"
},
"outputs": [
"{projectRoot}/dist/tokens-diff.md"
]
},
"format": {},
"lint": {},
"style-dictionary": {
"dependsOn": ["clean"],
"executor": "nx:run-commands",
"inputs": [
"{projectRoot}/postcss.config.js",
"{projectRoot}/style-dictionary.config.js",
"{projectRoot}/utilities/style-dictionary.utils.js"
],
"options": {
"commands": [
"style-dictionary build --config style-dictionary.config.js"
],
"cwd": "{projectRoot}"
},
"outputs": [
"{projectRoot}/dist/css/global-vars.css",
"{projectRoot}/dist/css/light-vars.css",
"{projectRoot}/dist/css/dark-vars.css",
"{projectRoot}/dist/css/medium-vars.css",
"{projectRoot}/dist/css/large-vars.css",
"{projectRoot}/dist/json/tokens.json"
]
}
}
}