-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expose Sass lang version via node-sass API and CLI #1534
base: master
Are you sure you want to change the base?
Conversation
lib/extensions.js
Outdated
@@ -279,6 +279,7 @@ function getVersionInfo(binding) { | |||
return [ | |||
['node-sass', pkg.version, '(Wrapper)', '[JavaScript]'].join('\t'), | |||
['libsass ', binding.libsassVersion(), '(Sass Compiler)', '[C/C++]'].join('\t'), |
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.
Whilst you're at it LibSass
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.
Done.
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.
Thank you
This will have to wait until |
Should we get this in for the next release? Think this test needs to be updated Line 1831 in 0c709c1
|
I'm not sure anyone will understand this but I have no objections. |
14a76d8
to
df6dd7b
Compare
Rebased and update the test file accordingly. |
API Usage: ```javascript var sass = require('node-sass') console.log(sass.info) /* node-sass 3.7.0 (Wrapper) [JavaScript] libsass 3.3.6 (Sass Compiler) [C/C++] Sass 3.4 (Sass Language) [Sass] */ ``` CLI Usasge: ```sh node-sass -v node-sass 3.7.0 (Wrapper) [JavaScript] libsass 3.3.6 (Sass Compiler) [C/C++] Sass 3.4 (Sass Language) [Sass] ```
test/api.js
Outdated
assert(info.indexOf('[JavaScript]') > 0); | ||
assert(info.indexOf('[NA]') < 0); | ||
assert(info.indexOf('(Sass Compiler)') > 0); | ||
assert(info.indexOf('[C/C++]') > 0); | ||
assert(info.indexOf('(Sass Language)') > 0); |
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.
I know this is the same as the others, but maybe we can fix up the message parameter at the same time. The current failure just says AssertionError: false == true
, which doesn't really tell us anything 😉
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.
@am11 I was under the impression sass/libsass@01f370a had been released. We will be shipping 3.3.7 soon. |
…n-interpolate Fix regression for interpolation adding additional escapes
API Usage:
CLI Usasge:
Related to sass/libsass#2021.
cc @chriseppstein