| Index: packages/csslib/README.md
|
| diff --git a/packages/csslib/README.md b/packages/csslib/README.md
|
| index e64fd9bc67aff8b129e69401f56b6b39af992acf..1610d3b847368051b55d590b763168ccc763c658 100644
|
| --- a/packages/csslib/README.md
|
| +++ b/packages/csslib/README.md
|
| @@ -1,20 +1,12 @@
|
| -csslib in Pure Dart
|
| -===================
|
| +CSS parser library for Dart
|
| +==========================
|
|
|
| -This is a pure [Dart][dart] [CSS parser][cssparse]. Since it's 100%
|
| -Dart you can use it safely from a script or server side app.
|
| +This is a [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) parser written entirely in [Dart][dart].
|
| +It can be used in the client/server/command line.
|
|
|
| -Installation
|
| -------------
|
| -
|
| -Add this to your `pubspec.yaml` (or create it):
|
| -```yaml
|
| -dependencies:
|
| - csslib: any
|
| -```
|
| -Then run the [Pub Package Manager][pub] (comes with the Dart SDK):
|
| -
|
| - pub install
|
| +This package is installed with [Pub][pub], see:
|
| +[install instructions](https://pub.dartlang.org/packages/csslib#installing)
|
| +for this package.
|
|
|
| Usage
|
| -----
|
| @@ -34,48 +26,18 @@ main() {
|
| You can pass a String or list of bytes to `parse`.
|
|
|
|
|
| -Updating
|
| ---------
|
| -
|
| -You can upgrade the library with:
|
| -
|
| - pub update
|
| -
|
| -Disclaimer: the APIs are not finished. Updating may break your code. If that
|
| -happens, you can check the
|
| -[commit log](https://github.com/dart-lang/csslib/commits/master), to figure
|
| -out what the change was.
|
| -
|
| -If you want to avoid breakage, you can also put the version constraint in your
|
| -`pubspec.yaml` in place of the word `any`.
|
| -
|
| Running Tests
|
| -------------
|
|
|
| -All tests (both canary and suite) should be passing. Canary are quick test
|
| -verifies that basic CSS is working. The suite tests are a comprehensive set of
|
| -~11,000 tests.
|
| -
|
| -```bash
|
| -export DART_SDK=path/to/dart/sdk
|
| -
|
| -# Make sure dependencies are installed
|
| -pub install
|
| -
|
| -# Run command both canary and the suite tests
|
| -test/run.sh
|
| -```
|
| -
|
| - Run only the canary test:
|
| -
|
| +Basic tests can be found in this repository:
|
| ```bash
|
| - test/run.sh canary
|
| +pub run test
|
| ```
|
|
|
| - Run only the suite tests:
|
| -
|
| +The full CSS test suite can be found in https://github.com/dart-lang/csslib-test-suite
|
| ```bash
|
| - test/run.sh suite
|
| +cd ../csslib-test-suite
|
| +./run.sh
|
| ```
|
|
|
| [dart]: http://www.dartlang.org/
|
|
|