百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

scssphp

> 编程语言
开源

使用 PHP 编写的 SCSS 编译器

1.3K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

使用 PHP 编写的 SCSS 编译器

此仓库已归档 请前往 https://GitHub.com/scssphp/scssphp ---- scssphp scssphp 是用 PHP 编写的 SCSS 编译器。 运行测试 scssphp 使用 PHPUnit 进行测试。 从根目录运行以下命令以运行每个测试: vendor/bin/phpunit tests tests 目录中包含多个测试: ApiTest.php 包含用于测试 PHP 接口的各种单元测试。 ExceptionTest.php 包含用于测试解析器和编译器抛出的异常的单元测试。 FailingTest.php 包含 GitHub 问题中报告的测试,这些测试展示了兼容性问题。 InputTest.php 编译 tests/inputs 目录中的每个 .scss 文件,然后与 tests/outputs 目录中的相应 .css 文件进行比较。 ScssTest.php 从 tests/scsstest.rb 文件中提取 (ruby) scss 测试。 ServerTest.php 包含 Server 类的功能测试。 在更改 tests/inputs 中的任何测试时,测试很可能会失败,因为输出已发生变化。 一旦确认输出正确后,您可以运行以下命令重新构建所有测试: BUILD=1 vendor/bin/phpunit tests 这将编译所有测试,并将结果保存到 tests/outputs 目录。 要启用 scss 兼容性测试: TESTSCSSCOMPAT=1 vendor/bin/phpunit tests 编码标准 scssphp 源代码符合 PSR2。 从根目录运行以下命令以检查代码是否符合 "sniffs" 规范。 vendor/bin/phpcs --standard=PSR2 bin src tests

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •ApiTest.php contains various unit tests that test the PHP interface.
  • •ExceptionTest.php contains unit tests that test for exceptions thrown by the parser and compiler.
  • •FailingTest.php contains tests reported in Github issues that demonstrate compatibility bugs.
  • •InputTest.php compiles every .scss file in the tests/inputs directory
  • •ScssTest.php extracts (ruby) scss tests from the tests/scss_test.rb file.
  • •ServerTest.php contains functional tests for the Server class.

> 标签

PHP

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言