-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcomposer.json
More file actions
139 lines (139 loc) · 5.22 KB
/
Copy pathcomposer.json
File metadata and controls
139 lines (139 loc) · 5.22 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
130
131
132
133
134
135
136
137
138
139
{
"type": "project",
"name": "zoujingli/smartadmin",
"keywords": [
"admin",
"hyperf"
],
"description": "SmartAdmin open-source administration framework based on Hyperf.",
"license": "Apache-2.0",
"require": {
"php": ">=8.4",
"ext-bcmath": "*",
"ext-bz2": "*",
"ext-curl": "*",
"ext-dom": "*",
"ext-fileinfo": "*",
"ext-gd": "*",
"ext-json": "*",
"ext-mbstring": "*",
"ext-opcache": "*",
"ext-openssl": "*",
"ext-pcntl": "*",
"ext-pdo": "*",
"ext-posix": "*",
"ext-redis": "*",
"ext-simplexml": "*",
"ext-sockets": "*",
"ext-sodium": "*",
"ext-tokenizer": "*",
"ext-xml": "*",
"ext-xmlreader": "*",
"ext-xmlwriter": "*",
"ext-zip": "*",
"ext-zlib": "*",
"zoujingli/smart-admin-builder": "^1.0",
"zoujingli/smart-admin-library": "^1.0",
"zoujingli/smart-plugin-system": "^1.0",
"zoujingli/smart-plugin-wechat-client": "^1.0"
},
"repositories": [
{
"type": "path",
"url": "plugin/System"
},
{
"type": "path",
"url": "plugin/WechatClient"
}
],
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.89",
"swoole/ide-helper": "^6.0",
"phpunit/phpunit": "^13",
"phpstan/phpstan": "^2.1",
"symfony/var-dumper": "^8.0"
},
"suggest": {
"ext-pdo": "Required for MySQL Client.",
"ext-pdo_mysql": "Required when DB_DRIVER=mysql and the bundled Swoole runtime is not used.",
"ext-pdo_sqlite": "Required for the default SQLite experience when the bundled Swoole runtime is not used.",
"ext-sqlite3": "Required for the default SQLite experience when the bundled Swoole runtime is not used.",
"ext-json": "Required for JSON support.",
"ext-redis": "Required for Redis Client.",
"ext-swoole": "Recommended for coroutine support."
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Tests\\": "tests/"
}
},
"prefer-stable": true,
"minimum-stability": "dev",
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
"scripts": {
"analyse": "./bin/smart.php runtime vendor/bin/phpstan analyse plugin config tests --level=0 --memory-limit=1G",
"test": "./bin/smart.php runtime vendor/bin/phpunit",
"web:build": "cd web && pnpm -F @vben/web-antd run typecheck && pnpm -F @vben/web-antd run build",
"docs:serve": "@php -S 127.0.0.1:18100 -t docs",
"docs:check": "./bin/smart.php xadmin:docs:check",
"release:backup": "@php .php-sfx-packer.php snapshot-isolated .",
"release:restore:dry-run": "./bin/smart.php xadmin:release:restore --install --dry-run --json",
"release:snapshot": "@composer release:backup",
"release:check": [
"@composer analyse",
"@composer test",
"@composer web:build",
"@composer release:snapshot",
"./bin/smart.php xadmin:menu:sync --dry-run --json",
"./bin/smart.php xadmin:node:sync --dry-run --json"
],
"post-autoload-dump": [
"rm -rf runtime/container",
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"sync": [
"./bin/smart.php xadmin:build:model",
"./bin/smart.php xadmin:build:struct",
"./bin/smart.php runtime vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php",
"./bin/smart.php runtime vendor/bin/phpstan analyse plugin config tests --level=0 --memory-limit=1G"
],
"build:web": "@composer web:build",
"build:sync": [
"./bin/smart.php xadmin:menu:sync --details",
"./bin/smart.php xadmin:node:sync --details",
"export COMPOSER_ALLOW_SUPERUSER=1 && ./bin/smart.php composer sync"
],
"build:clean": "rm -f system.bin build/system build/system-linux-x64 build/system-linux-a64 build/system-macos-a64 build/upgrade/system build/upgrade/system-linux-x64 build/upgrade/system-linux-a64 build/upgrade/system-macos-a64 build/.env build/.env.example build/.DS_Store && rm -rf build/public build/runtime runtime/container storage/extra/release",
"build:install-prod": "export COMPOSER_ALLOW_SUPERUSER=1 && ./bin/smart.php composer install --no-dev --optimize-autoloader --classmap-authoritative --no-interaction --prefer-dist --no-progress",
"build:snapshot": "@php .php-sfx-packer.php snapshot .",
"build:precompile": "@php .php-sfx-packer.php precompile .",
"build:phar": [
"rm -f system.bin",
"APP_ENV=prod SCAN_CACHEABLE=true ./bin/smart.php runtime -d phar.readonly=Off -d opcache.enable=0 ./bin/hyperf.php xadmin:build:phar --mount=.env --name=system.bin --phar-version=2.0.0",
"@php .php-sfx-packer.php pack system.bin build/system"
],
"build:audit": "@php .php-sfx-packer.php audit build/system",
"build:cleanup": "rm -f system.bin",
"build:restore-dev": "export COMPOSER_ALLOW_SUPERUSER=1 && ./bin/smart.php composer install --optimize-autoloader --no-interaction --prefer-dist --no-progress",
"build": "@php .php-sfx-packer.php build",
"setup": [
"./bin/smart.php sqlite",
"./bin/smart.php migrate",
"./bin/smart.php xadmin:menu:sync --details",
"./bin/smart.php xadmin:node:sync --details"
],
"watch": [
"Composer\\Config::disableProcessTimeout",
"./bin/smart.php"
],
"start": [
"Composer\\Config::disableProcessTimeout",
"./bin/smart.php"
]
}
}