You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@unomi.apache.org by jk...@apache.org on 2022/09/22 14:21:36 UTC

[unomi-tracker] branch main updated: UNOMI-671: add .npmignore to avoid packaging unecessary files/folders. Add sourcemap also

This is an automated email from the ASF dual-hosted git repository.

jkevan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/unomi-tracker.git


The following commit(s) were added to refs/heads/main by this push:
     new 94eb54e  UNOMI-671: add .npmignore to avoid packaging unecessary files/folders. Add sourcemap also
94eb54e is described below

commit 94eb54e7cec8b2e07ad348e95c49fe86bd5e2885
Author: Kevan <ke...@jahia.com>
AuthorDate: Thu Sep 22 16:21:17 2022 +0200

    UNOMI-671: add .npmignore to avoid packaging unecessary files/folders. Add sourcemap also
---
 .npmignore                           | 12 ++++++++++++
 dist/apache-unomi-tracker.cjs.js     |  1 +
 dist/apache-unomi-tracker.cjs.js.map |  1 +
 dist/apache-unomi-tracker.esm.js     |  1 +
 dist/apache-unomi-tracker.esm.js.map |  1 +
 dist/apache-unomi-tracker.umd.js     |  1 +
 dist/apache-unomi-tracker.umd.js.map |  1 +
 rollup.config.js                     |  5 +++--
 8 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/.npmignore b/.npmignore
new file mode 100644
index 0000000..50659cd
--- /dev/null
+++ b/.npmignore
@@ -0,0 +1,12 @@
+/test
+/src
+.DS_Store
+Thumbs.db
+Desktop.ini
+babel.config.json
+rollup.config.js
+unomi-tracker.iml
+LICENSE_HEADER
+RELEASE.md
+# Hidden files
+.*
\ No newline at end of file
diff --git a/dist/apache-unomi-tracker.cjs.js b/dist/apache-unomi-tracker.cjs.js
index fd3e730..4ec38f1 100644
--- a/dist/apache-unomi-tracker.cjs.js
+++ b/dist/apache-unomi-tracker.cjs.js
@@ -1603,3 +1603,4 @@ var useTracker = function useTracker() {
 };
 
 exports.useTracker = useTracker;
+//# sourceMappingURL=apache-unomi-tracker.cjs.js.map
diff --git a/dist/apache-unomi-tracker.cjs.js.map b/dist/apache-unomi-tracker.cjs.js.map
new file mode 100644
index 0000000..b21fe78
--- /dev/null
+++ b/dist/apache-unomi-tracker.cjs.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"apache-unomi-tracker.cjs.js","sources":["../src/tracker/tracker.js","../src/index.js"],"sourcesContent":["/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements.  See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance [...]
\ No newline at end of file
diff --git a/dist/apache-unomi-tracker.esm.js b/dist/apache-unomi-tracker.esm.js
index 33578f8..2737539 100644
--- a/dist/apache-unomi-tracker.esm.js
+++ b/dist/apache-unomi-tracker.esm.js
@@ -1595,3 +1595,4 @@ var useTracker = function useTracker() {
 };
 
 export { useTracker };
+//# sourceMappingURL=apache-unomi-tracker.esm.js.map
diff --git a/dist/apache-unomi-tracker.esm.js.map b/dist/apache-unomi-tracker.esm.js.map
new file mode 100644
index 0000000..e4a98f0
--- /dev/null
+++ b/dist/apache-unomi-tracker.esm.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"apache-unomi-tracker.esm.js","sources":["../src/tracker/tracker.js","../src/index.js"],"sourcesContent":["/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements.  See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance [...]
\ No newline at end of file
diff --git a/dist/apache-unomi-tracker.umd.js b/dist/apache-unomi-tracker.umd.js
index d142b81..4bfff86 100644
--- a/dist/apache-unomi-tracker.umd.js
+++ b/dist/apache-unomi-tracker.umd.js
@@ -3254,3 +3254,4 @@
   Object.defineProperty(exports, '__esModule', { value: true });
 
 }));
+//# sourceMappingURL=apache-unomi-tracker.umd.js.map
diff --git a/dist/apache-unomi-tracker.umd.js.map b/dist/apache-unomi-tracker.umd.js.map
new file mode 100644
index 0000000..304fd70
--- /dev/null
+++ b/dist/apache-unomi-tracker.umd.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"apache-unomi-tracker.umd.js","sources":["../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/es6-crawler-detect/src/lib/crawler/provider.js","../node_modules/es6-crawler-detect/src/lib/crawler/crawlers.js","../node_modules/es6-crawler-detect/src/lib/crawler/exclusions.js","../node_modules/es6-crawler-detect/src/lib/crawler/headers.js","../node_modules/es6-crawler-detect/src/lib/crawler.js","../node_modules/es6-crawler-detect/src/index.js","../src/t [...]
\ No newline at end of file
diff --git a/rollup.config.js b/rollup.config.js
index cad8395..c2f12b1 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -29,6 +29,7 @@ export default [
             name: pkg.name,
             file: pkg.browser,
             format: 'umd',
+            sourcemap: true
         },
         plugins: [
             license({
@@ -51,8 +52,8 @@ export default [
     {
         input: 'src/index.js',
         output: [
-            { file: pkg.main, format: 'cjs' },
-            { file: pkg.module, format: 'es' },
+            { file: pkg.main, format: 'cjs', sourcemap: true },
+            { file: pkg.module, format: 'es', sourcemap: true },
         ],
         plugins: [
             license({