Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ npm-debug.log
/src/*.js*
/src/**/*.js*
/tests/*.js*
/lib/*
/.vscode
/lib/tests/*
/.vscode
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
[ci-img]: https://travis-ci.org/lexich/postcss-stream.svg
[ci]: https://travis-ci.org/lexich/postcss-stream

Add support to postcss stream api.
Add support to postcss stream api.
```js
const postcssStream = require('postcss-stream');

const stream1 = postcssStream.createStream({
const stream1 = {
// select only nodes with type="decl" prop="color" value="red"
decl: {
prop: "color",
Expand All @@ -21,7 +21,7 @@ const stream1 = postcssStream.createStream({
decl.value = "green";
}
}
});
};

postcssStream([
stream, ...
Expand All @@ -32,8 +32,8 @@ postcssStream([
Documentation in process.

##Reimplementation existing postcss-plugins:
Original: [postcss-color-function](https://github.com/postcss/postcss-color-function/blob/master/index.js)
Stream: [postcss-color-function](https://github.com/lexich/postcss-stream/blob/master/tests/fixtures/postcss-color-function/index.ts)
Original: [postcss-color-function](https://github.com/postcss/postcss-color-function/blob/master/index.js)
Stream: [postcss-color-function](https://github.com/lexich/postcss-stream/blob/master/tests/fixtures/postcss-color-function/index.ts)

Original: [postcss-grid](https://github.com/andyjansson/postcss-grid)
Stream: [postcss-grid](https://github.com/lexich/postcss-stream/blob/master/tests/fixtures/postcss-grid/index.ts)
Original: [postcss-grid](https://github.com/andyjansson/postcss-grid)
Stream: [postcss-grid](https://github.com/lexich/postcss-stream/blob/master/tests/fixtures/postcss-grid/index.ts)
29 changes: 29 additions & 0 deletions lib/src/comparator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions lib/src/compile.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

96 changes: 96 additions & 0 deletions lib/src/compileMatcher.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions lib/src/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions lib/src/interfaces.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions lib/src/iterator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading