You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ge...@apache.org on 2020/09/18 15:31:30 UTC
[incubator-annotator] 01/01: Add apache-annotator meta-package
This is an automated email from the ASF dual-hosted git repository.
gerben pushed a commit to branch meta-package
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit 190080a34a4b41d40412dc748c3c3b346e16fc60
Author: Gerben <ge...@treora.com>
AuthorDate: Fri Sep 18 17:27:50 2020 +0200
Add apache-annotator meta-package
---
packages/apache-annotator/.npmignore | 2 ++
packages/apache-annotator/README.md | 3 +++
packages/apache-annotator/package.json | 31 +++++++++++++++++++++++++
packages/apache-annotator/src/dom/index.ts | 1 +
packages/apache-annotator/src/index.ts | 7 ++++++
packages/apache-annotator/src/selector/index.ts | 1 +
packages/apache-annotator/tsconfig.json | 8 +++++++
7 files changed, 53 insertions(+)
diff --git a/packages/apache-annotator/.npmignore b/packages/apache-annotator/.npmignore
new file mode 100644
index 0000000..281df39
--- /dev/null
+++ b/packages/apache-annotator/.npmignore
@@ -0,0 +1,2 @@
+src
+test
diff --git a/packages/apache-annotator/README.md b/packages/apache-annotator/README.md
new file mode 100644
index 0000000..dd0f4da
--- /dev/null
+++ b/packages/apache-annotator/README.md
@@ -0,0 +1,3 @@
+This package is a part of the Apache Annotator (incubating) project.
+
+For docs and other useful info see the [website](https://annotator.apache.org/) or [GitHub repository](https://github.com/apache/incubator-annotator).
diff --git a/packages/apache-annotator/package.json b/packages/apache-annotator/package.json
new file mode 100644
index 0000000..cf72080
--- /dev/null
+++ b/packages/apache-annotator/package.json
@@ -0,0 +1,31 @@
+{
+ "name": "apache-annotator",
+ "version": "0.1.0",
+ "description": "Web Annotation selector for engine.",
+ "homepage": "https://annotator.apache.org",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/apache/incubator-annotator.git"
+ },
+ "license": "Apache-2.0",
+ "author": "Apache Software Foundation",
+ "exports": {
+ "import": "./lib/index.mjs",
+ "require": "./lib/index.js"
+ },
+ "main": "./lib/index.js",
+ "module": "./lib/index.mjs",
+ "types": "./lib/index.d.ts",
+ "dependencies": {
+ "@annotator/dom": "^0.1.0",
+ "@annotator/selector": "^0.1.0",
+ "@babel/runtime-corejs3": "^7.8.7",
+ "core-js": "^3.6.4"
+ },
+ "engines": {
+ "node": "^10 || ^11 || ^12 || >=13.7"
+ },
+ "publishConfig": {
+ "access": "public"
+ }
+}
diff --git a/packages/apache-annotator/src/dom/index.ts b/packages/apache-annotator/src/dom/index.ts
new file mode 100644
index 0000000..469f803
--- /dev/null
+++ b/packages/apache-annotator/src/dom/index.ts
@@ -0,0 +1 @@
+export * from '@annotator/dom';
diff --git a/packages/apache-annotator/src/index.ts b/packages/apache-annotator/src/index.ts
new file mode 100644
index 0000000..e0de7d7
--- /dev/null
+++ b/packages/apache-annotator/src/index.ts
@@ -0,0 +1,7 @@
+import dom from '@annotator/dom';
+import selector from '@annotator/selector';
+
+export {
+ dom,
+ selector,
+};
diff --git a/packages/apache-annotator/src/selector/index.ts b/packages/apache-annotator/src/selector/index.ts
new file mode 100644
index 0000000..f9e35a4
--- /dev/null
+++ b/packages/apache-annotator/src/selector/index.ts
@@ -0,0 +1 @@
+export * from '@annotator/selector';
diff --git a/packages/apache-annotator/tsconfig.json b/packages/apache-annotator/tsconfig.json
new file mode 100644
index 0000000..653b0a5
--- /dev/null
+++ b/packages/apache-annotator/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../../tsconfig.base.json",
+ "include": ["src"],
+ "compilerOptions": {
+ "outDir": "lib",
+ "rootDir": "src"
+ }
+}