diff --git a/package.json b/package.json
index 71b2e58..40fd249 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,7 @@
"snippets": [
{
"language": "xml",
- "path": "./snippets/layout/arguement.json"
+ "path": "./snippets/layout/argument.json"
},
{
"language": "xml",
@@ -66,6 +66,10 @@
"language": "php",
"path": "./snippets/module/registration.json"
},
+ {
+ "language": "json",
+ "path": "./snippets/module/composer.json"
+ },
{
"language": "xml",
"path": "./snippets/events.json"
diff --git a/snippets/di.json b/snippets/di.json
index 10ad77f..9373785 100644
--- a/snippets/di.json
+++ b/snippets/di.json
@@ -57,6 +57,6 @@
"\t$0",
""
],
- "description": "Magento 2 DI type"
+ "description": "Magento 2 DI virtual type"
}
}
diff --git a/snippets/layout/arguement.json b/snippets/layout/argument.json
similarity index 69%
rename from snippets/layout/arguement.json
rename to snippets/layout/argument.json
index 09e29e6..41aefaa 100644
--- a/snippets/layout/arguement.json
+++ b/snippets/layout/argument.json
@@ -1,19 +1,19 @@
{
- "Arguements": {
+ "Arguments": {
"prefix": "m2.layout.args",
"body": [
"",
"\t$0",
""
],
- "description": "Includes a certain layout file"
+ "description": "Add arguments"
},
- "Arguement": {
+ "Argument": {
"prefix": "m2.layout.arg",
"body": [
"$3$0"
],
- "description": "Includes a certain layout file"
+ "description": "Add an argument"
}
}
\ No newline at end of file
diff --git a/snippets/module/composer.json b/snippets/module/composer.json
new file mode 100644
index 0000000..7d94153
--- /dev/null
+++ b/snippets/module/composer.json
@@ -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"
+}
+}
\ No newline at end of file
diff --git a/snippets/module/module.json b/snippets/module/module.json
index e32c7a0..a14c039 100644
--- a/snippets/module/module.json
+++ b/snippets/module/module.json
@@ -5,9 +5,9 @@
"",
"",
- "\t",
+ "\t",
""
],
- "description": "Magento 2 DI scaffold"
+ "description": "Magento 2 module.xml"
}
}
\ No newline at end of file
diff --git a/snippets/module/registration.json b/snippets/module/registration.json
index 1d937a4..e988312 100644
--- a/snippets/module/registration.json
+++ b/snippets/module/registration.json
@@ -8,6 +8,6 @@
"\t__DIR__",
");"
],
- "description": "Magento 2 registration file"
+ "description": "Magento 2 registration.php"
}
}
\ No newline at end of file
diff --git a/snippets/routes.json b/snippets/routes.json
index 1833475..a572b14 100644
--- a/snippets/routes.json
+++ b/snippets/routes.json
@@ -17,7 +17,7 @@
"\t$0",
""
],
- "description": "Magento 2 event"
+ "description": "Magento 2 router"
},
"Route": {
"prefix": "m2.routes.route",
@@ -26,6 +26,6 @@
"\t",
""
],
- "description": "Magento 2 event observer"
+ "description": "Magento 2 route"
}
}
\ No newline at end of file