[go: nahoru, domu]

Skip to content

ubermanu/magefront

Repository files navigation

npm tests



Magefront is a tool that gives you the choice of which technology your themes rely on.

For example, it can be less, sass, stylus, or whatever you want! 🚀

You can see a list of the available plugins here.

Install

Install the package at the root level of your project:

npm install magefront

Usage

npx magefront [options] [locale]

Example:

npx magefront -t Magento/blank en_US

Configuration

The magefront.config.js file should be located in the root directory of your project.

// magefront.config.js
export default {
  presets: ['magefront-preset-default'],
}

This is considered as the "default" configuration, so the original themes (blank, luma) can work without it.

For more information, check the documentation.

Tests

You can test magefront on a Magento 2 instance by doing the following:

  1. Clone this repository
  2. Copy the .env.test.dist file to .env.test and fill in your Magento path
  3. Install the dependencies: pnpm install
  4. Run the tests: pnpm test