Skip to content

improvements#10

Open
riconeitzel wants to merge 3 commits into
lfolco:masterfrom
riconeitzel:master
Open

improvements#10
riconeitzel wants to merge 3 commits into
lfolco:masterfrom
riconeitzel:master

Conversation

@riconeitzel

Copy link
Copy Markdown
Contributor

improves db_schema.xml
adds requireJS config
improves registration.php

Comment thread M2 db_schema.xml.xml
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">

</schema> No newline at end of file
<table name="${Table_Name}" resource="default" engine="innodb" comment="${Comment}">

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather keep fields out of the XML for these.

Comment thread M2 registration.php.php
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
\Magento\Framework\Component\ComponentRegistrar::${Component_Type},

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make it so that it defaults to MODULE if not specified? Like here: https://github.com/lfolco/phpstorm-m2-filetemplates/blob/master/M2%20composer.json.json#L5

Comment thread M2 requireJS Config.js
'use strict';

var config={
map: {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We wouldn't always do a map in a requirejs-config, so maybe leave that part out? Also, rename to m2 requirejs-config.js.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants