Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(618)

Unified Diff: packages/csslib/README.md

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/csslib/CHANGELOG.md ('k') | packages/csslib/lib/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/
« no previous file with comments | « packages/csslib/CHANGELOG.md ('k') | packages/csslib/lib/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698