-
-
Notifications
You must be signed in to change notification settings - Fork 134
/
package.json
151 lines (151 loc) · 4.28 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"name": "design-tokens",
"version": "6.11.0",
"description": "Export design tokens from Figma",
"main": "plugin.js",
"engines": {
"node": "~18.20.3"
},
"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:originalTokens": "style-dictionary build --config ./tests/integration/original.config.json",
"test:standardTokens": "node ./tests/integration/standard.build.js",
"test:integration": "rm ./tests/integration/data/original.variables.css & rm ./tests/integration/data/standard.variables.css && npm run test:originalTokens & npm run test:standardTokens && jest tests/integration --coverage=false",
"lint": "standardx src/**/*.ts src/*.ts | snazzy",
"lint:fix": "standardx --fix src/**/*.ts src/*.ts | snazzy",
"examples": "rm -rf ./examples/build && node ./examples/build.js",
"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 <oppermann.lukas@gmail.com> (https://lukasoppermann.com)",
"license": "MIT",
"devDependencies": {
"@ctrl/tinycolor": "^3.4.0",
"@emotion/css": "^11.1.3",
"@figma/plugin-typings": "^1.98.0",
"@types/jest": "^28.1.1",
"@types/react": "^18.0.13",
"@types/react-dom": "^18.0.5",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"change-case": "^4.1.2",
"css-loader": "^6.7.1",
"deepmerge": "^4.2.2",
"eslint-plugin-typescript": "^0.14.0",
"figma-plugin-ds": "^1.0.1",
"fs-extra": "^10.0.0",
"html-webpack-inline-source-plugin": "^0.0.10",
"html-webpack-plugin": "^5.5.0",
"immer": "^9.0.15",
"jest": "^28.1.1",
"jest-preset-typescript": "^1.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-outside-click-handler": "^1.3.0",
"replace-in-files-cli": "^2.0.0",
"snazzy": "^9.0.0",
"standardx": "^7.0.0",
"style-dictionary": "^3.0.2",
"style-loader": "^3.3.1",
"ts-jest": "^28.0.5",
"ts-loader": "^9.3.0",
"tsconfig-paths-webpack-plugin": "^3.5.1",
"typescript": "^4.4.3",
"typescript-bundle": "^1.0.17",
"url-loader": "^4.1.1",
"use-immer": "^0.7.0",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0"
},
"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": {
"env": {
"browser": true,
"es6": true
},
"rules": {
"default-param-last": 0,
"no-return-assign": 0,
"brace-style": 0,
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "error"
}
},
"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)"
],
"moduleNameMapper": {
"^@config/(.*)$": "<rootDir>/src/config/$1",
"^@src/(.*)$": "<rootDir>/src/$1"
}
},
"dependencies": {
"react-dev-utils": "^12.0.1"
}
}