You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command: mageforge:build
Expect theme-name e.g. mageforge:build:vendor/themename
pre-requirements in mageforge
The command need to get for all available themes from database and provide it in the command-cli-output:
If users run mageforge:buildwithout a specific vendor/themename, the output should be:
Available themes
...
Available Themes you can use:
mageforge:build:vendorA/name1
mageforge:build:vendorA/name2
mageforge:build:vendorA/name3
mageforge:build:vendorB/name1
mageforge:build:vendorB/name2
Do you want to build all theme (y/n)
Build Commands
Build all available Themes
mageforge:build:all
Build Single Theme
mageforge:build:vendorA/name1
Build Mutlible Themes
mageforge:build:vendorA/name1 vendorA/name2
Build steps
get theme path
check for theme folder (src/...,app/design/...)
validate registration.php exists
Repeat for each provided theme name if it was an array.
check theme type
figure out if this theme is one of these theme-type
magento standard theme (with deprecated grunt)
custom theme (with custom build solutions)
hyva based theme <= v1.2
hyva based theme > v1.2
hyva-fallback
build theme
Magento standard theme
check in magento root for node_modules folder
check if package.lock exist
if yes run npm ci
if not, run npm install
check ./node-modules/.bin/grunt is available if not, try grunt globally.
if grunt is not available, run npm i grunt-cli and try again.
if grunt response some error, rm -rf node-modules and run npm install again
run from composer root /node_modules/.bin/grunt clean
run from composer root /node_modules/.bin/grunt less
clear magento cache
Output success or error message like: The Theme Build for ${THEME_NAME} has been finished successful.
Repeat for each provided theme name if it was an array.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Command:
mageforge:build
Expect theme-name e.g.
mageforge:build:vendor/themename
pre-requirements in mageforge
The command need to get for all available themes from database and provide it in the command-cli-output:
If users run
mageforge:build
without a specificvendor/themename
, the output should be:Available themes
Build Commands
Build all available Themes
mageforge:build:all
Build Single Theme
mageforge:build:vendorA/name1
Build Mutlible Themes
mageforge:build:vendorA/name1 vendorA/name2
Build steps
get theme path
src/...
,app/design/...
)Repeat for each provided theme name if it was an array.
check theme type
build theme
Magento standard theme
node_modules
folderpackage.lock
existnpm ci
npm install
./node-modules/.bin/grunt
is available if not, trygrunt
globally.grunt
is not available, runnpm i grunt-cli
and try again.grunt
response some error,rm -rf node-modules
and runnpm install
again/node_modules/.bin/grunt clean
/node_modules/.bin/grunt less
The Theme Build for ${THEME_NAME} has been finished successful.
Repeat for each provided theme name if it was an array.
WIP .... will be continued
Beta Was this translation helpful? Give feedback.
All reactions