Skip to content

Conversation

@riconeitzel
Copy link
Contributor

improves db_schema.xml
adds requireJS config
improves registration.php

xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">

</schema>
<table name="${Table_Name}" resource="default" engine="innodb" comment="${Comment}">
Copy link
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.

<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
\Magento\Framework\Component\ComponentRegistrar::${Component_Type},
Copy link
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

'use strict';

var config={
map: {
Copy link
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