-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See whatwg/whatwg.org#197 and whatwg/meta#92 for details. This also makes various updates to align more with other WHATWG standards, notably in the README and in the addition of a Makefile.
- Loading branch information
Showing
7 changed files
with
77 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
/streams.spec.whatwg.org/ | ||
/index.html | ||
/index.html.* | ||
/deploy.sh | ||
/review.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
remote: index.bs | ||
curl https://api.csswg.org/bikeshed/ -f -F [email protected] > index.html.postbs -F md-Text-Macro="SNAPSHOT-LINK LOCAL COPY" | ||
node_modules/.bin/emu-algify --throwing-indicators < index.html.postbs > index.html | ||
|
||
local: index.bs | ||
bikeshed spec index.bs index.html.postbs --md-Text-Macro="SNAPSHOT-LINK LOCAL COPY" | ||
node_modules/.bin/emu-algify --throwing-indicators < index.html.postbs > index.html | ||
|
||
deploy: index.bs | ||
curl --remote-name --fail https://resources.whatwg.org/build/deploy.sh | ||
EXTRA_FILES="demos/**/*" \ | ||
POST_BUILD_STEP='node_modules/.bin/emu-algify --throwing-indicators < "$$DIR/index.html" > "$$DIR/index.html.tmp"; mv "$$DIR/index.html.tmp" "$$DIR/index.html"' \ | ||
bash ./deploy.sh | ||
|
||
review: index.bs | ||
curl --remote-name --fail https://resources.whatwg.org/build/review.sh | ||
bash ./review.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,56 @@ | ||
# Streams Standard | ||
|
||
The streams standard provides APIs for creating, composing, and consuming streams of data. These streams are designed to map efficiently to low-level I/O primitives, and allow easy composition with built-in backpressure and queuing. | ||
This repository hosts the [Streams Standard](https://streams.spec.whatwg.org/). | ||
|
||
The main spec is available at https://streams.spec.whatwg.org/, generated from the `index.bs` file. | ||
## Contribution opportunities | ||
|
||
Snapshots of any given commit or branch are available at specially-crafted URLs: | ||
Folks notice minor and larger issues with the Streams Standard all the time and we'd love your | ||
help fixing those. Pull requests for typographical and grammar errors are also most welcome. | ||
|
||
- https://streams.spec.whatwg.org/commit-snapshots/ contains snapshots of any given commit | ||
- https://streams.spec.whatwg.org/branch-snapshots/ contains snapshots of the latest commit to any given branch | ||
We'd be happy to mentor you through this process. If you're interested and need help getting | ||
started, leave a comment on the issue or ask around [on IRC](https://whatwg.org/irc). | ||
|
||
## Tests and reference implementation | ||
## Pull requests | ||
|
||
This repository also includes a reference implementation and test suite under `reference-implementation/`. See the README under that directory for more details. We strive for every commit that changes the spec to also add tests, and to change the reference implementation in order to pass those tests. | ||
In short, change `index.bs` and submit your patch, with a | ||
[good commit message](https://github.com/whatwg/meta/blob/master/COMMITTING.md). Consider | ||
reading through the [WHATWG FAQ](https://whatwg.org/faq) if you are new here. | ||
|
||
## Contribution guidelines | ||
Please add your name to the Acknowledgments section in your first pull request, even for trivial | ||
fixes. The names are sorted lexicographically. | ||
|
||
For guidelines on how to build and edit the spec and reference implementation, see [CONTRIBUTING.md](CONTRIBUTING.md). | ||
For formatting specific to this standard, see [CONTRIBUTING.md](CONTRIBUTING.md). Additionally, for | ||
any normative changes, we'll also want to change the tests and reference implementation: | ||
|
||
## Tests | ||
|
||
Tests can be found in the `streams/` directory of | ||
[`web-platform-tests/wpt`](https://github.com/web-platform-tests/wpt). | ||
|
||
## Reference implementation | ||
|
||
This repository also includes a reference implementation, written in JavaScript, under | ||
`reference-implementation/`. See the README under that directory for more details. | ||
|
||
We strive for every commit that changes the spec to also add tests, and to change the reference | ||
implementation in order to pass those tests. | ||
|
||
## Building "locally" | ||
|
||
This standard requires a recent version of [Node.js](https://nodejs.org/en/) to be installed as a | ||
prerequisite. Once that's done, you'll need to do a one-time run of `npm install` to set up our | ||
tooling. | ||
|
||
For quick local iteration, run `make`. To verify your changes locally, run `make deploy`. See more | ||
in the | ||
[WHATWG Contributor Guidelines](https://github.com/whatwg/meta/blob/master/CONTRIBUTING.md#building). | ||
|
||
## Merge policy | ||
|
||
If you can commit to this repository, see the | ||
[WHATWG Maintainer Guidelines](https://github.com/whatwg/meta/blob/master/MAINTAINERS.md). | ||
|
||
## Code of conduct | ||
|
||
We are committed to providing a friendly, safe and welcoming environment for all. Please read and respect the [WHATWG Code of Conduct](https://whatwg.org/code-of-conduct). | ||
We are committed to providing a friendly, safe, and welcoming environment for all. Please read and | ||
respect the [WHATWG Code of Conduct](https://whatwg.org/code-of-conduct). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters