You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2020/08/04 02:07:23 UTC
[incubator-annotator] branch master updated (9984acf -> 7137b54)
This is an automated email from the ASF dual-hosted git repository.
randall pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git.
from 9984acf Upgrade Travis environment from xenial to bionic
new 9f584cb Simplify the mocha invocation by ignoring node_modules
new bd010e0 Remove plain JavaScript from babel-register
new e81082e Target the current node version for running tests
new 6935bfc Make sure selector is built before dom
new 5a75d7c Remove dangling comma in a tsconfig.json file
new db8b26e Target only the latest ECMAScript standard
new 7137b54 Enable minimal syntax polyfills in @babel/preset-env
The 7 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.mocharc.js | 1 +
babel-register.js | 2 +-
babel.config.js | 9 ++++++---
package.json | 2 +-
packages/dom/tsconfig.json | 7 ++++++-
tsconfig.base.json | 2 +-
tsconfig.json | 2 +-
7 files changed, 17 insertions(+), 8 deletions(-)
[incubator-annotator] 03/07: Target the current node version for
running tests
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit e81082e8f704e2b0e3516765d10f48a449b41b71
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Mon Aug 3 19:00:55 2020 -0700
Target the current node version for running tests
Tell Babel to use the current node version when building for tests. This
change eliminates the rewriting used to support asynchronous generators
on other target environments, greatly cleaning up stack traces when
running tests.
---
babel.config.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/babel.config.js b/babel.config.js
index 5d5dea8..21401f2 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -29,7 +29,7 @@ module.exports = (api) => {
// Transform module syntax if necessary.
modules: CJS || TEST ? 'commonjs' : false,
// Set target environment to default browsers.
- targets: 'defaults',
+ targets: TEST ? { node: 'current' } : 'defaults',
};
// Options for the @babel/typescript preset.
[incubator-annotator] 06/07: Target only the latest ECMAScript
standard
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit db8b26ef76fdf8dd191f5575934fc87dedd97b89
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Mon Aug 3 19:03:05 2020 -0700
Target only the latest ECMAScript standard
The project does not yet use any features that require anything beyond
the ECMAScript 2020 standard.
---
babel.config.js | 4 ++--
tsconfig.base.json | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/babel.config.js b/babel.config.js
index 21401f2..bf09c36 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -50,8 +50,8 @@ module.exports = (api) => {
// Options for the @babel/transform-runtime plugin.
const runtimeOptions = {
- // Use corejs version 3 with shipped proposals.
- corejs: { proposals: true, version: 3 },
+ // Use corejs version 3.
+ corejs: { version: 3 },
// Use helpers formatted for the target environment.
useESModules: !CJS && !TEST,
};
diff --git a/tsconfig.base.json b/tsconfig.base.json
index b8b3d12..5098b2b 100644
--- a/tsconfig.base.json
+++ b/tsconfig.base.json
@@ -8,7 +8,7 @@
"downlevelIteration": true,
"emitDeclarationOnly": true,
"isolatedModules": true,
- "lib": ["esnext"],
+ "lib": ["es2020"],
"moduleResolution": "node",
"strict": true,
"target": "es2017"
[incubator-annotator] 05/07: Remove dangling comma in a
tsconfig.json file
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit 5a75d7cd86d5899b9c80ff457ba2e05120ece6a8
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Mon Aug 3 19:02:53 2020 -0700
Remove dangling comma in a tsconfig.json file
---
tsconfig.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tsconfig.json b/tsconfig.json
index 9a05b84..529b902 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -7,5 +7,5 @@
{
"path": "./packages/selector/tsconfig.json"
}
- ],
+ ]
}
[incubator-annotator] 04/07: Make sure selector is built before dom
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit 6935bfcffa467d76b3bc097ab64cf7043ab21e03
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Mon Aug 3 19:02:40 2020 -0700
Make sure selector is built before dom
---
packages/dom/tsconfig.json | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/packages/dom/tsconfig.json b/packages/dom/tsconfig.json
index afffb53..66c98ee 100644
--- a/packages/dom/tsconfig.json
+++ b/packages/dom/tsconfig.json
@@ -2,5 +2,10 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"]
- }
+ },
+ "references": [
+ {
+ "path": "../selector/tsconfig.json"
+ }
+ ]
}
[incubator-annotator] 01/07: Simplify the mocha invocation by
ignoring node_modules
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit 9f584cb59f77e3e5a62b38654a83dfbe5ffb8380
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Mon Aug 3 18:49:35 2020 -0700
Simplify the mocha invocation by ignoring node_modules
---
.mocharc.js | 1 +
package.json | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/.mocharc.js b/.mocharc.js
index 561c0f5..f2eac6a 100644
--- a/.mocharc.js
+++ b/.mocharc.js
@@ -20,6 +20,7 @@
module.exports = {
extension: ['.ts'],
+ ignore: ['node_modules'],
require: ['./babel-register.js', 'global-jsdom/lib/register'],
timeout: 5000,
};
diff --git a/package.json b/package.json
index ebc7380..b995cc9 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,7 @@
"prepare": "lerna run prepare",
"prepublishOnly": "yarn run build",
"start": "yarn run web:server",
- "test": "cross-env BABEL_ENV=test nyc mocha packages/*/test/**/*.test.ts",
+ "test": "cross-env BABEL_ENV=test nyc mocha packages/**/*.test.ts",
"typecheck": "tsc",
"validate": "cross-env BABEL_ENV=test mocha test/**/*.test.ts",
"web:build": "webpack --config=web/webpack.config.js --mode development",
[incubator-annotator] 02/07: Remove plain JavaScript from
babel-register
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit bd010e0498d8488f6f974508cb87a2ab7b7823db
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Mon Aug 3 18:59:20 2020 -0700
Remove plain JavaScript from babel-register
By default, babel-register does not compile anything in the node modules
directory. Everything in the project is now TypeScript. Therefore, only
TypeScript files need to be compiled.
---
babel-register.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/babel-register.js b/babel-register.js
index 9aaa03e..ec45b5b 100644
--- a/babel-register.js
+++ b/babel-register.js
@@ -18,4 +18,4 @@
* under the License.
*/
-require('@babel/register')({ extensions: ['.js', '.ts'] });
+require('@babel/register')({ extensions: ['.ts'] });
[incubator-annotator] 07/07: Enable minimal syntax polyfills in
@babel/preset-env
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit 7137b54ea84a0cb294c23885b45cb72a779adaff
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Mon Aug 3 19:06:51 2020 -0700
Enable minimal syntax polyfills in @babel/preset-env
---
babel.config.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/babel.config.js b/babel.config.js
index bf09c36..a736a9a 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -26,6 +26,9 @@ module.exports = (api) => {
// Options for the @babel/env preset.
const envOptions = {
+ // Use minimal syntax fixes where possible
+ // Note: This setting may become the default in Babel 8.
+ bugfixes: true,
// Transform module syntax if necessary.
modules: CJS || TEST ? 'commonjs' : false,
// Set target environment to default browsers.