David Baker
9d8a1494aa
Turns out prepublish is deprecated and should be prepare
2020-01-22 14:14:24 +00:00
David Baker
08465cf236
Add a prepublish script
...
So we actually build the lib directory before publishing it
2020-01-22 14:09:01 +00:00
Travis Ralston
ccca6f4b6d
Re-add dist script usage to js-sdk and release script
2020-01-14 14:44:06 -07:00
Travis Ralston
458b2d422d
Merge branch 'develop' into travis/sourcemaps
2020-01-13 11:17:27 -07:00
RiotRobot
0dc9c27651
v3.0.0
2020-01-13 12:52:23 +00:00
RiotRobot
786590eadc
v3.0.0-rc.1
2020-01-06 13:54:48 +00:00
Travis Ralston
f2e1f3393d
Add additional properties to package.json for riot-web's webpack
...
See https://github.com/vector-im/riot-web/pull/11679/commits/a1c9551bc8a1a6d61afed7e87ff7cebb3042a5ac
2019-12-22 20:47:45 -07:00
Travis Ralston
de9187fee2
Merge branch 'travis/sourcemaps' into travis/babel7-btargets
2019-12-19 17:08:50 -07:00
Travis Ralston
bb853f65e0
Merge pull request #1124 from matrix-org/travis/babel7-test-sourcemaps
...
Remove "source-map-support" from tests because it makes sourcemaps worse
2019-12-19 17:07:49 -07:00
Travis Ralston
53e838083c
Fix terser for new sourcemap handling
2019-12-19 14:04:01 -07:00
Travis Ralston
975368de8f
Externalize our sourcemaps for the browser bundle
2019-12-19 13:58:08 -07:00
Travis Ralston
b376a7c399
Improve minification
...
uglifify was being applied inline, which only resulted in one asset. With this we've gone back to using `terser` to generate the minified version of the browser bundle, which also exports sourcemaps interpretted from browserify.
The babelify options have changed to ensure that browser-safe code gets published so terser can more effectively parse it. It doesn't like things like classes it seems, but is fine with let/const and such. The preset-env preset automatically knows it is targeting a browser.
2019-12-19 12:25:28 -07:00
Travis Ralston
ffb0e27efa
We don't need no dist
2019-12-18 11:37:21 -07:00
Travis Ralston
e71c4b3bc4
Publish src to npm as well
...
So downstream projects can use it via /src if they really want to.
2019-12-17 19:35:00 -07:00
Travis Ralston
85a0adb004
Reorder babel arguments to leave more of it to the config
2019-12-17 19:31:53 -07:00
Travis Ralston
f1475cd3d7
Target NodeJS 10 and minified browser bundle
...
We release with Node 10 currently, so we should use that. The browser bundle is minfied because we want to keep it, so we might as well shave about 1mb off of it.
2019-12-17 16:18:11 -07:00
Travis Ralston
95c2c1643e
Remove "source-map-support" from tests because it makes sourcemaps worse
...
Now that we're pointing at `src/` for tests, we can stop trying to load source maps from random places. With this dependency used, source maps are off by a few lines.
2019-12-17 15:45:15 -07:00
Travis Ralston
0790201cca
Add tsify so the browser bundle can use src/
2019-12-17 15:21:22 -07:00
Travis Ralston
5938c49453
Move index files for outputs and update pipeline
...
Having them in `src/` helps IDEs do autocomplete a bit more nicely, and helps us not get confused about which one is referencing which. They have also been converted to TypeScript for typings to be generated.
2019-12-17 15:16:37 -07:00
Travis Ralston
034b8db070
Convert tests to ES6
...
The earlier commit, d3ce0cb82f , has most of the juicy details on this. In addition to d3ce's changes, we also:
* Use `TestClient` in many integration tests due to subtle behaviour changes in imports when switching to ES6. Namely the behaviour where setting the request function is less reliable in the way we did it, but `TestClient` is very reliable.
* We now use the Olm loader more often to avoid having to maintain so much duplicate code. This makes the imports slightly easier to read.
2019-12-17 15:16:37 -07:00
Travis Ralston
86c530e967
Leave the description alone
2019-12-12 10:27:02 -07:00
J. Ryan Stinnett
ab4d9ae4bc
Restore watching mode for start:watch
...
Regressed by #1112
2019-12-11 14:50:28 +00:00
Travis Ralston
4bdabbfbe9
[BREAKING] Refactor the entire build process
...
For https://github.com/vector-im/riot-web/issues/8880
Features:
* Export modern JS
* Export typings
* Export source maps that actually mean something
* No longer supporting minified builds
This is a step towards being a boring SDK and not anticipating an install location.
This commit requires a major version bump of the SDK.
2019-12-10 13:25:07 -07:00
Travis Ralston
f59650d8a6
Use better-docs jsdoc template for TypeScript+JS documentation
...
See description of https://github.com/matrix-org/matrix-js-sdk/pull/1112#issue-351540830 for more info
2019-12-10 11:59:46 -07:00
Travis Ralston
0e444fd925
Re-add babel-eslint
...
This was accidentally removed.
2019-12-10 11:53:02 -07:00
Travis Ralston
3dfde6bf6a
Setup for babel@7 + typescript
...
Refs:
* https://github.com/matrix-org/matrix-js-sdk/pull/1012
* https://github.com/matrix-org/matrix-js-sdk/pull/1106
2019-12-10 11:31:23 -07:00
Michael Telatynski
110c9800f0
Merge branches 't3chguy/remove_bluebird_12' and 't3chguy/remove_bluebird_13' of github.com:matrix-org/matrix-js-sdk into t3chguy/remove_bluebird_12
2019-12-10 00:19:03 +00:00
RiotRobot
0d59963b53
v2.4.6
2019-12-09 11:23:37 +00:00
Michael Telatynski
4a47867e49
Down to two test failures
2019-12-04 19:17:58 +00:00
RiotRobot
358f13500b
v2.4.6-rc.1
2019-12-04 11:57:08 +00:00
RiotRobot
6ea8003df2
Merge branch 'master' into develop
2019-11-27 10:28:14 +00:00
RiotRobot
c8ab82010a
v2.4.5
2019-11-27 10:17:54 +00:00
RiotRobot
ccc85d98e2
Merge branch 'master' into develop
2019-11-25 13:24:08 +00:00
RiotRobot
c30a8b5a29
v2.4.4
2019-11-25 13:10:04 +00:00
David Baker
e8bbb8a1cc
Remove 'check' npm script
...
...whose only purpose was to run the tests without coverage because
the coverage tool was awful and ruined all the line numbers (moreso).
2019-11-21 19:30:46 +00:00
Michael Telatynski
522640edd9
rip out lolex also
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-11-20 21:05:21 +00:00
Michael Telatynski
26edd7431a
fix yarn scripts test
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-11-20 19:56:50 +00:00
Michael Telatynski
fd58957b06
migrate to jest from mocha+expect+istanbul
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-11-20 19:52:50 +00:00
RiotRobot
12bb0b86dd
v2.4.4-rc.1
2019-11-20 18:19:30 +00:00
David Baker
ac91367801
Merge pull request #832 from matrix-org/dbkr/cross_signing
...
Cross Signing Support
2019-11-15 16:09:06 +00:00
RiotRobot
549f679bf1
Merge branch 'master' into develop
2019-11-04 13:59:24 +00:00
RiotRobot
6ba052dcc4
v2.4.3
2019-11-04 13:51:50 +00:00
J. Ryan Stinnett
1af8d20adf
Remove Jenkins scripts
...
We haven't used Jenkins for a while, so it seems safe to remove the scripts that
supported it.
2019-11-01 16:08:29 +00:00
RiotRobot
e8f5a8b89d
v2.4.3-rc.1
2019-10-30 16:40:25 +00:00
David Baker
3e2d845342
Merge remote-tracking branch 'origin/develop' into dbkr/cross_signing
2019-10-28 16:47:16 +00:00
RiotRobot
46d7e4c707
Merge branch 'master' into develop
2019-10-18 14:38:58 +01:00
RiotRobot
c874783742
v2.4.2
2019-10-18 14:36:57 +01:00
J. Ryan Stinnett
e0b64a487d
Downgrade to Bluebird 3.5.5 to fix Firefox
...
Bluebird 3.6.0+ currently breaks in at least Firefox with errors in their
rejection tracking approach. For now, this retreats back to the version we had
used for a long time.
Regressed by https://github.com/matrix-org/matrix-js-sdk/pull/1053
Fixes https://github.com/vector-im/riot-web/issues/11148
2019-10-17 00:05:47 +02:00
J. Ryan Stinnett
335b2314f1
Upgrade safe deps to latest major version
2019-10-11 12:44:36 +01:00
RiotRobot
20d82eb92f
v2.4.2-rc.1
2019-10-09 16:49:43 +01:00