forked from eclipse-che/che-theia
/
package.json
85 lines (85 loc) · 2.49 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
{
"name": "@eclipse-che/theia-factory-plugin",
"publisher": "Eclipse Che",
"keywords": [
"theia-plugin"
],
"version": "0.0.1",
"license": "EPL-2.0",
"files": [
"src"
],
"devDependencies": {
"@types/node": "^10.0.0",
"@eclipse-che/api": "latest",
"@eclipse-che/plugin": "0.0.1",
"@theia/plugin": "next",
"@theia/plugin-packager": "latest",
"jest": "22.1.4"
},
"scripts": {
"prepare": "yarn clean && yarn build && yarn lint:fix && yarn test",
"clean": "rimraf lib",
"format": "tsfmt -r --useTsfmt ../../configs/tsfmt.json",
"lint": "tslint -c ../../configs/tslint.json --project tsconfig.json",
"lint:fix": "tslint -c ../../configs/tslint.json --fix --project .",
"compile": "tsc",
"build": "concurrently -n \"format,lint,compile\" -c \"red,green,blue\" \"yarn format\" \"yarn lint\" \"yarn compile\" && theia-plugin pack",
"watch": "tsc -w",
"test": "jest",
"test:watch": "jest --watchAll"
},
"engines": {
"theiaPlugin": "next"
},
"theiaPlugin": {
"backend": "lib/factory-plugin.js"
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.ts"
],
"coverageDirectory": "./coverage",
"transform": {
"^.+\\.tsx?$": "<rootDir>/../../node_modules/ts-jest/preprocessor.js"
},
"modulePathIgnorePatterns": [
"<rootDir>/lib"
],
"testRegex": "(/tests/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
],
"testURL": "http://localhost/"
},
"activationEvents": [
"*"
],
"contributes": {
"menus": {
"editor/context": [
{
"command": "factory-plugin.create-workspace",
"when": "resourceFilename =~ /devfile/"
}
],
"editor/title": [
{
"command": "factory-plugin.create-workspace",
"when": "resourceFilename =~ /devfile/"
}
],
"explorer/context": [
{
"command": "factory-plugin.create-workspace",
"when": "resourceFilename =~ /devfile/"
}
]
}
}
}