0.3.1 • Published 2 years ago
oxmodule v0.3.1
ITholics' oxmodule
Introduction
Helper to create module (v2.1) skeleton for oXID written for NodeJS.
Usage
You may install it globally:
npm install -g oxmodule
oxmoduleor better:
npx oxmoduleIf the module structure is like:
modules
- vendor
- module_name1
- module_name2
- vendor
You will be asked for the installation path (defaults to current directory). You can provide the modules/ or modules/vendor/ if
the target-directory is f.e. vendor/module_name3. Tt will add the module_name3 to the vendor folder.
If the vendor das not exist, you must provide the modules/ folder.
In the process of creation it will ask you some questions about the module you like to create:
- composer naming
- target directory naming
- module id
- etc...
You should be in the <SHOP>/source/modules or <SHOP>/source/modules/<YOUR_VENDOR> directory or providing this directory in the process.
Skeleton
TARGET_VENDORTARGET_NAME- Application
- Component
- Widget
- Controller
- Admin
- Core
- Module.php
- Model
- translations (optional)
- de
ID_de_lang.php
- en
ID_en_lang.php
- es
ID_es_lang.php
- fr
ID_fr_lang.php
- it
ID_it_lang.php
- de
- views
- admin (oxid
<7)- de
ID_admin_de_lang.php
- en
ID_admin_en_lang.php
- tpl
- de
- admin_smarty (oxid
>=7)- de
ID_admin_de_lang.php
- en
ID_admin_en_lang.php
- tpl
- de
- admin_twig (oxid
>=7)- de
ID_admin_de_lang.php
- en
ID_admin_en_lang.php
- tpl
- de
- blocks
- tpl
- admin (oxid
- Component
- bin
- install.sh
- update.sh
- remove.sh
- docs
- out (oxid
<7) - assets (oxid
>=7) - Smarty
- composer.json
- metadata.php
- README.md
- Application