Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packaging methods (and generated bundles) with the current whatwg/streams reference implementation #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bellbind
Copy link

  • Generated 3 bundles
    • dist/polyfill.js: for node.js current env
    • dist/polyfill.min.js: for ES6 class syntax supported modern browsers
    • dist/polyfill-ie11.min.js for IE11
      • (ES5 based code is not passed all web-platform-tests of streams now)
  • Updated: spec commit
    • the recent commit passed their own (non bundled) tests with npm test
  • Updated package.json
    • set version: 1.4.0
    • updated versions of dependencies
      • also added babel-preset-env and better-assert
      • for building bundles with reference-implementation libs
    • modified test and bundles in scripts
      for passing the current web-platform-tests
  • Updated CONTRIBUTING.md
    • for setup, run git submodule update in the spec submodule recursively
    • whatwg/streams now uses recursive submodules for web-platform-tests
  • Updated index.js
    • switch to use babel-preset-env for using on node.js
  • Updated index.es6.js
    • Only non-implemented objects are polyfilled to the browser window
    • e.g. Firefox implements only ReadableStream and two-QueuingStrategy
  • Added generate-bundle-tests.js
    • run-web-platform-tests-on-bundle.js is transformed
      from spec/reference-implementation/run-web-platform-tests.js
  • Added browserify-uglifyify.js:
    • do browserify with complex uglifyify options for passing tests
  • Added .babelrc
    • presets for using streams on node.js
  • Added .editorconfig
    • set 2-indent

- Generated 3 bundles
    - `dist/polyfill.js`: for node.js current env
    - `dist/polyfill.min.js`: for ES6 class syntax supported modern browsers
    - `dist/polyfill-ie11.min.js` for IE11
        - (ES5 based code is not passed all web-platform-tests of streams now)
- Updated: `spec` commit
    - the recent commit passed their own (non bundled) tests with `npm test`
- Updated `package.json`
    - set `version`: 1.4.0
    - updated versions of `dependencies`
        - also added `babel-preset-env` and `better-assert`
        - for building bundles with reference-implementation libs
    - modified `test` and `bundle`s in `scripts`
      for passing the current web-platform-tests
- Updated `CONTRIBUTING.md`
    - for setup, run `git submodule update` in the `spec` submodule recursively
    - `whatwg/streams` now uses recursive submodules for `web-platform-tests`
- Updated `index.js`
    - switch to use `babel-preset-env` for using on node.js
- Updated `index.es6.js`
    - Only non-implemented objects are polyfilled to the browser `window`
    - e.g. Firefox implements only ReadableStream and two-QueuingStrategy
- Added `generate-bundle-tests.js`
    - `run-web-platform-tests-on-bundle.js` is transformed
      from `spec/reference-implementation/run-web-platform-tests.js`
- Added `browserify-uglifyify.js`:
    - do `browserify` with complex `uglifyify` options for passing tests
- Added `.babelrc`
    - presets for using streams on node.js
- Added `.editorconfig`
    - set 2-indent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant