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
b3585bda
Commit
b3585bda
authored
Oct 30, 2014
by
Kevin Martensson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move source files to src/ and sass-spec to test/fixtures/spec
parent
ba62ddae
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
67 additions
and
49 deletions
+67
-49
.gitmodules
.gitmodules
+2
-2
binding.gyp
binding.gyp
+59
-41
libsass
libsass
+0
-1
binding.cpp
src/binding.cpp
+0
-0
libsass
src/libsass
+1
-0
sass_context_wrapper.cpp
src/sass_context_wrapper.cpp
+0
-0
sass_context_wrapper.h
src/sass_context_wrapper.h
+0
-0
spec
test/fixtures/spec
+1
-0
sass-spec
test/sass-spec
+0
-1
spec.js
test/spec.js
+3
-3
index.js
test/util/index.js
+1
-1
No files found.
.gitmodules
View file @
b3585bda
[submodule "libsass"]
[submodule "libsass"]
path = libsass
path =
src/
libsass
url = git://github.com/hcatlin/libsass.git
url = git://github.com/hcatlin/libsass.git
[submodule "test/sass-spec"]
[submodule "test/sass-spec"]
path = test/
sass-
spec
path = test/
fixtures/
spec
url = https://github.com/sass/sass-spec.git
url = https://github.com/sass/sass-spec.git
binding.gyp
View file @
b3585bda
...
@@ -3,50 +3,62 @@
...
@@ -3,50 +3,62 @@
{
{
'target_name': 'binding',
'target_name': 'binding',
'sources': [
'sources': [
'binding.cpp',
'
src/
binding.cpp',
'sass_context_wrapper.cpp',
's
rc/s
ass_context_wrapper.cpp',
'libsass/ast.cpp',
'
src/
libsass/ast.cpp',
'libsass/base64vlq.cpp',
'
src/
libsass/base64vlq.cpp',
'libsass/bind.cpp',
'
src/
libsass/bind.cpp',
'libsass/constants.cpp',
'
src/
libsass/constants.cpp',
'libsass/context.cpp',
'
src/
libsass/context.cpp',
'libsass/contextualize.cpp',
'
src/
libsass/contextualize.cpp',
'libsass/copy_c_str.cpp',
'
src/
libsass/copy_c_str.cpp',
'libsass/error_handling.cpp',
'
src/
libsass/error_handling.cpp',
'libsass/eval.cpp',
'
src/
libsass/eval.cpp',
'libsass/expand.cpp',
'
src/
libsass/expand.cpp',
'libsass/extend.cpp',
'
src/
libsass/extend.cpp',
'libsass/file.cpp',
'
src/
libsass/file.cpp',
'libsass/functions.cpp',
'
src/
libsass/functions.cpp',
'libsass/inspect.cpp',
'
src/
libsass/inspect.cpp',
'libsass/node.cpp',
'
src/
libsass/node.cpp',
'libsass/output_compressed.cpp',
'
src/
libsass/output_compressed.cpp',
'libsass/output_nested.cpp',
'
src/
libsass/output_nested.cpp',
'libsass/parser.cpp',
'
src/
libsass/parser.cpp',
'libsass/prelexer.cpp',
'
src/
libsass/prelexer.cpp',
'libsass/remove_placeholders.cpp',
'
src/
libsass/remove_placeholders.cpp',
'libsass/sass.cpp',
'
src/
libsass/sass.cpp',
'libsass/sass2scss.cpp',
'
src/
libsass/sass2scss.cpp',
'libsass/sass_interface.cpp',
'
src/
libsass/sass_interface.cpp',
'libsass/sass_util.cpp',
'
src/
libsass/sass_util.cpp',
'libsass/source_map.cpp',
'
src/
libsass/source_map.cpp',
'libsass/to_c.cpp',
'
src/
libsass/to_c.cpp',
'libsass/to_string.cpp',
'
src/
libsass/to_string.cpp',
'libsass/units.cpp',
'
src/
libsass/units.cpp',
'libsass/utf8_string.cpp',
'
src/
libsass/utf8_string.cpp',
'libsass/util.cpp'
'
src/
libsass/util.cpp'
],
],
'include_dirs': [
'include_dirs': [
'<!(node -e "require(\'nan\')")'
'<!(node -e "require(\'nan\')")'
],
],
'cflags!' : [ '-fno-exceptions' ],
'cflags!': [
'cflags_cc!': [ '-fno-exceptions' ],
'-fno-exceptions'
'cflags_cc' : [ '-fexceptions', '-frtti' ],
],
'cflags_cc!': [
'-fno-exceptions'
],
'cflags_cc': [
'-fexceptions',
'-frtti'
],
'conditions': [
'conditions': [
['OS=="mac"', {
['OS=="mac"', {
'xcode_settings': {
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS' : [ '-std=c++11', '-stdlib=libc++' ],
'OTHER_CPLUSPLUSFLAGS': [
'OTHER_LDFLAGS': [ '-stdlib=libc++' ],
'-std=c++11',
'-stdlib=libc++'
],
'OTHER_LDFLAGS': [
'-stdlib=libc++'
],
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'GCC_ENABLE_CPP_RTTI': 'YES',
'GCC_ENABLE_CPP_RTTI': 'YES',
'MACOSX_DEPLOYMENT_TARGET': '10.7'
'MACOSX_DEPLOYMENT_TARGET': '10.7'
...
@@ -68,10 +80,16 @@
...
@@ -68,10 +80,16 @@
4503
4503
]
]
}],
}],
[ 'OS!="win"', {
['OS!="win"', {
'cflags+': [ '-std=c++11' ],
'cflags+': [
'cflags_c+': [ '-std=c++11' ],
'-std=c++11'
'cflags_cc+': [ '-std=c++11' ],
],
'cflags_c+': [
'-std=c++11'
],
'cflags_cc+': [
'-std=c++11'
]
}]
}]
]
]
}
}
...
...
libsass
@
ca5f2718
Subproject commit ca5f271883db61ccd1d1e1b84dd4830a2564896f
binding.cpp
→
src/
binding.cpp
View file @
b3585bda
File moved
libsass
@
ca5f2718
Subproject commit ca5f271883db61ccd1d1e1b84dd4830a2564896f
sass_context_wrapper.cpp
→
s
rc/s
ass_context_wrapper.cpp
View file @
b3585bda
File moved
sass_context_wrapper.h
→
s
rc/s
ass_context_wrapper.h
View file @
b3585bda
File moved
spec
@
f01abbf6
Subproject commit f01abbf6d47ec62f3248ef0aa5bd5609e2223c8a
sass-spec
@
f01abbf6
Subproject commit f01abbf6d47ec62f3248ef0aa5bd5609e2223c8a
test/spec.js
View file @
b3585bda
...
@@ -11,11 +11,11 @@ describe('spec', function () {
...
@@ -11,11 +11,11 @@ describe('spec', function () {
describe
(
'test/sass-spec directory'
,
function
()
{
describe
(
'test/sass-spec directory'
,
function
()
{
it
(
'should be a cloned into place'
,
function
(
done
)
{
it
(
'should be a cloned into place'
,
function
(
done
)
{
fs
.
exists
(
path
.
join
(
__dirname
,
'
sass-
spec'
),
function
(
exists
)
{
fs
.
exists
(
path
.
join
(
__dirname
,
'
fixtures'
,
'
spec'
),
function
(
exists
)
{
if
(
!
exists
)
{
if
(
!
exists
)
{
throw
new
Error
([
throw
new
Error
([
'test/
sass-
spec directory missing. Please clone it into place by'
,
'test/
fixtures/
spec directory missing. Please clone it into place by'
,
'executing `git submodule update --init --recursive test/
sass-
spec`'
,
'executing `git submodule update --init --recursive test/
fixtures/
spec`'
,
'from the project
\'
s root directory.'
'from the project
\'
s root directory.'
].
join
(
' '
));
].
join
(
' '
));
}
}
...
...
test/util/index.js
View file @
b3585bda
var
fs
=
require
(
'fs'
),
var
fs
=
require
(
'fs'
),
join
=
require
(
'path'
).
join
,
join
=
require
(
'path'
).
join
,
spec
=
join
(
__dirname
,
'..'
,
'
sass-
spec'
,
'spec'
);
spec
=
join
(
__dirname
,
'..'
,
'
fixtures'
,
'
spec'
,
'spec'
);
/**
/**
* Normalize CSS
* Normalize CSS
...
...
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