Commit Graph

26 Commits

Author SHA1 Message Date
Nick Fitzgerald
b0df5f79e4 Update package-lock.json via npm install 2018-08-08 14:42:21 -07: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
R. Andrew Ohana
89e8a4561e use npm ci in ci (#481) 2018-07-14 22:45:58 -05: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
a0aecec506
chore: update package lock 2018-06-06 10:11:02 +02:00
Sven SAULEAU
b67df02d01
feat: bump webpack 2018-06-06 10:07:02 +02:00
Alex Crichton
cb1e5cf136
Optimize JsValue::{from_bool, undefined, null} constructors (#220)
This commit optimizes constructing an instance of `JsValue` which is one of
`null`, `undefined`, `true`, or `false`. These are commonly created on the Rust
side of things and since there's only a limited set of values we can easily
prepopulate the global slab with a few entries and use hardcoded indices to
refer to these constants. This should avoid the need to travel into JS to insert
a `null` or and `undefined` into the global slab.
2018-06-01 16:46:42 -05: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