2017 © Pedro Peláez
 

magento2-component frontools

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

image

envoy/frontools

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

  • Thursday, March 22, 2018
  • by keenode
  • Repository
  • 2 Watchers
  • 0 Stars
  • 888 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 96 Forks
  • 0 Open issues
  • 87 Versions
  • 8 % Grown

The README.md

Travis branch Packagist Packagist Greenkeeper badge, (*1)

Magento 2 Frontools

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

Questions

If you have any questions about this project let's go to offical Magento forum - Less to Sass Community Project, (*3)

Requirements

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

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 gulp 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 - (deafult ["plugins.autoprefixer()"]) 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, (*4)

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. Warining, enabling this option may lead to high CPU utilization! chokidar docs, (*5)

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, (*6)

Tasks list

  • 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 - Toggles source maps generation.
  • eslint - Watch and run eslint on specified JS file.
    • --file fileName - You have to specify what file you want to lint, fileName without .js.
  • 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.
  • 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 - Toggles source maps generation.
    • --prod - Production output - minifies styles and add .min sufix.
    • --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 - Enable inline source maps generation.

The Versions

22/03 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

22/03 2018

1.6.4

1.6.4.0

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

  Sources   Download

MIT

12/01 2018

1.6.3

1.6.3.0

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

  Sources   Download

MIT

12/01 2018

dev-feature/bug-fixes

dev-feature/bug-fixes

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

  Sources   Download

MIT

16/11 2017

1.6.2

1.6.2.0

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

  Sources   Download

MIT

16/11 2017

1.6.1

1.6.1.0

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

  Sources   Download

MIT

14/11 2017

1.6.0

1.6.0.0

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

  Sources   Download

MIT

17/10 2017

dev-greenkeeper/babel-preset-env-1.6.1

dev-greenkeeper/babel-preset-env-1.6.1

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

  Sources   Download

MIT

05/10 2017

dev-greenkeeper/stylelint-8.2.0

dev-greenkeeper/stylelint-8.2.0

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

  Sources   Download

MIT

19/09 2017

dev-greenkeeper/run-sequence-2.2.0

dev-greenkeeper/run-sequence-2.2.0

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

  Sources   Download

MIT

13/09 2017

dev-greenkeeper/fs-extra-4.0.2

dev-greenkeeper/fs-extra-4.0.2

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

  Sources   Download

MIT

11/09 2017

dev-greenkeeper/js-yaml-3.10.0

dev-greenkeeper/js-yaml-3.10.0

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

  Sources   Download

MIT

05/09 2017

dev-greenkeeper/stylelint-8.1.1

dev-greenkeeper/stylelint-8.1.1

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

  Sources   Download

MIT

04/09 2017

dev-greenkeeper/stylelint-8.1.0

dev-greenkeeper/stylelint-8.1.0

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

  Sources   Download

MIT

29/08 2017

dev-feature/32702

dev-feature/32702

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

  Sources   Download

MIT

16/08 2017

1.5.8

1.5.8.0

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

  Sources   Download

MIT

16/08 2017

dev-develop

dev-develop

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

  Sources   Download

MIT

16/08 2017

1.5.7

1.5.7.0

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

  Sources   Download

MIT

07/08 2017

dev-greenkeeper/gulp-babel-7.0.0

dev-greenkeeper/gulp-babel-7.0.0

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

  Sources   Download

MIT

07/08 2017

1.5.6

1.5.6.0

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

  Sources   Download

MIT

06/08 2017

dev-greenkeeper/cssnano-4.0.0-rc.2

dev-greenkeeper/cssnano-4.0.0-rc.2

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

  Sources   Download

MIT

31/07 2017

dev-greenkeeper/fs-extra-4.0.1

dev-greenkeeper/fs-extra-4.0.1

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

  Sources   Download

MIT

30/07 2017

dev-greenkeeper/js-yaml-3.9.1

dev-greenkeeper/js-yaml-3.9.1

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

  Sources   Download

MIT

25/07 2017

dev-greenkeeper/run-sequence-2.1.0

dev-greenkeeper/run-sequence-2.1.0

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

  Sources   Download

MIT

16/07 2017

dev-greenkeeper/stylelint-8.0.0

dev-greenkeeper/stylelint-8.0.0

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

  Sources   Download

MIT

10/07 2017

dev-greenkeeper/stylelint-7.13.0

dev-greenkeeper/stylelint-7.13.0

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

  Sources   Download

MIT

04/07 2017

1.5.5

1.5.5.0

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

  Sources   Download

MIT

04/07 2017

1.5.4

1.5.4.0

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

  Sources   Download

MIT

03/07 2017

1.5.3

1.5.3.0

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

  Sources   Download

MIT

23/06 2017

1.5.2

1.5.2.0

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

  Sources   Download

MIT

21/06 2017

1.5.1

1.5.1.0

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

  Sources   Download

