Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
b6144151
Commit
b6144151
authored
Nov 09, 2014
by
kiran
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master'
parents
0d93647e
8e1daa15
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
8 deletions
+28
-8
.gitmodules
.gitmodules
+1
-1
node-sass
bin/node-sass
+1
-0
binding.gyp
binding.gyp
+1
-7
cli.js
test/cli.js
+25
-0
No files found.
.gitmodules
View file @
b6144151
[submodule "libsass"]
path = src/libsass
url = git://github.com/
hcatlin
/libsass.git
url = git://github.com/
sass
/libsass.git
[submodule "test/sass-spec"]
path = test/fixtures/spec
url = https://github.com/sass/sass-spec.git
bin/node-sass
View file @
b6144151
...
...
@@ -156,6 +156,7 @@ function watch(options, emitter) {
gaze
.
on
(
'error'
,
emitter
.
emit
.
bind
(
emitter
,
'error'
));
gaze
.
on
(
'changed'
,
function
(
file
)
{
options
=
getOptions
([
file
],
options
);
emitter
.
emit
(
'warn'
,
'=> changed: '
+
file
);
render
(
options
,
emitter
);
});
...
...
binding.gyp
View file @
b6144151
...
...
@@ -83,14 +83,8 @@
]
}],
['OS!="win"', {
'cflags+': [
'-std=c++11'
],
'cflags_c+': [
'-std=c++11'
],
'cflags_cc+': [
'-std=c++
11
'
'-std=c++
0x
'
]
}]
]
...
...
test/cli.js
View file @
b6144151
...
...
@@ -163,6 +163,31 @@ describe('cli', function() {
fs
.
appendFileSync
(
src
,
'body {}'
);
},
500
);
});
it
(
'should render all watched files'
,
function
(
done
)
{
fs
.
writeFileSync
(
fixture
(
'simple/foo.scss'
),
''
);
fs
.
writeFileSync
(
fixture
(
'simple/bar.scss'
),
''
);
var
src
=
fixture
(
'simple/foo.scss'
);
var
watched
=
fixture
(
'simple/bar.scss'
);
var
bin
=
spawn
(
cli
,
[
src
,
'--stdout'
,
'--watch'
,
watched
,
'--output-style'
,
'compressed'
]);
bin
.
stdout
.
setEncoding
(
'utf8'
);
bin
.
stdout
.
on
(
'data'
,
function
(
data
)
{
assert
(
data
.
trim
()
===
'body{background:white}'
);
bin
.
kill
();
fs
.
unlinkSync
(
src
);
fs
.
unlinkSync
(
watched
);
done
();
});
setTimeout
(
function
()
{
fs
.
appendFileSync
(
watched
,
'body{background:white}'
);
},
500
);
});
});
describe
(
'node-sass in.scss --output out.css'
,
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment