Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

44 строки
965 B

  1. /**
  2. * Copyright © Magento, Inc. All rights reserved.
  3. * See COPYING.txt for license details.
  4. */
  5. 'use strict';
  6. var combo = require('./combo'),
  7. themes = require('../tools/files-router').get('themes'),
  8. _ = require('underscore');
  9. var themeOptions = {};
  10. _.each(themes, function (theme, name) {
  11. themeOptions[name] = {
  12. 'files': [
  13. '<%= combo.autopath(\''+name+'\', path.pub) %>/**/*.less'
  14. ],
  15. 'tasks': 'less:' + name
  16. };
  17. });
  18. var watchOptions = {
  19. 'setup': {
  20. 'files': '<%= path.less.setup %>/**/*.less',
  21. 'tasks': 'less:setup'
  22. },
  23. 'updater': {
  24. 'options': {
  25. livereload: true
  26. },
  27. 'files': '<%= path.less.updater %>/**/*.less',
  28. 'tasks': 'less:updater'
  29. },
  30. 'reload': {
  31. 'files': '<%= path.pub %>/**/*.css',
  32. 'options': {
  33. livereload: true
  34. }
  35. }
  36. };
  37. module.exports = _.extend(themeOptions, watchOptions);