PHPackages                             brainvireteam/module-grunt - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. brainvireteam/module-grunt

ActiveMagento2-component[Utility &amp; Helpers](/categories/utility)

brainvireteam/module-grunt
==========================

Grunt Module

v1.0.1(4y ago)04proprietaryJavaScriptPHP &gt;=5.5.0

Since Sep 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/brainvireteam/module-grunt)[ Packagist](https://packagist.org/packages/brainvireteam/module-grunt)[ RSS](/packages/brainvireteam-module-grunt/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Grunt Module
============

[](#grunt-module)

Enable Grunt to be used for compiling CSS. Add additional control, speed, sourcemaps and allows post compiliation tasks.

!!!! PLEASE READ ME !!!!!
-------------------------

[](#-please-read-me-)

In addition to this module, each project will need a project specific Grunt 'theme' module to extend this. This is needed to configure the themes and locales (if multi-language) for the project, replacing the Blank &amp; Luma theme in en\_US grunt set-up. The module will be "type": "magento2-component" and just contain one file: grunt/grunt/configs/themes.js.

An example of the themes.js &amp; composer.json files for this are set out at the bottom of this README.

After installing this module npm install should be run to install node modules for Grunt. run: sudo npm install inside the project/gunt folder (at the same level as this module's Gruntfile.js.) This will create a local or server copy of node\_modules. To check if the node modules installed matches those in the package.json list use ls -1 node\_modules/.

Use the command grunt refresh --force to run all grunt tasks or a subset with grunt exec:en\_US or grunt dev:en\_US.

The project will still contain Magento's default Gruntfile.js - this should be ignored. If you run grunt at the project level (i.e. not in its grunt folder) it will not work properly.

If this module is upgraged and your project needs the new upgrade version, the node\_modules folder will need to be deleted, after running composer update, it will need to be re-created using sudo npm install again.

### File functionality

[](#file-functionality)

Gruntfile.js

- dev task function to allow grunt tasks for specific locales - e.g. grunt dev:en\_US
- npm task to load post CSS routine: grunt.loadNpmTasks('grunt-postcss');

package.json

- postcss modules that run after Grunt has compiled the CSS stylesheet - (March 2015 = Autoprefixer, CSSnano, RTLcss)

dev/tools/grunt/configs/less.js

- add sourceMapBasepath to pub/ for source maps

### composer.json mapping for project specific grunt theme module - replace {PROJECT}:

[](#composerjson-mapping-for-project-specific-grunt-theme-module---replace-project)

```
#!javascript

{
    "name": "{PROJECT}/module-grunt-theme",
    "description": "{PROJECT} Grunt Module",
    "license": "proprietary",
    "require": {
        "php": "~5.5.0|~5.6.0|~7.0.0",
        "magento/framework": "100.0.*",
        "{PROJECT}/theme-default": "*"
    },
    "type": "magento2-component",
    "extra": {
        "map": [
            [
                "grunt/grunt/configs/themes.js",
                "grunt/grunt/configs/themes.js"
            ]
        ]
    }
}

```

### themes.js example - this will need to be tailored to the project setup - also replace {PROJECT}:

[](#themesjs-example---this-will-need-to-be-tailored-to-the-project-setup---also-replace-project)

```
#!javascript

module.exports = {
    ar_SA: {
        area: 'frontend',
        name: '{PROJECT}/arabic',
        locale: 'ar_SA',
        files: [
            'css/styles-m',
            'css/styles-l',
            'css/email'
        ],
        dsl: 'less'
    },
    en_US: {
        area: 'frontend',
        name: '{PROJECT}/default',
        locale: 'en_US',
        files: [
            'css/styles-m',
            'css/styles-l',
            'css/email'
        ],
        dsl: 'less'
    }
};

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1751d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47733056?v=4)[Abhay](/maintainers/khatariya)[@khatariya](https://github.com/khatariya)

---

Top Contributors

[![khatariya](https://avatars.githubusercontent.com/u/47733056?v=4)](https://github.com/khatariya "khatariya (2 commits)")

### Embed Badge

![Health badge](/badges/brainvireteam-module-grunt/health.svg)

```
[![Health](https://phpackages.com/badges/brainvireteam-module-grunt/health.svg)](https://phpackages.com/packages/brainvireteam-module-grunt)
```

###  Alternatives

[leocarmo/circuit-breaker-php

Circuit Breaker for PHP

302480.9k3](/packages/leocarmo-circuit-breaker-php)[vipsoft/unzip

Unzip library - a ZipArchive wrapper

381.4M](/packages/vipsoft-unzip)[tuncaybahadir/quar

A simple QR Code generation tool for your projects with Laravel 10, 11, 12, 13 versions, php 8.2, 8.3, 8.4 and 8.5

79116.7k6](/packages/tuncaybahadir-quar)[lara-zeus/accordion

Zeus Accordion is filamentphp layout component to group components

11149.8k4](/packages/lara-zeus-accordion)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
