From 08712c8d5a1ee2dd5c7884bd03b0d5d24ebe2528 Mon Sep 17 00:00:00 2001 From: andrewblond Date: Thu, 20 Aug 2015 14:34:58 +0300 Subject: [PATCH] wip --- .enb/make.js | 14 +++++++++----- .enb/techs.js | 5 +---- package.json | 2 +- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.enb/make.js b/.enb/make.js index 04f386d9d..3ac0881f9 100644 --- a/.enb/make.js +++ b/.enb/make.js @@ -62,11 +62,13 @@ module.exports = function(config) { [techs.bem.levelsToBemdecl, { target : '.tmp.bemdecl.js' }], [techs.bem.depsOld, { bemdeclFile : '.tmp.bemdecl.js', target : '.tmp.deps.js' }], [techs.bem.files, { depsFile : '.tmp.deps.js' }], - [techs.css.stylusWithAutoprefixer, { + [techs.stylus, { target : '.tmp.dev.css', - browsers : getBrowsers(platform) + autoprefixer : { + browsers : getBrowsers(platform) + } }], - [techs.css.stylus, { + [techs.stylus, { target : '.tmp.dev.ie.css', sourceSuffixes : ['styl', 'ie.styl'] }], @@ -153,8 +155,10 @@ module.exports = function(config) { // Client techs nodeConfig.addTechs([ - [techs.css.stylusWithAutoprefixer, { browsers : getBrowsers(platform) }], - [techs.css.stylus, { target : '?.ie.css', sourceSuffixes : ['styl', 'ie.styl'] }], + [techs.stylus, { + autoprefixer : { browsers : getBrowsers(platform) } + }], + [techs.stylus, { target : '?.ie.css', sourceSuffixes : ['styl', 'ie.styl'] }], [techs.js, { filesTarget : '?.js.files' }], diff --git a/.enb/techs.js b/.enb/techs.js index 16c9bc826..674991e87 100644 --- a/.enb/techs.js +++ b/.enb/techs.js @@ -5,10 +5,7 @@ module.exports = { merge : require('enb/techs/file-merge') }, bem : require('enb-bem-techs'), - css : { - stylus : require('enb-stylus/techs/css-stylus'), - stylusWithAutoprefixer : require('enb-stylus/techs/css-stylus-with-autoprefixer') - }, + stylus : require('enb-stylus/techs/stylus'), js : require('./techs/js-borschik-include'), ym : require('enb-modules/techs/prepend-modules'), engines : { diff --git a/package.json b/package.json index 84fb70576..e73d8d0a8 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "enb-borschik": "^1.5.1", "enb-diverse-js": "0.1.0", "enb-modules": "0.2.0", - "enb-stylus": "1.2.3", + "enb-stylus": "2.0.0-rc2", "borschik-tech-cleancss": "2.0.1", "gemini": "^0.12.1", "git-hooks": "~0.0.6",