Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions M2 db_schema.xml.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0"?>

<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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.


</table>
</schema>
2 changes: 1 addition & 1 deletion M2 registration.php.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?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

'${VendorName_ModuleName}',
__DIR__
);
9 changes: 9 additions & 0 deletions M2 requireJS Config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'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

'*': {

}
}
};