Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"snippets": [
{
"language": "xml",
"path": "./snippets/layout/arguement.json"
"path": "./snippets/layout/argument.json"
},
{
"language": "xml",
Expand Down Expand Up @@ -66,6 +66,10 @@
"language": "php",
"path": "./snippets/module/registration.json"
},
{
"language": "json",
"path": "./snippets/module/composer.json"
},
{
"language": "xml",
"path": "./snippets/events.json"
Expand Down
2 changes: 1 addition & 1 deletion snippets/di.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
"\t$0",
"</virtualType>"
],
"description": "Magento 2 DI type"
"description": "Magento 2 DI virtual type"
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"Arguements": {
"Arguments": {
"prefix": "m2.layout.args",
"body": [
"<arguments>",
"\t$0",
"</arguments>"
],
"description": "Includes a certain layout file"
"description": "Add arguments"
},

"Arguement": {
"Argument": {
"prefix": "m2.layout.arg",
"body": [
"<argument name=\"${1:name}\" xsi:type=\"${2|array,boolean,number,null,object,string|}\">$3</argument>$0"
],
"description": "Includes a certain layout file"
"description": "Add an argument"
}
}
28 changes: 28 additions & 0 deletions snippets/module/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"Composer": {
"prefix": "m2.module.composer",
"body": [
"{",
"\t\"name\": \"${1:vendor}\/module-${2:module}\",",
"\t\"description\": \"N\/A\",",
"\t\"require\": {",
"\t\t\"magento\/framework\": \"*\"",
"\t},",
"\t\"type\": \"magento2-module\",",
"\t\"version\": \"0.1.0\",",
"\t\"license\": [",
"\t\t\"OSL-3.0\"",
"\t],",
"\t\"autoload\": {",
"\t\t\"files\": [",
"\t\t\t\"registration.php\"",
"\t\t],",
"\t\t\"psr-4\": {",
"\t\t\t\"${3:Vendor}\\\\\\\\${4:Module}\\\\\\\": \"\"",
"\t\t}",
"\t}",
"}"
],
"description": "Magento 2 composer.json"
}
}
4 changes: 2 additions & 2 deletions snippets/module/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"<?xml version=\"1.0\"?>",
"<config xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ",
"\t\txsi:noNamespaceSchemaLocation=\"urn:magento:framework:ObjectManager/etc/module.xsd\">",
"\t<module name=\"${1:Vendor_Module}\" setup_version=\"0.1.0\" />",
"\t<module name=\"${1:Vendor_Module}\" />",
"</config>"
],
"description": "Magento 2 DI scaffold"
"description": "Magento 2 module.xml"
}
}
2 changes: 1 addition & 1 deletion snippets/module/registration.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"\t__DIR__",
");"
],
"description": "Magento 2 registration file"
"description": "Magento 2 registration.php"
}
}
4 changes: 2 additions & 2 deletions snippets/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"\t$0",
"</router>"
],
"description": "Magento 2 event"
"description": "Magento 2 router"
},
"Route": {
"prefix": "m2.routes.route",
Expand All @@ -26,6 +26,6 @@
"\t<module name=\"${3:Vendor_Module}\" />",
"</route>"
],
"description": "Magento 2 event observer"
"description": "Magento 2 route"
}
}