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 2019/10/28 00:57:55 UTC

[incubator-annotator] 03/04: Convert .nycrc to nyc.config.js

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 67c827eb175f7df2ce1c12085370757e5b9927f5
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Sun Oct 27 17:53:34 2019 -0700

    Convert .nycrc to nyc.config.js
---
 .nycrc        |  9 ---------
 nyc.config.js | 27 +++++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 9 deletions(-)

diff --git a/.nycrc b/.nycrc
deleted file mode 100644
index 8ddd043..0000000
--- a/.nycrc
+++ /dev/null
@@ -1,9 +0,0 @@
-{
-  "all": true,
-  "include": [
-    "packages/*/src/**/*.js"
-  ],
-  "instrument": false,
-  "sourceMap": false,
-  "require": ["esm", "@babel/register"]
-}
diff --git a/nyc.config.js b/nyc.config.js
new file mode 100644
index 0000000..1291ff9
--- /dev/null
+++ b/nyc.config.js
@@ -0,0 +1,27 @@
+/**
+ * @license
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+module.exports = {
+  all: true,
+  include: ['packages/*/src/**/*.js'],
+  instrument: false,
+  sourceMap: false,
+  require: ['esm', '@babel/register'],
+};