LibSass

Sass编译器的C/C++实现。(A C/C++ implementation of a Sass compiler.)

Github星跟踪图

LibSass是原始Ruby Sass CSS编译器的C++移植版,具有C API。 我们在编码LibSass的时候时刻考虑到可移植性和编码效率。 你可以预期,LibSass的速度比Ruby Sass快得多,而且比其他最好的CSS编译器更快。

LibSass只是一个库! 如果你想使用LibSass来编译Sass,你需要一个实现者。 一些实现只是绑定到其他编程语言。 但大多数还带有可以直接使用的命令行界面(CLI)。 还有SassC,它是由与LibSass相同的人员构建的官方轻量级CLI工具。

“认可”实现的摘录:
该列表对于列出的或未列出的实现的质量没有任何说明!

上述列出的项目的作者通常与LibSass开发人员定期合作。

概览

名称与所有者sass/libsass
主编程语言C++
编程语言C++ (语言数: 8)
平台
许可证Other
发布数66
最新版本名称3.6.6 (发布于 )
第一版名称RELEASE-1.0 (发布于 )
创建于2012-01-31 22:59:07
推送于2024-01-27 02:03:02
最后一次提交2023-12-21 09:30:51
星数4.3k
关注者数159
派生数459
提交数4.2k
已启用问题?
问题数1790
打开的问题数136
拉请求数1150
打开的拉请求数20
关闭的拉请求数223
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

LibSass - Sass compiler written in C++

Currently maintained by Marcel Greter (@mgreter) and Michael Mifsud (@xzyfer)
Originally created by Aaron Leung (@akhleung) and Hampton Catlin (@hcatlin)

Unix CI
Windows CI
Coverage Status
Percentage of issues still open
Average time to resolve an issue
Bountysource
Join us

LibSass is just a library!
If you want to use LibSass to compile Sass, you need an implementer. Some
implementations are only bindings into other programming languages. But most also
ship with a command line interface (CLI) you can use directly. There is also
SassC, which is the official lightweight
CLI tool built by the same people as LibSass.

Excerpt of "sanctioned" implementations:

This list does not say anything about the quality of either the listed or not listed implementations!
The authors of the listed projects above are just known to work regularly together with LibSass developers.

About

LibSass is a C++ port of the original Ruby Sass CSS compiler with a C API.
We coded LibSass with portability and efficiency in mind. You can expect LibSass to be a lot
faster than Ruby Sass and on par or faster than the best alternative CSS compilers around.

Developing

As noted above, the LibSass repository does not contain any binaries or other way to execute
LibSass. Therefore, you need an implementer to develop LibSass. Easiest is to start with
the official SassC CLI wrapper. It is guaranteed to compile
with the latest code in LibSass master, since it is also used in the CI process. There is no
limitation here, as you may use any other LibSass implementer to test your LibSass branch!

Testing

Since LibSass is a pure library, tests are run through the Sass-Spec
project using the SassC CLI wrapper. To run the tests against LibSass while
developing, you can run ./script/spec. This will clone SassC and Sass-Spec under the project folder and
then run the Sass-Spec test suite. You may want to update the clones to ensure you have the latest version.
Note that the scripts in the ./script folder are mainly intended for our CI needs.

Building

To build LibSass you need GCC 4.7+ or Clang/LLVM. If your OS is older, you may need to upgrade
them first (or install clang as an alternative). On Windows, you need MinGW with GCC 4.7+ or VS 2013
Update 4+. It is also possible to build LibSass with Clang/LLVM on Windows with various build chains
and/or command line interpreters.

See the build docs for further instructions!

Compatibility

For all intents and purposes LibSass is fully compatible with the Sass language spec. Any known
differences can be found as open issues.

About Sass

Sass is a CSS pre-processor language to add on exciting, new, awesome features to CSS. Sass was
the first language of its kind and by far the most mature and up to date codebase.

Sass was originally conceived of by the co-creator of this library, Hampton Catlin (@hcatlin).
Most of the language has been the result of years of work by Natalie Weizenbaum (@nex3) and
Chris Eppstein (@chriseppstein).

For more information about Sass itself, please visit https://sass-lang.com

Initial development of LibSass by Aaron Leung and Hampton Catlin was supported by Moovweb.

Licensing

Our MIT license is designed to be as simple and liberal as possible.

去到顶部