-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
131 lines (131 loc) · 4.51 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
{
"name": "@vkontakte/elephize",
"version": "3.1.5",
"description": "typescript -> php basic transpiler",
"main": "src/cli.ts",
"types": "types/global/index.d.ts",
"bin": {
"elephize": "./bin/elephize"
},
"scripts": {
"lint": "eslint . --ext ts,tsx",
"test": "yon demo_clear && yon testcheck && jest -i",
"test_all": "yon build && yon demo_clear && yon demo_build && yon kphpbuild && yon test",
"sniff": "yon lint && yon test_all",
"_reactgen": "ts-node src/ts2php/utils/parseReact.ts",
"_compile": "tsc -p .",
"_copy-base": "cp -R src/builtins dist/src/",
"_copy-ext": "cp -R external dist/",
"_copy-types": "cp -R types dist/ && cp src/ts2php/types.ts dist/src/ts2php/types.ts",
"_clear": "rm -rf dist",
"build": "yon _clear && yon _reactgen && yon _compile && yon _copy-base && yon _copy-ext && yon _copy-types",
"demo_start": "yon demo_build && yon demo_serve",
"demo_build": "ln -sf ../node_modules demo/node_modules && yon demo_genjs && yon demo_genphp",
"demo_clear": "rm -rf demo/public/build && rm -rf demo/public/dist",
"demo_serve": "npm-run-all --parallel demo_servejs demo_servephp",
"demo_servejs": "cd demo && ts-node -r tsconfig-paths/register src/server.tsx",
"demo_servephp": "php -S localhost:8000 -t demo/public/",
"demo_genjs": "cd demo && webpack-cli",
"demo_genphp": "cd demo && ../bin/elephize -c .elephizerc",
"demo_watchphp": "cd demo && ../bin/elephize -c .elephizerc --watch",
"demo_outreact": "cd demo && ts-node -r tsconfig-paths/register src/render.tsx | sed 's/ data-reactroot=\"\"//' | ../external/htmlformat",
"demo_outphp": "cd demo/public && php index.php | ../../external/htmlformat",
"demo_outkphp": "bash external/run_compiled_kphp.sh && cat demo/public/compiled_formatted.txt",
"prepack": "bash external/prepack.sh",
"postpack": "bash external/postpack.sh",
"testcheck": "bash external/check_specimens.sh",
"kphpbuild": "bash external/check_kphp.sh",
"prepare": "yon build",
"_update_test_specimens": "for i in `git commit --dry-run --short | grep result | awk '{ gsub(\".result\", \"\", $2); print $2 }'`; do mv \"$i.result\" \"$i\"; done"
},
"repository": {
"type": "git",
"url": "git+https://github.com/VKCOM/elephize.git"
},
"keywords": [
"js",
"php"
],
"author": "VK",
"license": "MIT",
"bugs": {
"url": "https://github.com/VKCOM/elephize/issues"
},
"homepage": "https://github.com/VKCOM/elephize#readme",
"dependencies": {
"@prettier/plugin-php": "^0.22.2",
"chalk": "^4.1.0",
"cli": "^1.0.1",
"glob": "^7.1.6",
"html-entities": "^2.3.2",
"iconv-lite": "^0.5.1",
"ncp": "^2.0.0",
"prettier": "^3.2.5",
"stream-replace": "^1.0.0"
},
"peerDependencies": {
"typescript": "^5.0.2"
},
"devDependencies": {
"@testing-library/dom": "^7.30.3",
"@testing-library/jest-dom": "^5.11.10",
"@testing-library/react": "^11.2.6",
"@testing-library/user-event": "^13.1.1",
"@types/cli": "^0.11.19",
"@types/diff": "^5.0.0",
"@types/express": "^4.17.3",
"@types/glob": "^7.1.1",
"@types/iconv-lite": "^0.0.1",
"@types/jest": "29.5.0",
"@types/jest-expect-message": "^1.0.1",
"@types/mkdirp": "^1.0.1",
"@types/ncp": "^2.0.3",
"@types/node": "^14.14.37",
"@types/prettier": "^2.0.0",
"@types/react": "^16.9.15",
"@types/react-dom": "^16.9.0",
"@types/rimraf": "^3.0.0",
"@typescript-eslint/eslint-plugin": "5.56.0",
"@typescript-eslint/parser": "5.56.0",
"@vkontakte/eslint-config": "^3.0.0",
"diff": "5.0.0",
"eslint": "^7.23.0",
"eslint-plugin-jest": "^24.3.4",
"eslint-plugin-react": "^7.23.0",
"eslint-plugin-react-hooks": "^4.2.0",
"express": "^4.17.1",
"jest": "29.5.0",
"jest-expect-message": "^1.0.2",
"jest-tap-reporter": "^1.9.0",
"mkdirp": "^1.0.4",
"npm-run-all": "^4.1.5",
"object-assign": "^4.1.1",
"react": "^16.12.0",
"react-dom": "^16.13.0",
"rimraf": "^3.0.2",
"source-map-loader": "^2.0.1",
"ts-jest": "29.0.5",
"ts-loader": "^8.1.0",
"ts-node": "10.9.1",
"tsconfig-paths": "^3.9.0",
"typescript": "5.0.2",
"webpack": "^5.31.0",
"webpack-cli": "^4.6.0",
"yarn-or-npm": "^3.0.1"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}