-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update dependencies, fix css-sass.js #14
base: master
Are you sure you want to change the base?
Conversation
package.json
Outdated
"vow": "0.4.9", | ||
"inherit": "2.2.2" | ||
"dependencies": { | ||
"enb": "^1.5.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
давай оставим везде жесткие зависимости, без циркумфлекса
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tadatuta , готово
techs/css-sass.js
Outdated
@@ -66,8 +65,7 @@ module.exports = require('enb/lib/build-flow').create() | |||
deferred.resolve(cssResult); | |||
} catch (ex) { | |||
ex = ex instanceof Error ? ex : JSON.parse(ex); | |||
|
|||
var lines = sassSettings.data.split('\n'); | |||
var lines = sassSettings.data.split('\n') || []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sassSettings.data
— это же всегда строка? тогда не очень понятно, зачем фоллбек, сплит всегда будет давать массив. или я упускаю какой-то кейс?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tadatuta , да это не нужно осталось после дебага, убрал
includePaths: [], | ||
data: '' | ||
}, this._sass); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это изменение не понимаю, в таком случае ведь перестают прокидываться внешние опции?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tadatuta , в перый раз года дебажил sassSettings
обёрнутый в inherit
возвращал undefined
, поэтому решил оставить просто объект.
поправил чтобы sass
опции добавлялись в sassSettings
через спред оператор
@@ -1,7 +1,6 @@ | |||
var sass = require('node-sass'); | |||
var sass = require('sass'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
можешь, пожалуйста, заодно актуализировать комментарий на 14 строке?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tadatuta , готово
Hi,
Fixed package for new NodeJs
Replaced
node-sass
onsass
(nownpm install
going faster)Remove
inherit
dependencieAdd
enb-css-preprocessor
insteadenb
Let up version of the package after pull-request.
Thanks)