Commit Graph

45 Commits

Author SHA1 Message Date
dependabot[bot]
5d188e4c0f
Update @wasm-tool/wasm-pack-plugin requirement from 0.2.1 to 0.2.2
Updates the requirements on [@wasm-tool/wasm-pack-plugin](https://github.com/wasm-tool/wasm-pack-plugin) to permit the latest version.
- [Release notes](https://github.com/wasm-tool/wasm-pack-plugin/releases)
- [Commits](https://github.com/wasm-tool/wasm-pack-plugin/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-30 08:15:57 +00:00
dependabot[bot]
b8c91ab0d3 Update @wasm-tool/wasm-pack-plugin requirement from 0.2.0 to 0.2.1
Updates the requirements on [@wasm-tool/wasm-pack-plugin](https://github.com/wasm-tool/wasm-pack-plugin) to permit the latest version.
- [Release notes](https://github.com/wasm-tool/wasm-pack-plugin/releases)
- [Commits](https://github.com/wasm-tool/wasm-pack-plugin/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-18 08:35:22 +00:00
Alex Crichton
32c611d16d Convert all examples to using wasm-pack
This commit migrates all our examples to using `wasm-pack build` to
compile their code and run `wasm-bindgen`. This should make it a bit
easier to understand the examples as there's less to follow during the
build step.

Webpack projects are all using `@wasm-tool/wasm-pack-plugin` as well so
the build step is simple `npm run serve`. Other examples which retain
`build.sh` are just using `wasm-pack build` now
2019-01-17 08:37:32 -08:00
Alex Crichton
23f98dbfe0 Try to fix CI examples build 2018-12-03 10:38:55 -08:00
Alex Crichton
717cfa303d Fix polyfill of TextEncoder and TextDecoder
This commit does a few things, including:

* Fixing the generated JS of `wasm-bindgen` to allow polyfills to work.
  (a minor tweak of the generated JS)

* All examples are updated to include a Webpack-specific polyfill for
  these two types to get examples working in Edge.

* A new page has been added to the guide about supported browsers. This
  mentions known caveats like IE 11 requiring `wasm2js` as well as
  documenting some `TextEncoder` and `TextDecoder` workarounds for Edge.

Closes #895
2018-09-30 10:16:20 -07:00
Cameron Taggart
052b41b84c update to "webpack-cli": "^3.1.1" 2018-09-25 18:50:27 -07:00
Alex Crichton
fd75280ef5 Another attempt to fix CI 2018-09-12 10:39:26 -07:00
dependabot[bot]
9225642eaa
Bump webpack-dev-server from 3.1.5 to 3.1.6
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 3.1.5 to 3.1.6.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v3.1.5...v3.1.6)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-27 08:13:19 +00:00
dependabot[bot]
c99b27a367
Bump webpack from 4.17.0 to 4.17.1
Bumps [webpack](https://github.com/webpack/webpack) from 4.17.0 to 4.17.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.17.0...v4.17.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-23 08:12:54 +00:00
dependabot[bot]
304af77015
Bump webpack from 4.16.5 to 4.17.0
Bumps [webpack](https://github.com/webpack/webpack) from 4.16.5 to 4.17.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.16.5...v4.17.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-22 08:12:59 +00:00
Alex Crichton
b2977a4262 Delete wasm-bindgen-test-project-builder
No more tests use it!
2018-08-06 11:48:34 -07:00
dependabot[bot]
63ee9a024d Bump eslint from 5.2.0 to 5.3.0
Bumps [eslint](https://github.com/eslint/eslint) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v5.2.0...v5.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-06 10:52:50 +00:00
dependabot[bot]
281bbfa60c Bump webpack from 4.16.4 to 4.16.5
Bumps [webpack](https://github.com/webpack/webpack) from 4.16.4 to 4.16.5.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.16.4...v4.16.5)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-06 10:19:21 +00:00
dependabot[bot]
b9ea8ddcc9 Bump @types/node from 10.5.5 to 10.5.6
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) from 10.5.5 to 10.5.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-06 10:00:42 +00:00
Nick Fitzgerald
7c6516991d deps: Update geckodriver, package-lock.json 2018-08-03 10:25:08 -07:00
dependabot[bot]
595bb78d26 Bump webpack from 4.16.3 to 4.16.4
Bumps [webpack](https://github.com/webpack/webpack) from 4.16.3 to 4.16.4.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.16.3...v4.16.4)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-03 09:29:54 +00:00
dependabot[bot]
bbfdcc833f Bump @types/node from 10.5.4 to 10.5.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) from 10.5.4 to 10.5.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-01 08:41:29 +00:00
dependabot[bot]
33e5223dd6 Bump geckodriver from 1.11.0 to 1.12.0
Bumps [geckodriver](https://github.com/vladikoff/node-geckodriver) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/vladikoff/node-geckodriver/releases)
- [Commits](https://github.com/vladikoff/node-geckodriver/compare/v1.11.0...v1.12.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-31 09:53:26 +00:00
dependabot[bot]
63949eb14d Bump typescript from 2.9.2 to 3.0.1
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 2.9.2 to 3.0.1.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v2.9.2...v3.0.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-31 08:51:08 +00:00
dependabot[bot]
457ed3ffcb Bump webpack from 4.16.2 to 4.16.3
Bumps [webpack](https://github.com/webpack/webpack) from 4.16.2 to 4.16.3.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.16.2...v4.16.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-30 08:52:33 +00:00
dependabot[bot]
caad633ef4 Bump @types/node from 10.5.3 to 10.5.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) from 10.5.3 to 10.5.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-30 08:34:39 +00:00
dependabot[bot]
269127a5c5 Bump @types/node from 10.5.2 to 10.5.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) from 10.5.2 to 10.5.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-25 08:38:04 +00:00
dependabot[bot]
15d0fcfcf4 Bump webpack from 4.16.1 to 4.16.2
Bumps [webpack](https://github.com/webpack/webpack) from 4.16.1 to 4.16.2.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.16.1...v4.16.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-24 09:05:55 +00:00
dependabot[bot]
5a0f8e783b Bump webpack-dev-server from 3.1.4 to 3.1.5
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v3.1.4...v3.1.5)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-23 08:57:31 +00:00
dependabot[bot]
7df3127ae3 Bump eslint from 5.1.0 to 5.2.0
Bumps [eslint](https://github.com/eslint/eslint) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v5.1.0...v5.2.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-23 08:47:07 +00:00
dependabot[bot]
e99c6b7c61 Bump webpack-cli from 3.0.8 to 3.1.0
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.0.8 to 3.1.0.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-19 14:34:45 +00:00
dependabot[bot]
6753285899 Bump webpack from 4.16.0 to 4.16.1
Bumps [webpack](https://github.com/webpack/webpack) from 4.16.0 to 4.16.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.16.0...v4.16.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-17 15:08:39 +00:00
dependabot[bot]
1a8490146d Bump babel-eslint from 8.2.5 to 8.2.6 (#464)
Bumps [babel-eslint](https://github.com/babel/babel-eslint) from 8.2.5 to 8.2.6.
- [Release notes](https://github.com/babel/babel-eslint/releases)
- [Commits](https://github.com/babel/babel-eslint/compare/v8.2.5...v8.2.6)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-13 10:13:19 -05:00
dependabot[bot]
913b487638 Bump webpack from 4.15.1 to 4.16.0
Bumps [webpack](https://github.com/webpack/webpack) from 4.15.1 to 4.16.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.15.1...v4.16.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-12 08:43:57 +00:00
dependabot[bot]
113577329c
Bump eslint from 5.0.1 to 5.1.0
Bumps [eslint](https://github.com/eslint/eslint) from 5.0.1 to 5.1.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v5.0.1...v5.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-09 05:50:55 +00:00
Frank Hassanabad
6561fba947 Applied eslint from main .eslintrc to examples (#418)
* Changed eslintrc to be JSON file (Most projects use JSON version)
  * Added .eslintignore to ingore node_modules from subdirectories such as examples
  * Ran eslint --fix examples to fix all examples
  * Added npm script for running eslint against examples
  * Added npm script for running eslint against generated *out* code
  * Hooked npm scripts into travis ci to prevent examples from becoming inconsistent with future PR's
2018-07-08 01:02:10 -05:00
dependabot[bot]
fcb3085485
Bump webpack-cli from 2.1.5 to 3.0.8
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 2.1.5 to 3.0.8.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v2.1.5...v3.0.8)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-06 23:45:53 +00:00
dependabot[bot]
11b58f0c03
Bump webpack from 4.12.0 to 4.15.1
Bumps [webpack](https://github.com/webpack/webpack) from 4.12.0 to 4.15.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.12.0...v4.15.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-06 22:23:31 +00:00
dependabot[bot]
d1f22d3101
Merge pull request #407 from rustwasm/dependabot/npm_and_yarn/ts-loader-4.4.2 2018-07-06 22:22:15 +00:00
dependabot[bot]
31252a23c8
Bump ts-loader from 4.4.1 to 4.4.2
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 4.4.1 to 4.4.2.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v4.4.1...v4.4.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-06 20:33:01 +00:00
dependabot[bot]
5da5bddadf
Bump @types/node from 9.6.22 to 10.5.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) from 9.6.22 to 10.5.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-06 20:32:16 +00:00
Nick Fitzgerald
59b3b4dc8d Headless browser testing infrastructure (#371)
* tests: Add newlines between impl methods for Project

* WIP headless browser testing with geckodriver and selenium

* Get some more of headless testing working

* Extract `console.log` invocations and print them from the console
* Ship the error message from an exception from the browser back to the command
  line
* Cleanup some "if headless" and `else` branches
* Fix killing `webpack-dev-server` in the background with `--watch-stdin`

* Fix path appending logic for Windows

* Always log logs/errors in headless mode

* Install Firefox on Travis

* Don't duplicate full test suite with `yarn`

No need to run that many tests, we should be able to get by with a smoke test
that it just works.

* headless tests: Move `run-headless.js` to its own file and `include_str!` it

* Run `rustfmt` on `tests/all/main.rs`

* guide: Add note about headless browser tests and configuration

* test: Log WASM_BINDGEN_FIREFOX_BIN_PATH in run-headless.js

* TEMP only run add_headless test in CI

* Add more logging to headless testing

* Allow headless tests to run for 60 seconds before timeout

* TEMP add logging to add_headless test

* Fix headless browser tests

* Another attempt to fix Travis

* More attempts at debugging

* Fix more merge conflicts

* Touch up an error message

* Fixup travis again

* Enable all travis tests again

* Test everything on AppVeyor
2018-07-05 09:22:01 -05:00
Alex Crichton
efa4a2b8fa
Speed up Travis by running Webpack in fewer tests (#381)
* Reorganize Travis configuration

* Add a `JOB` env var descriptor to all matrix entries. Not used anywhere but is
  useful when viewing the whole build on Travis's web interface.
* Reorganize where builds are located, moving slow builds first and fast ones
  last.
* Change checking the CLI builds from `cargo build` to `cargo check`
* Use YAML references to reduce some duplication

* Print some more timing statistics for each test

* Extract `Project` helper in tests to a module

This'll help make it a bit more extensible over time. At the same time the
methods are also slightly reorganized to read more clearly from top to bottom.

* Migrate all tests away from Webpack

Wepback can take a significant amount of time to execute and when it's
multiplied by hundreds of tests that adds up really quickly! After investigating
Node's `--experimental-modules` option it looks like it's suitable for our use
so this switches all tests to using JS files (moving away from TypeScript as
well) with `--experimental-modules` with Node.

Tests will be selectively re-enabled with webpack and node.js specific output
(that doesn't require `--experimental-modules`), coming in later commits.

* Restore the node test for node.js output

Ensures it's workable as-is

* Only generate typescript with webpack

* Only read wasm files for webpack

* Skip package.json/node_modules for now

* Only generate webpack config if needed

* Start a dedicated test module for typescript

Will hopefully verify the generated Typescript compiles OK.

* Remove unneeded `node` method

* Fixup some rebase conflicts

* Don't run asmjs example on travis

* Fixup generator tests

* Attempt to fix windows

* Comment windows fix

* More test fixes

* More exclusions

* More test fixes

* Relax eslint regex

Catch mjs modules as well

* Fix eslint

* Speed up travis on examples slightly
2018-07-04 22:37:09 -05:00
Robert Masen
2d7e7cd73e Update js formatting 2018-06-15 12:55:37 -05:00
Sven SAULEAU
b67df02d01
feat: bump webpack 2018-06-06 10:07:02 +02:00
Alex Crichton
ad89d8457e
Fix tests by pinning versions of webpack (#219)
Looks like a newer version of webpack has broken tests, so let's use
package-lock.json to pin to an older version while we wait for a fix.
2018-06-01 13:42:59 -05:00
Sven SAULEAU
fe60d48825
fix: bump webpack 2018-05-08 19:35:58 +02:00
Alex Crichton
cbcc300f71 Update webpack req in package.json 2018-05-07 07:38:11 -07:00
Alex Crichton
d9e1dae298 Migrate from rollup to webpack in tests
Building on the previous commit to invoke not invoke `npm install` this takes
the commit a step further (to hopefully fix some races) to use Webpack's native
bundled wasm support.

It turns out the circular dependencies between the wasm module and the module
using it wasn't quite working out so a number of imports had to be tweaked, but
otherwise it's a nice transition where we don't have to base64 encode anything
in tests any more!
2018-03-02 19:20:14 -08:00
Alex Crichton
353794417c Don't run npm install during tests
Instead add a `package.json` and use `yarn run`.
2018-03-02 15:44:28 -08:00