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
c5fa4848
Commit
c5fa4848
authored
Oct 26, 2013
by
Andrew Nesbitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swap from colors to chalk
Closes #174
parent
f9b73113
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
render.js
lib/render.js
+4
-4
package.json
package.json
+2
-2
No files found.
lib/render.js
View file @
c5fa4848
var
sass
=
require
(
'../sass'
),
c
olors
=
require
(
'colors
'
),
c
halk
=
require
(
'chalk
'
),
fs
=
require
(
'fs'
);
function
render
(
options
,
emitter
)
{
...
...
@@ -11,11 +11,11 @@ function render(options, emitter) {
sourceComments
:
options
.
sourceComments
,
success
:
function
(
css
)
{
emitter
.
emit
(
'warn'
,
'Rendering Complete, saving .css file...'
.
green
);
emitter
.
emit
(
'warn'
,
chalk
.
green
(
'Rendering Complete, saving .css file...'
)
);
fs
.
writeFile
(
options
.
outFile
,
css
,
function
(
err
)
{
if
(
err
)
{
return
emitter
.
emit
(
'error'
,
(
'Error: '
+
err
).
red
);
}
emitter
.
emit
(
'warn'
,
(
'Wrote CSS to '
+
options
.
outFile
).
green
);
if
(
err
)
{
return
emitter
.
emit
(
'error'
,
chalk
.
red
(
'Error: '
+
err
)
);
}
emitter
.
emit
(
'warn'
,
chalk
.
green
(
'Wrote CSS to '
+
options
.
outFile
)
);
emitter
.
emit
(
'write'
,
err
,
options
.
outFile
,
css
);
});
...
...
package.json
View file @
c5fa4848
...
...
@@ -37,9 +37,9 @@
},
"dependencies"
:
{
"
mkdirp
"
:
"0.3.x"
,
"
colors
"
:
"0.6.0-1"
,
"
optimist
"
:
"0.6.x"
,
"
node-watch
"
:
"0.3.x"
,
"
mocha
"
:
"1.13.x"
"
mocha
"
:
"1.13.x"
,
"
chalk
"
:
"~0.3.0"
}
}
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