-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
68 lines (68 loc) · 3.08 KB
/
composer.json
File metadata and controls
68 lines (68 loc) · 3.08 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
{
"name": "sy/project",
"description": "Project template",
"type": "project",
"require": {
"sy/bootstrap": "*"
},
"license": "MIT",
"authors": [
{
"name": "Syone",
"email": "syone7@gmail.com"
}
],
"config": {
"vendor-dir": "protected/vendor",
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"autoload": {
"psr-4": {
"Project\\": "protected/src/"
}
},
"require-dev": {
"sy/coding-standard": "*",
"sy/genini": "*",
"sy/flyway": "*"
},
"scripts": {
"post-create-project-cmd": "@install-project",
"post-install-cmd": "@install-project",
"post-update-cmd": "@install-project",
"post-package-install": [
"Sy\\Bootstrap\\Plugin::postPackageInstall"
],
"post-package-update": [
"Sy\\Bootstrap\\Plugin::postPackageUpdate"
],
"install-project": [
"protected/vendor/bin/genini '{\"file\":\"protected\/conf\/database.ini\",\"input\":{\"host\":{\"question\":\"MySQL hostname\"},\"port\":{\"question\":\"MySQL port\",\"default\":\"3306\"},\"dbname\":{\"question\":\"Database name\"},\"username\":{\"question\":\"Database username\"},\"password\":{\"question\":\"Database password\"},\"charset\":{\"question\":\"Charset\",\"default\":\"utf8mb4\"}}}'",
"protected/vendor/bin/genini '{\"file\":\"protected/conf/smtp.ini\",\"input\":{\"host\":{\"question\":\"SMTP hostname (An IP address or FQDN of the SMTP server)\",\"default\":\"smtp.gmail.com\"},\"port\":{\"question\":\"SMTP port (Usually 465 or 587)\",\"default\":\"587\"},\"username\":{\"question\":\"SMTP user (User name used to connect to the SMTP server. Leave empty if no authentication is required)\"},\"password\":{\"question\":\"SMTP password (Password of the SMTP user. Leave empty if no authentication is required)\"},\"encryption\":{\"question\":\"Encryption (Usually tls on port 587 and ssl on port 465)\",\"default\":\"tls\"}}}'",
"@build",
"@db repair",
"@db migrate",
"sudo chmod -R a+w ."
],
"install-plugin": [
"Sy\\Bootstrap\\Plugin::install"
],
"build": "id -nG \"$USER\" | grep -qw docker && SUDO=sudo;$SUDO docker run --pull always --rm -v \"$PWD\":/syproject -w /syproject node:slim /bin/bash -c \"npm install;npm install -g gulp-cli;gulp build\"",
"db": [
"protected/vendor/bin/flyway --conf protected/conf/database.ini --sql protected/sql --task",
"Sy\\Bootstrap\\Plugin::db"
],
"format": "protected/vendor/bin/phpcbf --colors --standard=protected/vendor/sy/coding-standard/ruleset.xml",
"check": "protected/vendor/bin/phpcs --colors --standard=protected/vendor/sy/coding-standard/ruleset.xml"
},
"scripts-descriptions": {
"install-project": "Full project installation",
"install-plugin": "Plugin installation: composer install-plugin [REQUIRED PLUGIN NAME] [OPTIONAL VERSION NUMBER] (Plugin name: article, cms, message, location, link etc...)",
"build": "Compile and build all CSS and JS assets",
"db": "Run Flyway: composer db [migrate|info|repair|clean|validate|baseline]",
"format": "Format the PHP coding style: composer format [FILE OR DIRECTORY]",
"check": "Check the PHP coding style: composer check [FILE OR DIRECTORY]"
}
}