https://github.com/nativescript/css-parser
Project with mocha-typescript enabled testing
https://github.com/nativescript/css-parser
Last synced: 8 months ago
JSON representation
Project with mocha-typescript enabled testing
- Host: GitHub
- URL: https://github.com/nativescript/css-parser
- Owner: NativeScript
- License: other
- Fork: true (testdeck/testdeck-mocha-seed)
- Created: 2017-10-26T05:57:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-16T15:08:31.000Z (over 8 years ago)
- Last Synced: 2024-05-23T10:00:53.470Z (about 2 years ago)
- Language: TypeScript
- Size: 49.8 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CSS Parser
[https://www.w3.org/TR/css-syntax-3](https://www.w3.org/TR/css-syntax-3)
The parser is implemented following the spec but may have slight variations.
Parse error handling was not priority, while performance and Apache 2.0 was.
[Parsing reasoning about performance is based on some baseline tests, you can read more here](https://panayotcankov.github.io/nativescript-3.3.0-css-parser/).
## Contributions
Yes plsease,
To compile and run the tests:
```bash
npm i
npm test
```
This will also generate test coverage in the `coverage/lcov-report/index.html`.
There are coverage goals, try not to break them.
During development, there is a typescript watcher that will rerun tests upon .ts save:
```
npm run watch
```
Debugging should be available in VSCode via the "Mocha Tests" configuration.
Style rules follow tslint settings, linter executes upon `npm test` you can also:
```
npm run tslint
npm run tslint-fix
```