-
Notifications
You must be signed in to change notification settings - Fork 195
/
project.json
77 lines (77 loc) · 2.57 KB
/
project.json
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
{
"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", "rimraf"] }],
"options": {
"commands": [
"cross-env NODE_OPTIONS=\"--no-warnings\" node -e 'require(\"./tasks/token-rollup.js\").default()'",
"rm -f ./dist/css/express/custom-light*.css ./dist/css/express/custom-dark*.css ./dist/css/spectrum/custom-dark*.css ./dist/css/spectrum/custom-light*.css",
"cross-env NODE_OPTIONS=\"--no-warnings\" postcss ./dist/css/*.css ./dist/css/spectrum/*.css ./dist/css/express/*.css --replace"
],
"cwd": "{projectRoot}",
"parallel": false
},
"outputs": [
"{projectRoot}/dist/css/express",
"{projectRoot}/dist/css/spectrum",
"{projectRoot}/dist/css/components",
"{projectRoot}/dist/css/*-vars.css",
"{projectRoot}/dist/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": []
},
"format": {},
"lint": {},
"style-dictionary": {
"dependsOn": ["clean"],
"executor": "@nxkit/style-dictionary:build",
"inputs": ["scripts"],
"options": {
"deleteOutputPath": false,
"outputPath": "./tokens",
"platform": "CSS",
"styleDictionaryConfig": "./tokens/style-dictionary.config.js",
"tsConfig": "./tsconfig.json"
},
"outputs": [
"{projectRoot}/dist/css/global-vars.css",
"{projectRoot}/dist/css/light-vars.css",
"{projectRoot}/dist/css/dark-vars.css",
"{projectRoot}/dist/css/darkest-vars.css",
"{projectRoot}/dist/css/medium-vars.css",
"{projectRoot}/dist/css/large-vars.css",
"{projectRoot}/dist/css/spectrum/global-vars.css",
"{projectRoot}/dist/css/spectrum/medium-vars.css",
"{projectRoot}/dist/css/spectrum/large-vars.css",
"{projectRoot}/dist/css/express/global-vars.css",
"{projectRoot}/dist/css/express/medium-vars.css",
"{projectRoot}/dist/css/express/large-vars.css"
]
}
}
}