Skip to content

Commit

Permalink
Init Module
Browse files Browse the repository at this point in the history
  • Loading branch information
nenes25 committed Nov 6, 2023
0 parents commit b8307bc
Show file tree
Hide file tree
Showing 2,901 changed files with 358,446 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
moduleName=hhmodulesmanager
buildDir="/home/herve/www/build/"
cd $buildDir
rm -rf $moduleName
git clone [email protected]:nenes25/${moduleName}.git $moduleName
cd $moduleName
rm -rf .git/
rm -rf .github/
rm -rf .gitignore
rm -rf config_fr.xml
rm -rf .php_cs.cache
rm -rf .php_cs.dist
rm -rf tests/
rm -rf _dev
cd ../
rm -rf $moduleName.zip
zip $moduleName.zip -r ${moduleName}/
echo "Build zip make in ${buildDir}${moduleName}.zip"
23 changes: 23 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PHP tests
on: [ push, pull_request ]
jobs:
php-linter:
name: PHP Syntax check 7.4|8.0|8.1
runs-on: ubuntu-latest
steps:
- name: PHP syntax checker 7.4
uses: prestashop/github-action-php-lint/7.4@master
- name: PHP syntax checker 8.0
uses: prestashop/github-action-php-lint/8.0@master
- name: PHP syntax checker 8.1
uses: prestashop/github-action-php-lint/8.1@master

# Check the PHP code follow the coding standards
php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Run PHP-CS-Fixer
uses: prestashopcorp/github-action-php-cs-fixer@master
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
logs/*.log
upgrades/*.yml
tests/php/.php-cs-fixer.cache
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Module de gestion des mises à jour des modules et configuration via la CLI
Work in progress

Compatible et testé avec php7.4 et prestashop 1.7.8.x
Les autres versions seront à tester ultérieurement
15 changes: 15 additions & 0 deletions _dev/header-stamp/licence.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file docs/licenses/LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @author Hervé HENNES <[email protected]>
* @copyright since 2023 Hervé HENNES
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License ("AFL") v. 3.0
*/
31 changes: 31 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "hhennes/modulesmanager",
"description": "Manage modules from cli in Continuous deployment",
"license": "AFL",
"authors": [
{
"name": "Hervé Hennes",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"Hhennes\\ModulesManager\\": "src/"
}
},
"require": {
"prestashop/php-dev-tools": "^4.3"
},
"config": {
"prepend-autoloader": false
},
"scripts": {
"header-stamp": [
"vendor/bin/header-stamp --extensions=php,js,css,tpl --exclude=.github,vendor,tests,translations --license=_dev/header-stamp/licence.txt"
],
"cs-fixer": [
"vendor/bin/php-cs-fixer fix --config tests/php/.php-cs-fixer.dist.php"
]
},
"type": "prestashop-module"
}
Loading

0 comments on commit b8307bc

Please sign in to comment.