forked from lukasoppermann/design-tokens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
125 lines (125 loc) · 3.46 KB
/
package.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"name": "design-tokens",
"version": "4.1.0",
"description": "Export design tokens from Figma",
"main": "code.js",
"repository": {
"type": "git",
"url": "https://github.com/lukasoppermann/design-tokens.git"
},
"scripts": {
"start": "npx webpack --mode=development --watch",
"build": "npx webpack --mode=production",
"build-watch": "npm run build -- --watch",
"test": "npm run lint ; npm run test:unit ; npm run test:integration",
"test:unit": "jest tests/unit",
"test:integration": "style-dictionary clean --config ./tests/integration/config.json && style-dictionary build --config ./tests/integration/config.json && jest tests/integration --coverage=false",
"lint": "standardx src/**/*.ts src/*.ts | snazzy",
"sd": "rm -rf tests/amazon-style-dictionary/build && style-dictionary build --config ./tests/amazon-style-dictionary/config.json",
"set-version": "replace-in-files --regex='\\d+\\.\\d+\\.\\d+' --replacement=$npm_package_version src/utilities/version.ts",
"version": "npm run set-version && npm run build && git add --all"
},
"author": "Lukas Oppermann <[email protected]> (https://vea.re)",
"license": "MIT",
"devDependencies": {
"@figma/plugin-typings": "^1.19.2",
"@types/jest": "^26.0.22",
"@types/node": "^14.14.37",
"@typescript-eslint/eslint-plugin": "^4.19.0",
"@typescript-eslint/parser": "^4.19.0",
"css-loader": "^5.2.0",
"eslint-plugin-typescript": "^0.14.0",
"figma-plugin-ds": "^0.1.8",
"html-webpack-inline-source-plugin": "0.0.10",
"html-webpack-plugin": "3.2.0",
"jest": "^26.6.3",
"jest-preset-typescript": "^1.2.0",
"replace-in-files-cli": "^1.0.0",
"snazzy": "^9.0.0",
"standardx": "^7.0.0",
"style-dictionary": "^2.10.3"
},
"dependencies": {
"figma-plugin-ds": "^0.1.8",
"html-webpack-inline-source-plugin": "0.0.10",
"html-webpack-plugin": "3.2.0",
"style-loader": "^2.0.0",
"ts-jest": "^26.5.4",
"ts-loader": "^8.0.18",
"typescript": "^4.2.3",
"typescript-bundle": "^1.0.17",
"url-loader": "^4.1.1",
"webpack": "^4.38.0",
"webpack-cli": "^3.3.6"
},
"standardx": {
"env": [
"jest"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"global": [
"jest",
"test",
"__html__",
"parent",
"onmessage",
"UIAPI",
"figma",
"PluginAPI",
"PaintStyle",
"GridStyle",
"TextStyle",
"LayoutGrid",
"FrameNode",
"SceneNode",
"PageNode",
"RectangleNode",
"ComponentSetNode",
"ComponentNode",
"GridLayoutGrid",
"RowsColsLayoutGrid",
"EffectStyle",
"Effect",
"Paint",
"Transition",
"Easing",
"DirectionalTransition",
"expect"
]
},
"eslintConfig": {
"rules": {
"default-param-last": 0,
"no-return-assign": 0,
"brace-style": 0
}
},
"jest": {
"moduleDirectories": [
"node_modules",
"src"
],
"verbose": true,
"testTimeout": 15000,
"collectCoverage": true,
"coverageDirectory": "./tests/unit/coverage",
"testEnvironment": "node",
"collectCoverageFrom": [
"./src/**/*.ts"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"moduleFileExtensions": [
"ts",
"js"
],
"testMatch": [
"**/tests/integration/!(skip.)*.test.[jt]s?(x)",
"**/tests/unit/!(skip.)*.test.[jt]s?(x)"
]
}
}