From 3943c69a39596550a137ffdc1de547d165fa003e Mon Sep 17 00:00:00 2001 From: Alex Taranovsky Date: Wed, 15 May 2019 19:23:35 +0300 Subject: [PATCH 1/3] magento/devdocs#: Component types --- guides/v2.3/extension-dev-guide/prepare/dev-modtypes.md | 1 - 1 file changed, 1 deletion(-) delete mode 120000 guides/v2.3/extension-dev-guide/prepare/dev-modtypes.md diff --git a/guides/v2.3/extension-dev-guide/prepare/dev-modtypes.md b/guides/v2.3/extension-dev-guide/prepare/dev-modtypes.md deleted file mode 120000 index 8d93c4a6f65..00000000000 --- a/guides/v2.3/extension-dev-guide/prepare/dev-modtypes.md +++ /dev/null @@ -1 +0,0 @@ -../../../v2.2/extension-dev-guide/prepare/dev-modtypes.md \ No newline at end of file From 894d6af97f85cc020ebf9678219451308410739e Mon Sep 17 00:00:00 2001 From: Alex Taranovsky Date: Wed, 15 May 2019 19:26:09 +0300 Subject: [PATCH 2/3] magento/devdocs#: Component types --- .../prepare/dev-modtypes.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 guides/v2.3/extension-dev-guide/prepare/dev-modtypes.md diff --git a/guides/v2.3/extension-dev-guide/prepare/dev-modtypes.md b/guides/v2.3/extension-dev-guide/prepare/dev-modtypes.md new file mode 100644 index 00000000000..4682a9e16c9 --- /dev/null +++ b/guides/v2.3/extension-dev-guide/prepare/dev-modtypes.md @@ -0,0 +1,32 @@ +--- +group: php-developer-guide +subgroup: 02_Prepare +title: Component types +menu_title: Component types +menu_order: 2 +menu_node: +redirect_from: + - /guides/v2.0/mktpl-quickstart/dev-modtypes.html + - /guides/v2.0/extension-dev-guide/dev-modtypes.html + - /guides/v2.1/mktpl-quickstart/dev-modtypes.html + - /guides/v2.2/mktpl-quickstart/dev-modtypes.html +--- + +Each component type has a different [directory structure][directory-structure] and different contents for [`composer.json`][composer]. + +The following table discusses the component types that Magento Marketplace supports. The composer `type` column in the following table specifies the value of the `type` field you must add to `composer.json` for that type of component. + +|Friendly name|composer.json type|Description| +|--- |--- |--- | +|Metapackage|metapackage|Technically, a Composer package type, not a Magento component type. A metapackage consists of only a `composer.json` file that specifies a list of components and their dependencies. For example, both {{site.data.var.ce}} and {{site.data.var.ee}} are metapackages.| +|Module|magento2-module|Code that modifies Magento application behavior. You can upload a single module to the Magento Marketplace or your module can be dependent on some parent package.| +|Theme|magento2-theme|Code that modifies the look and feel of the storefront or Magento Admin.| +|Language package|magento2-language|Translations for the storefront or Admin.| +|Setup|magento2-setup|Setup component.| + +#### Next +[About component file structure][component-file-structure] + +[directory-structure]: {{ page.baseurl }}/extension-dev-guide/build/module-file-structure.html +[composer]: {{ page.baseurl }}/extension-dev-guide/build/composer-integration.html +[component-file-structure]: {{ page.baseurl }}/extension-dev-guide/prepare/prepare_file-str.html From 90ce7a92db14a61f10255488689a10c9a77a64e0 Mon Sep 17 00:00:00 2001 From: Alex Taranovsky Date: Thu, 11 Jul 2019 10:07:24 +0300 Subject: [PATCH 3/3] magento/devdocs#: Component types --- _includes/php-dev/composer-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/php-dev/composer-types.md b/_includes/php-dev/composer-types.md index e500cf03085..263d574244a 100644 --- a/_includes/php-dev/composer-types.md +++ b/_includes/php-dev/composer-types.md @@ -7,4 +7,4 @@ The following table discusses the component types that Magento Marketplace suppo |Theme|magento2-theme|Code that modifies the look and feel of the storefront or Magento Admin.| |Language package|magento2-language|Translations for the storefront or Admin.| |Library|magento2-library|Support for libraries located in `lib/internal` instead of in the `vendor` directory.| -|Component|magento2-component|Good example of `magento2-component` is the [Magento 2 Data Migration Tool]({{ site.mage2bloburl }}/{{ page.guide_version }}/migration/bk-migration-guide.html).| +|Component|magento2-component|The package formed of the files that must be located in root (index.php, .htaccess, etc). This includes `dev/tests` and `setup` as well for now.|