From a83416b41150e82feb37e552c485b432a37253cf Mon Sep 17 00:00:00 2001 From: lfolco Date: Mon, 12 Jul 2021 13:32:14 -0400 Subject: [PATCH 1/5] update docs, remove setup_version from module.xml --- snippets/module/module.json | 2 +- snippets/routes.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/snippets/module/module.json b/snippets/module/module.json index e32c7a0..a13cabd 100644 --- a/snippets/module/module.json +++ b/snippets/module/module.json @@ -5,7 +5,7 @@ "", "", - "\t", + "\t", "" ], "description": "Magento 2 DI scaffold" 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 From 584428068140338ca746106eb42a140fe5d1ceee Mon Sep 17 00:00:00 2001 From: lfolco Date: Mon, 12 Jul 2021 13:36:27 -0400 Subject: [PATCH 2/5] update description --- snippets/di.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } } From c46bb05e01ba4aba9999eab0537bb1634b1d9e34 Mon Sep 17 00:00:00 2001 From: lfolco Date: Mon, 12 Jul 2021 16:53:41 -0400 Subject: [PATCH 3/5] add composer snippet --- package.json | 4 ++++ snippets/module/composer.json | 28 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 snippets/module/composer.json diff --git a/package.json b/package.json index 71b2e58..4db78c9 100644 --- a/package.json +++ b/package.json @@ -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/module/composer.json b/snippets/module/composer.json new file mode 100644 index 0000000..58905a9 --- /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 file" +} +} \ No newline at end of file From 326f0821fc67379fa92f6f048cfc966de139c7f8 Mon Sep 17 00:00:00 2001 From: lfolco Date: Mon, 12 Jul 2021 17:09:21 -0400 Subject: [PATCH 4/5] fix typos --- package.json | 2 +- snippets/layout/{arguement.json => argument.json} | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) rename snippets/layout/{arguement.json => argument.json} (69%) diff --git a/package.json b/package.json index 4db78c9..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", 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 From 01c96c3df016d67db195a45da3e1bab17c105dbd Mon Sep 17 00:00:00 2001 From: lfolco Date: Wed, 29 Dec 2021 15:43:50 -0500 Subject: [PATCH 5/5] update descriptions --- snippets/module/composer.json | 2 +- snippets/module/module.json | 2 +- snippets/module/registration.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/snippets/module/composer.json b/snippets/module/composer.json index 58905a9..7d94153 100644 --- a/snippets/module/composer.json +++ b/snippets/module/composer.json @@ -23,6 +23,6 @@ "\t}", "}" ], - "description": "Magento 2 composer file" + "description": "Magento 2 composer.json" } } \ No newline at end of file diff --git a/snippets/module/module.json b/snippets/module/module.json index a13cabd..a14c039 100644 --- a/snippets/module/module.json +++ b/snippets/module/module.json @@ -8,6 +8,6 @@ "\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