Skip to content

Commit

Permalink
Merge pull request #5 from barbanet/master
Browse files Browse the repository at this point in the history
Base module.
  • Loading branch information
barbanet authored Oct 2, 2020
2 parents d5031b0 + 4f02ebd commit 7ea7a82
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 16 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 MugAr
Copyright (c) 2020 MugAr

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 6 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,27 @@
# Repository tasks
# Mugar_Taxes for Magento2

After creating the repository with the template, you must:

* Edit the file .github / pull_request_template.md and change holamugar / module-module-name with the correct module name.
* Edit README.md and change all references to ModuleName by the correct module name.
* Remove this block from README.md, from the beginning of the document to the next block H1.


# Mugar_ModuleName for Magento2

General description of the module.
Taxes for Argentina to be used with Magento2.

## Installation

Use [composer](https://getcomposer.org/) to install Mugar_ModuleName.
Use [composer](https://getcomposer.org/) to install Mugar_ArgentinaRegions.

```
composer require mugar/module-name-using-hyphen-case
composer require mugar/module-taxes
```

Then you'll need to activate the module.

```
bin/magento module:enable Mugar_ModuleName
bin/magento module:enable Mugar_Taxes
bin/magento setup:upgrade
bin/magento cache:clean
```

## Uninstall

```
bin/magento module:uninstall Mugar_ModuleName
bin/magento module:uninstall Mugar_Taxes
```

If you used Composer for installation Magento will remove the files and database information.
Expand Down
21 changes: 21 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "mugar/module-taxes",
"description": "Taxes for Argentina for Magento2.",
"require": {
"php": "~7.2.0||~7.3.0||~7.4.0",
"magento/module-directory": "100.*"
},
"type": "magento2-module",
"version": "0.1.0",
"license": [
"MIT"
],
"autoload": {
"files": [
"registration.php"
],
"psr-4": {
"Mugar\\Taxes\\": ""
}
}
}
18 changes: 18 additions & 0 deletions etc/module.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<!--
/**
* Taxes
*
* @category Mugar
* @package Mugar_Taxes
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @author Mugar (https://www.mugar.io/)
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Mugar_Taxes">
<sequence>
<module name="Magento_Tax" />
</sequence>
</module>
</config>
19 changes: 19 additions & 0 deletions registration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
/**
* Taxes
*
* @category Mugar
* @package Mugar_Taxes
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @author Mugar (https://www.mugar.io/)
*/

declare(strict_types=1);

use Magento\Framework\Component\ComponentRegistrar;

ComponentRegistrar::register(
ComponentRegistrar::MODULE,
'Mugar_Taxes',
__DIR__
);

0 comments on commit 7ea7a82

Please sign in to comment.