All Projects → SnowdogApps → Magento2 Frontools

SnowdogApps / Magento2 Frontools

Licence: mit
Set of front-end tools for Magento 2 based on Gulp.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Magento2 Frontools

Magento2 Theme Blank Sass
SASS based version of Magento 2 Blank theme
Stars: ✭ 373 (-10.34%)
Mutual labels:  hacktoberfest, magento, magento2, sass
Wordpress Starter
📦 A starter template for WordPress websites
Stars: ✭ 26 (-93.75%)
Mutual labels:  gulp, yarn, sass, browsersync
magento2-catalog-lazy-load
Improve the load time of your Magento 2 categories pages by loading your images on demand with our Lazy Load Extension
Stars: ✭ 56 (-86.54%)
Mutual labels:  magento, magento2, magento2-extension
magento2-showoutofstockprice
This Magento2 Module adds prices and the add-to-cart button to out-of-stock configurable products.
Stars: ✭ 22 (-94.71%)
Mutual labels:  magento, magento2, magento2-extension
Magento2 Phpstorm Plugin
PHPStorm Plugin for Magento 2
Stars: ✭ 294 (-29.33%)
Mutual labels:  hacktoberfest, magento, magento2
magento2-sample-imageuploader
A Magento 2 sample module demonstrating how to upload an image file within a grid and form UI Component.
Stars: ✭ 27 (-93.51%)
Mutual labels:  magento, magento2, magento2-extension
magento2-prometheus-exporter
Simple Magento 2 Prometheus Exporter.
Stars: ✭ 40 (-90.38%)
Mutual labels:  magento, magento2, magento2-extension
rebuild-urlrewrite
Rebuild Url Rewrite for magento 2
Stars: ✭ 26 (-93.75%)
Mutual labels:  magento, magento2, magento2-extension
magento-ngrok
Magento 2 module for ngrok.io service support
Stars: ✭ 45 (-89.18%)
Mutual labels:  magento, magento2, magento2-extension
Gulp Scss Starter
Frontend development with pleasure. SCSS version
Stars: ✭ 339 (-18.51%)
Mutual labels:  gulp, yarn, sass
magento2-customer-account-links-manager
Customer Account Links Manager allows you to quickly and easily remove customer account links from Magento 2 customer dashboard.
Stars: ✭ 40 (-90.38%)
Mutual labels:  magento, magento2, magento2-extension
Magento-Quickorder
Magento Quickorder module, enables bulk order creation by inputting SKUs & quantities.
Stars: ✭ 30 (-92.79%)
Mutual labels:  magento, magento2, magento2-extension
module-lazyload
magefan.com/magento-2-image-lazy-load-extension
Stars: ✭ 47 (-88.7%)
Mutual labels:  magento, magento2, magento2-extension
Dev-Tools-Magento-2-Module
A collection of utilities meant to improve the experience of developing modules for Magento without breaking existing functionality.
Stars: ✭ 18 (-95.67%)
Mutual labels:  magento, magento2, magento2-extension
Cleancheckout
A drop-in replacement for the Magento 2 checkout.
Stars: ✭ 280 (-32.69%)
Mutual labels:  magento, magento2, magento2-extension
module-translation
magefan.com/magento-2-translation-extension
Stars: ✭ 35 (-91.59%)
Mutual labels:  magento, magento2, magento2-extension
LargeConfigProducts
Large Configurable Products workaround for Magento 2
Stars: ✭ 83 (-80.05%)
Mutual labels:  magento, magento2, magento2-extension
module-geoip
Detect Country by IP in Magento 2
Stars: ✭ 51 (-87.74%)
Mutual labels:  magento, magento2, magento2-extension
magento-2-security
Magento 2 Security extension FREE. Security extension gives store owners the ability to detect the IP addresses that are intentionally attacking their store at any given time. Therefore, they have timely measures to prevent this issue such as blocking those IP addresses or sending warning emails to store owners.
Stars: ✭ 40 (-90.38%)
Mutual labels:  magento, magento2, magento2-extension
blog
MageVision Blog
Stars: ✭ 23 (-94.47%)
Mutual labels:  magento, magento2, magento2-extension

Travis branch Packagist Packagist Greenkeeper badge

Magento 2 Frontools

Set of front-end tools for Magento 2, based on Gulp.js

Questions

If you want to know more about this project, let's join Magento Community Engineering Slack and ask questions on #magefront channel.

Requirements

  • Unix-like OS (please, do not ask about Windows support)
  • Node.js LTS version. We recommend to use avn to automate version switching. Required configuration is already added to repository as .node-version file.
  • (optional) Gulp CLI installed globally - yarn global add gulp-cli or npm install -g gulp-cli
  • Magento 2 project with SASS based theme for example SASS version of "Blank" or Alpaca Theme

Installation

  1. Run composer require snowdog/frontools
  2. Go to package directory cd vendor/snowdog/frontools
  3. Run yarn or npm install
  4. Decide where you want to keep your config files. You can store them in Frontools config directory or in dev/tools/frontools/config. There is a setup task to copy all sample config files from the config to dev/tools/frontools/config and create a convenient symlink tools in the project root. If you want to keep config files inside frontools config dir, you have to handle this manually.
  5. Define your themes in themes.json.

themes.json structure

Check config/themes.json.sample to get samples.

  • src - full path to theme
  • dest - full path to pub/static/[theme_area]/[theme_vendor]/[theme_name]
  • locale - array of available locales
  • parent - name of parent theme
  • stylesDir - (default styles) path to styles directory. For theme-blank-sass it's styles. By default Magento 2 use web/css.
  • disableSuffix - disable adding .min suffix using --prod flag.
  • postcss - (default ["autoprefixer({ overrideBrowserslist: browserslist })"]) PostCSS plugins config. Have to be an array.
  • modules - list of modules witch you want to map inside your theme
  • ignore - array of ignore patterns

watcher.json structure

Check config/watcher.json.sample to get samples.

  • usePolling - set this to true to 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.

Tasks list

Please use yarn [taskName] or npm run [taskName] to avoid necessity of installing gulp-cli globally.

  • 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/static directory content.
  • csslint - Run stylelint based tests.
    • --theme name - Process single theme.
    • --ci - Enable throwing errors. Useful in CI/CD pipelines.
  • default - type gulp to see this readme in console.
  • dev - Runs browserSync and inheritance, babel, styles, watch tasks.
    • --theme name - Process single theme.
    • --disableLinting - Disable SASS and 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 .min sufix.
  • eslint - Run eslint against all JS files.
    • --theme name - Process single theme.
    • --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 magepack bundle command.
    • -c or --config - (required) Path to previously generated Magepack config file.
    • --theme name - Process single theme.
  • magepackGenerate - Run magepack generate command.
    • --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.
    • -u or --auth-username - Username for Basic Auth.
    • -p or --auth-password - Passoword for Basic Auth.
    • -d or --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 /tools to /vendor/snowdog/frontools and copies all sample files if no configuration exists.
    • --symlink name - If you don't want to use tools as 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 .min suffix.
    • --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 SASS and CSS linting.
    • --disableMaps - Disable inline source maps generation.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].