forked from wix/import-cost
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
129 lines (129 loc) · 3.68 KB
/
Copy pathpackage.json
File metadata and controls
129 lines (129 loc) · 3.68 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
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
{
"name": "vscode-import-cost",
"displayName": "Import Cost",
"description": "Display import/require package size in the editor",
"license": "MIT",
"version": "2.7.1",
"publisher": "wix",
"engines": {
"vscode": "^1.12.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact"
],
"keywords": [
"import",
"require",
"size",
"weight",
"webpack"
],
"main": "./out/src/extension",
"contributes": {
"configuration": {
"type": "object",
"title": "Import Cost configuration",
"properties": {
"importCost.smallPackageSize": {
"type": "number",
"default": 50,
"description": "Upper size limit, in KB, that will count a package as a small package"
},
"importCost.mediumPackageSize": {
"type": "number",
"default": 100,
"description": "Upper size limit, in KB, that will count a package as a medium package"
},
"importCost.smallPackageColor": {
"type": "string",
"default": "#7cc36e",
"description": "Decoration color for small packages"
},
"importCost.mediumPackageColor": {
"type": "string",
"default": "#7cc36e",
"description": "Decoration color for medium packages"
},
"importCost.largePackageColor": {
"type": "string",
"default": "#d44e40",
"description": "Decoration color for large packages"
},
"importCost.typescriptExtensions": {
"type": "array",
"default": [
"\\.tsx?$"
],
"description": "File extensions to be parsed by the Typescript parser"
},
"importCost.javascriptExtensions": {
"type": "array",
"default": [
"\\.jsx?$"
],
"description": "File extensions to be parsed by the Javascript parser"
},
"importCost.bundleSizeDecoration": {
"type": "string",
"default": "both",
"enum": [
"both",
"minified",
"gzipped"
],
"description": "Which bundle size to display"
},
"importCost.showCalculatingDecoration": {
"type": "boolean",
"default": true,
"description": "Display the 'calculating' decoration when starting to calculate the size"
},
"importCost.debug": {
"type": "boolean",
"default": false,
"description": "Enable debug logging"
}
}
}
},
"scripts": {
"vscode:prepublish": "tslint {src,test}/**/*.ts && tsc -p ./",
"compile": "tslint {src,test}/**/*.ts && tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"pretest": "npm run vscode:prepublish",
"precommit": "npm run vscode:prepublish",
"prebublish": "npm run vscode:prepublish",
"test": "node ./node_modules/vscode/bin/test",
"build": ":"
},
"devDependencies": {
"@types/mocha": "^2.2.32",
"@types/node": "^6.0.40",
"husky": "^0.14.3",
"mocha": "^2.3.3",
"tslint": "^5.5.0",
"tslint-config-wix": "^1.0.25",
"typescript": "^2.4.1",
"vscode": "^1.0.0"
},
"dependencies": {
"filesize": "^3.5.10",
"import-cost": "^1.3.1"
},
"icon": "images/import-cost-logo.png",
"galleryBanner": {
"color": "#1C78C0",
"theme": "dark"
},
"homepage": "https://github.com/wix/import-cost/blob/master/packages/vscode-import-cost/README.md",
"repository": {
"type": "git",
"url": "https://github.com/wix/import-cost.git"
}
}