snowdog / frontools
snowdog/frontools
Set of front-end tools for Magento 2, based on Gulp.js
Magento 2 Frontools
Set of front-end tools for Magento 2
Requirements
- Unix-like OS (please, do not ask about Windows support)
- Node.js LTS version. We recommend using Volta.
- Magento 2 project with SASS based theme for example SASS version of "Blank" or Alpaca Theme
Installation
- Run
composer require snowdog/frontools - Go to package directory
cd vendor/snowdog/frontools - Run
yarnornpm install - Decide where you want to keep your config files.
You can store them in Frontoolsconfigdirectory or indev/tools/frontools/config(recommended).
There is asetuptask to copy all sample config files from theconfigtodev/tools/frontools/configand create a convenient symlinktoolsin the project root.
If you want to keep config files inside frontoolsconfigdir, you have to handle this manually. - Define your themes in
themes.json.
themes.json structure
Check config/themes.json.sample to get samples.
src- full path to themedest- full path topub/static/[theme_area]/[theme_vendor]/[theme_name]locale- array of available localesparent- name of parent themestylesDir- (defaultstyles) path to styles directory. Fortheme-blank-sassit'sstyles. By default Magento 2 useweb/css.disableSuffix- disable adding.minsuffix using--prodflag.postcss- (default["autoprefixer({ overrideBrowserslist: browserslist })"]) PostCSS plugins config. Have to be an array.modules- list of modules witch you want to map inside your themeignore- array of ignore patterns
watcher.json structure
Check config/watcher.json.sample to get samples.
usePolling- set this totrueto successfully watch files over a network (i.e. Docker or Vagrant) or when your watcher dosen't work well. Warning, enabling this option may lead to high CPU utilization! chokidar docs
sass-compiler.json structure
You can choose Sass compiler between the default, but already deprecated, node-sass or a newer and faster dart-sass.
Since the Dart Sass does not have the same set of features as Node Sass, for now we will keep the older version as default.
Optional configurations for 3rd party plugins
You will find sample config files for theses plugins in vendor/snowdog/frontools/config directory.
- Create browserSync configuration
- Create eslint configuration
- Create sass-lint configuration
- Create stylelint configuration
- Create svg-sprite configuration
Tasks list
Use yarn [taskName] or npm run [taskName] to run the task.
babel- Run Babel, a compiler for writing next generation JavaScript.--theme name- Process single theme.--prod- Production output - minifies and uglyfy code.
clean- Removes/pub/staticdirectory content.csslint- Run stylelint based tests.--theme name- Process single theme.--ci- Enable throwing errors. Useful in CI/CD pipelines.
dev- Runs browserSync andinheritance,babel,styles,watchtasks.--theme name- Process single theme.--disableLinting- Disable JS, SASS, CSS linting.--disableMaps- Disable inline source maps generation.
emailfix- Fixes email stylesheet for Magento < 2.3.0. Related issue--prod- Production output - minifies styles and add.minsufix.
eslint- Run eslint against all JS files.--theme name- Process single theme.--fix- Autofix errors--ci- Enable throwing errors. Useful in CI/CD pipelines.
inheritance- Create necessary symlinks to resolve theme styles inheritance and make the base for styles processing. You have to run in before styles compilation and after adding new files.magepackBundle- Run magepackbundlecommand.-cor--config- (required) Path to previously generated Magepack config file.--theme name- Process single theme.
magepackGenerate- Run magepackgeneratecommand.--cms-url- (required) URL to one of CMS pages (e.g. homepage).--category-url- (required) URL to one of category pages.--product-url- (required) URL to one of product pages.-uor--auth-username- Username for Basic Auth.-por--auth-password- Passoword for Basic Auth.-dor--debug- Turn on debugging mode.
sasslint- Run sass-lint based tests.--theme name- Process single theme.--ci- Enable throwing errors. Useful in CI/CD pipelines.
setup- Creates a convenient symlink from/toolsto/vendor/snowdog/frontoolsand copies all sample files if no configuration exists.--symlink name- If you don't want to usetoolsas the symlink you can specify another name.
styles- Use this task to manually trigger styles processing pipeline.--theme name- Process single theme.--disableMaps- Disable inline source maps generation.--prod- Production output - minifies styles and add.minsuffix.--ci- Enable throwing errors. Useful in CI/CD pipelines.
svg- Run svg-sprite to generate SVG sprite.--theme name- Process single theme.
watch- Watch for style changes and run processing tasks.--theme name- Process single theme.--disableLinting- Disable JS, SASS, CSS linting.--disableMaps- Disable inline source maps generation.
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 1.12.2 | stable | Pass | Magento 2.4.7-2.4.9 Details | 2022-03-07 11:34:34 |
| 1.12.1 | stable | Not tested | Not yet tested Details | 2022-01-03 20:00:55 |
| 1.12.0 | stable | Not tested | Not yet tested Details | 2021-11-07 20:44:11 |
| 1.11.0 | stable | Not tested | Not yet tested Details | 2020-11-16 23:16:10 |
| 1.10.1 | stable | Not tested | Not yet tested Details | 2020-11-05 14:28:35 |
| 1.10.0 | stable | Not tested | Not yet tested Details | 2020-10-27 15:05:59 |
| 1.9.0 | stable | Not tested | Not yet tested Details | 2020-09-18 14:49:00 |
| 1.8.2 | stable | Not tested | Not yet tested Details | 2020-02-12 11:24:12 |
| 1.8.1 | stable | Not tested | Not yet tested Details | 2020-01-09 10:59:19 |
| 1.8.0 | stable | Not tested | Not yet tested Details | 2019-11-14 09:47:22 |
| 1.7.3 | stable | Not tested | Not yet tested Details | 2019-10-22 18:34:44 |
| 1.7.2 | stable | Not tested | Not yet tested Details | 2019-07-15 15:45:10 |
| 1.7.1 | stable | Not tested | Not yet tested Details | 2019-07-15 15:07:45 |
| 1.7.0 | stable | Not tested | Not yet tested Details | 2019-07-13 00:42:01 |
| 1.6.0 | stable | Not tested | Not yet tested Details | 2018-12-18 14:12:20 |
| 1.5.16 | stable | Not tested | Not yet tested Details | 2018-11-19 13:46:08 |
| 1.5.15 | stable | Not tested | Not yet tested Details | 2018-08-09 15:38:56 |
| 1.5.14 | stable | Not tested | Not yet tested Details | 2018-06-26 12:46:52 |
| 1.5.13 | stable | Not tested | Not yet tested Details | 2018-04-06 09:57:36 |
| 1.5.12 | stable | Not tested | Not yet tested Details | 2018-03-27 16:24:22 |
| 1.5.11 | stable | Not tested | Not yet tested Details | 2018-02-14 23:46:55 |
| 1.5.10 | stable | Not tested | Not yet tested Details | 2017-12-04 13:33:00 |
| 1.5.9 | stable | Not tested | Not yet tested Details | 2017-12-04 13:14:26 |
| 1.5.8 | stable | Not tested | Not yet tested Details | 2017-08-16 15:55:03 |
| 1.5.7 | stable | Not tested | Not yet tested Details | 2017-08-16 14:37:28 |
| 1.5.6 | stable | Not tested | Not yet tested Details | 2017-08-07 17:01:42 |
| 1.5.5 | stable | Not tested | Not yet tested Details | 2017-07-04 14:11:21 |
| 1.5.4 | stable | Not tested | Not yet tested Details | 2017-07-04 13:29:53 |
| 1.5.3 | stable | Not tested | Not yet tested Details | 2017-07-03 16:07:24 |
| 1.5.2 | stable | Not tested | Not yet tested Details | 2017-06-23 12:46:36 |
| 1.5.1 | stable | Not tested | Not yet tested Details | 2017-06-21 19:00:49 |
| 1.5.0 | stable | Not tested | Not yet tested Details | 2017-06-18 00:27:00 |
| 1.4.5 | stable | Not tested | Not yet tested Details | 2017-05-06 11:46:39 |
| 1.4.4 | stable | Not tested | Not yet tested Details | 2017-04-19 22:32:56 |
| 1.4.3 | stable | Not tested | Not yet tested Details | 2017-03-16 09:27:26 |
| 1.4.2 | stable | Not tested | Not yet tested Details | 2017-03-14 14:40:13 |
| 1.4.1 | stable | Not tested | Not yet tested Details | 2017-03-13 09:15:07 |
| 1.4.0 | stable | Not tested | Not yet tested Details | 2017-03-13 01:49:09 |
| 1.3.10 | stable | Not tested | Not yet tested Details | 2017-03-11 09:59:06 |
| 1.3.7 | stable | Not tested | Not yet tested Details | 2017-03-11 09:56:37 |
| 1.3.9 | stable | Not tested | Not yet tested Details | 2017-03-11 09:55:07 |
| 1.3.8 | stable | Not tested | Not yet tested Details | 2017-03-07 15:24:07 |
| 1.3.6 | stable | Not tested | Not yet tested Details | 2017-03-04 19:54:52 |
| 1.3.5 | stable | Not tested | Not yet tested Details | 2017-03-03 17:49:31 |
| 1.3.0 | stable | Not tested | Not yet tested Details | 2017-03-03 17:27:19 |
| 1.3.4 | stable | Not tested | Not yet tested Details | 2017-03-03 17:21:53 |
| 1.3.3 | stable | Not tested | Not yet tested Details | 2017-02-21 17:53:18 |
| 1.3.2 | stable | Not tested | Not yet tested Details | 2017-02-20 19:41:40 |
| 1.3.1 | stable | Not tested | Not yet tested Details | 2017-02-20 13:37:16 |
| 1.2.2 | stable | Not tested | Not yet tested Details | 2017-01-25 14:57:49 |
| 1.2.1 | stable | Not tested | Not yet tested Details | 2017-01-25 14:14:49 |
| 1.2.0 | stable | Not tested | Not yet tested Details | 2017-01-24 16:19:36 |
| 1.1.3 | stable | Not tested | Not yet tested Details | 2017-01-17 16:03:10 |
| 1.1.2 | stable | Not tested | Not yet tested Details | 2016-12-01 09:34:02 |
| 1.1.1 | stable | Not tested | Not yet tested Details | 2016-10-28 09:58:29 |
| 1.1.0 | stable | Not tested | Not yet tested Details | 2016-10-26 17:11:35 |
| 1.0.0 | stable | Not tested | Not yet tested Details | 2016-10-24 20:49:11 |
| 0.11.4 | stable | Not tested | Not yet tested Details | 2016-08-22 13:12:35 |
| 0.11.3 | stable | Not tested | Not yet tested Details | 2016-08-17 12:20:04 |
| 0.11.2 | stable | Not tested | Not yet tested Details | 2016-07-29 16:00:30 |
| 0.11.1 | stable | Not tested | Not yet tested Details | 2016-07-28 09:05:03 |
| 0.11.0 | stable | Not tested | Not yet tested Details | 2016-07-27 19:50:06 |
| 0.10.0 | stable | Not tested | Not yet tested Details | 2016-06-20 10:00:35 |
| 0.9.3 | stable | Not tested | Not yet tested Details | 2016-06-07 12:56:29 |
| 0.9.2 | stable | Not tested | Not yet tested Details | 2016-05-25 19:24:32 |
| 0.9.1 | stable | Not tested | Not yet tested Details | 2016-05-25 13:14:29 |
| 0.9.0 | stable | Not tested | Not yet tested Details | 2016-05-20 17:42:40 |
| 0.8.2 | stable | Not tested | Not yet tested Details | 2016-05-15 06:45:49 |
| 0.8.1 | stable | Not tested | Not yet tested Details | 2016-05-13 14:50:11 |
| 0.8.0 | stable | Not tested | Not yet tested Details | 2016-05-12 18:01:14 |
| 0.7.2 | stable | Not tested | Not yet tested Details | 2016-04-13 17:52:16 |
| 0.7.1 | stable | Not tested | Not yet tested Details | 2016-04-13 14:43:57 |
| 0.7.0 | stable | Not tested | Not yet tested Details | 2016-04-13 09:09:38 |
| 0.6.1 | stable | Not tested | Not yet tested Details | 2016-03-30 10:33:54 |
| 0.6.0 | stable | Not tested | Not yet tested Details | 2016-03-29 13:51:45 |
| 0.5.3 | stable | Not tested | Not yet tested Details | 2016-03-29 09:22:30 |
| 0.5.2 | stable | Not tested | Not yet tested Details | 2016-03-24 13:49:22 |
| 0.5.0 | stable | Not tested | Not yet tested Details | 2016-02-22 17:05:53 |
| 0.4.1 | stable | Not tested | Not yet tested Details | 2016-02-17 17:20:23 |
| 0.4.0 | stable | Not tested | Not yet tested Details | 2016-02-15 18:38:28 |
| 0.3.1 | stable | Not tested | Not yet tested Details | 2016-02-09 22:26:22 |
| 0.3.0 | stable | Not tested | Not yet tested Details | 2016-02-09 22:09:21 |
| 0.2.2 | stable | Not tested | Not yet tested Details | 2016-02-08 15:05:06 |
| 0.2.1 | stable | Not tested | Not yet tested Details | 2016-02-04 09:50:02 |
| 0.2.0 | stable | Not tested | Not yet tested Details | 2016-02-02 12:09:26 |
| 0.1.0 | stable | Not tested | Not yet tested Details | 2016-01-27 22:00:45 |
No dependencies declared
This package's composer.json doesn't declare any required, suggested, replaced, or conflicting packages.
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
More from snowdog
View vendorProvides powerful menu editor to replace category based menus in Magento 2
Hyva Checkout compatybility module for PayPo
Hyva Checkout compatybility module for Santander eRaty
Turn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.