MIT

18/06 2017

1.5.0

1.5.0.0

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

  Sources   Download

MIT

06/05 2017

1.4.5

1.4.5.0

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

  Sources   Download

MIT

02/05 2017

dev-2.0-develop

dev-2.0-develop

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

  Sources   Download

MIT

20/04 2017

1.4.4

1.4.4.0

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

  Sources   Download

MIT

16/03 2017

1.4.3

1.4.3.0

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

  Sources   Download

MIT

14/03 2017

1.4.2

1.4.2.0

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

  Sources   Download

MIT

13/03 2017

1.4.1

1.4.1.0

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

  Sources   Download

MIT

13/03 2017

1.4.0

1.4.0.0

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

  Sources   Download

MIT

10/03 2017

1.3.10

1.3.10.0

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

  Sources   Download

MIT

08/03 2017

1.3.9

1.3.9.0

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

  Sources   Download

MIT

07/03 2017

1.3.8

1.3.8.0

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

  Sources   Download

MIT

04/03 2017

1.3.7

1.3.7.0

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

  Sources   Download

MIT

04/03 2017

1.3.6

1.3.6.0

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

  Sources   Download

MIT

03/03 2017

1.3.5

1.3.5.0

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

  Sources   Download

MIT

03/03 2017

1.3.4

1.3.4.0

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

  Sources   Download

MIT

21/02 2017

1.3.3

1.3.3.0

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

  Sources   Download

MIT

20/02 2017

1.3.2

1.3.2.0

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

  Sources   Download

MIT

20/02 2017

1.3.1

1.3.1.0

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

  Sources   Download

MIT

17/02 2017

1.3.0

1.3.0.0

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

  Sources   Download

MIT

25/01 2017

1.2.2

1.2.2.0

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

  Sources   Download

MIT

25/01 2017

1.2.1

1.2.1.0

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

  Sources   Download

MIT

24/01 2017

1.2.0

1.2.0.0

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

  Sources   Download

MIT

17/01 2017

1.1.3

1.1.3.0

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

  Sources   Download

MIT

01/12 2016

1.1.2

1.1.2.0

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

  Sources   Download

MIT

28/10 2016

1.1.1

1.1.1.0

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

  Sources   Download

MIT

26/10 2016

1.1.0

1.1.0.0

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

  Sources   Download

MIT

24/10 2016

1.0.0

1.0.0.0

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

  Sources   Download

MIT

22/08 2016

0.11.4

0.11.4.0

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

  Sources   Download

MIT

17/08 2016

0.11.3

0.11.3.0

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

  Sources   Download

MIT

29/07 2016

0.11.2

0.11.2.0

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

  Sources   Download

MIT

28/07 2016

0.11.1

0.11.1.0

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

  Sources   Download

MIT

27/07 2016

0.11.0

0.11.0.0

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

  Sources   Download

MIT

20/06 2016

0.10.0

0.10.0.0

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

  Sources   Download

MIT

07/06 2016

0.9.3

0.9.3.0

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

  Sources   Download

MIT

25/05 2016

0.9.2

0.9.2.0

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

  Sources   Download

MIT

25/05 2016

0.9.1

0.9.1.0

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

  Sources   Download

MIT

20/05 2016

0.9.0

0.9.0.0

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

  Sources   Download

MIT

15/05 2016

0.8.2

0.8.2.0

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

  Sources   Download

MIT

13/05 2016

0.8.1

0.8.1.0

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

  Sources   Download

MIT

12/05 2016

0.8.0

0.8.0.0

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

  Sources   Download

MIT

13/04 2016

0.7.2

0.7.2.0

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

  Sources   Download

MIT

13/04 2016

0.7.1

0.7.1.0

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

  Sources   Download

MIT

13/04 2016

0.7.0

0.7.0.0

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

  Sources   Download

MIT

30/03 2016

0.6.1

0.6.1.0

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

  Sources   Download

MIT

29/03 2016

0.6.0

0.6.0.0

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

  Sources   Download

29/03 2016

0.5.3

0.5.3.0

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

  Sources   Download

24/03 2016

0.5.2

0.5.2.0

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

  Sources   Download

22/02 2016

0.5.0

0.5.0.0

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

  Sources   Download

17/02 2016

0.4.1

0.4.1.0

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

  Sources   Download

15/02 2016

0.4.0

0.4.0.0

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

  Sources   Download

09/02 2016

0.3.1

0.3.1.0

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

  Sources   Download

09/02 2016

0.3.0

0.3.0.0

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

  Sources   Download

08/02 2016

0.2.2

0.2.2.0

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

  Sources   Download

04/02 2016

0.2.1

0.2.1.0

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

  Sources   Download

02/02 2016

0.2.0

0.2.0.0

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

  Sources   Download

27/01 2016

0.1.0

0.1.0.0

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

  Sources   Download