# scssphp
### <https://scssphp.github.io/scssphp>
![Build](https://github.com/scssphp/scssphp/workflows/CI/badge.svg)
[![License](https://poser.pugx.org/scssphp/scssphp/license)](https://packagist.org/packages/scssphp/scssphp)
`scssphp` is a compiler for SCSS written in PHP.
Checkout the homepage, <https://scssphp.github.io/scssphp>, for directions on how to use.
## Running Tests
`scssphp` uses [PHPUnit](https://github.com/sebastianbergmann/phpunit) for testing.
Run the following command from the root directory to run every test:
vendor/bin/phpunit tests
There are several tests in the `tests/` directory:
* `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
then compares to the respective `.css` file in the `tests/outputs` directory.
* `SassSpecTest.php` extracts tests from the `sass/sass-spec` repository.
When changing any of the tests in `tests/inputs`, the tests will most likely
fail because the output has changed. Once you verify that the output is correct
you can run the following command to rebuild all the tests:
BUILD=1 vendor/bin/phpunit tests
This will compile all the tests, and save results into `tests/outputs`. It also
updates the list of excluded specs from sass-spec.
To enable the full `sass-spec` compatibility tests:
TEST_SASS_SPEC=1 vendor/bin/phpunit tests
## Coding Standard
`scssphp` source conforms to [PSR12](https://www.php-fig.org/psr/psr-12/).
Run the following command from the root directory to check the code for "sniffs".
vendor/bin/phpcs --standard=PSR12 --extensions=php bin src tests *.php
## Static Analysis
`scssphp` uses [phpstan](https://phpstan.org/) for static analysis.
Run the following command from the root directory to analyse the codebase:
make phpstan
As most of the codebase is composed of legacy code which cannot be type-checked
fully, the setup contains a baseline file with all errors we want to ignore. In
particular, we ignore all errors related to not specifying the types inside arrays
when these arrays correspond to the representation of Sass values and Sass AST nodes
in the parser and compiler.
When contributing, the proper process to deal with static analysis is the following:
1. Make your change in the codebase
2. Run `make phpstan`
3. Fix errors reported by phpstan when possible
4. Repeat step 2 and 3 until nothing gets fixed anymore at step 3
5. Run `make phpstan-baseline` to regenerate the phpstan baseline
Additions to the baseline will be reviewed to avoid ignoring errors that should have
been fixed.
没有合适的资源?快使用搜索试试~ 我知道了~
【WordPress插件】2022年最新版完整功能demo+插件v4.27.1.zip
共462个文件
php:311个
css:65个
js:61个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 90 浏览量
2022-04-02
17:45:28
上传
评论
收藏 1.52MB ZIP 举报
温馨提示
"【WordPress插件】2022年最新版完整功能demo+插件v4.27.1 Simple Custom CSS and JS PRO 简单的自定义CSS和JS Pro" ---------- 泰森云每天更新发布最新WordPress主题、HTML主题、WordPress插件、shopify主题、opencart主题、PHP项目源码、安卓项目源码、ios项目源码,更有超10000个资源可供选择,如有需要请站内联系。
资源详情
资源评论
资源推荐
收起资源包目录
【WordPress插件】2022年最新版完整功能demo+插件v4.27.1.zip (462个子文件)
bootstrap.min.css 119KB
ambiance.css 25KB
ccj_admin.css 22KB
select2.min.css 15KB
codemirror-compressed.css 8KB
codemirror.css 6KB
mdn-like.css 5KB
solarized.css 4KB
ccj_admin_settings.css 4KB
liquibyte.css 3KB
lint.css 3KB
merge.css 3KB
lesser-dark.css 2KB
tipsy.css 2KB
ttcn.css 2KB
pastel-on-dark.css 2KB
material.css 2KB
erlang-dark.css 2KB
tomorrow-night-eighties.css 2KB
duotone-light.css 2KB
twilight.css 2KB
vibrant-ink.css 2KB
duotone-dark.css 2KB
abcdef.css 2KB
midnight.css 2KB
the-matrix.css 2KB
monokai.css 2KB
blackboard.css 2KB
paraiso-light.css 2KB
paraiso-dark.css 2KB
base16-light.css 2KB
base16-dark.css 2KB
xq-dark.css 2KB
dracula.css 2KB
3024-night.css 2KB
rubyblue.css 2KB
seti.css 2KB
mbo.css 2KB
cobalt.css 2KB
3024-day.css 2KB
night.css 1KB
icecoder.css 1KB
yeti.css 1KB
tomorrow-night-bright.css 1KB
zenburn.css 1KB
panda-syntax.css 1KB
colorforth.css 1KB
simplescrollbars.css 1KB
railscasts.css 1KB
hopscotch.css 1KB
bespin.css 1KB
eclipse.css 1KB
isotope.css 1KB
xq-light.css 945B
neo.css 757B
elegant.css 695B
show-hint.css 623B
neat.css 602B
dialog.css 507B
dialog.css 398B
matchesonscrollbar.css 188B
matchesonscrollbar.css 160B
fullscreen.css 90B
ambiance-mobile.css 87B
empty.css 0B
phpcs.xml.dist 379B
jshint.js 1.21MB
scsslint.js 743KB
csslint.js 360KB
codemirror-compressed.js 208KB
codemirror.js 160KB
select2.full.js 158KB
bootstrap.min.js 39KB
bootstrap.3.2.0.min.js 31KB
php.js 23KB
css.js 22KB
ccj_admin.js 20KB
diff_match_patch.js 19KB
diff_match_patch.js 19KB
merge.js 19KB
clike.js 19KB
htmlhint.js 17KB
jsonlint.js 16KB
show-hint.js 16KB
javascript.js 14KB
html-hint.js 11KB
search.js 10KB
jquery.tipsy.js 10KB
ccj_admin-url_rules.js 9KB
comment.js 9KB
lint.js 8KB
searchcursor.js 8KB
closebrackets.js 7KB
xml-fold.js 7KB
javascript-hint.js 6KB
search.js 6KB
searchcursor.js 6KB
xml.js 6KB
dialog.js 5KB
continuecomment.js 5KB
共 462 条
- 1
- 2
- 3
- 4
- 5
Lee达森
- 粉丝: 1518
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于Spring Boot的极简易课堂对话系统.zip
- (源码)基于JSP+Servlet+MySQL的学生管理系统.zip
- (源码)基于ESP8266的蜂箱监测系统.zip
- (源码)基于Spring MVC和Hibernate框架的学校管理系统.zip
- (源码)基于TensorFlow 2.3的高光谱水果糖度分析系统.zip
- (源码)基于Python框架库的知识库管理系统.zip
- (源码)基于C++的日志管理系统.zip
- (源码)基于Arduino和OpenFrameworks的植物音乐感应系统.zip
- (源码)基于Spring Boot和Spring Security的博客管理系统.zip
- (源码)基于ODBC和C语言的数据库管理系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0