@canopycanopycanopy/b-ber-shapes-dublin-core 3.0.8-nav.0 → 3.0.8-next.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,19 @@
1
- # `@canopycanopycanopy/b-ber-shapes-dublin-core`
1
+ # b-ber-shapes-dublin-core
2
2
 
3
- The `b-ber-shapes-dublin-core` package contains lists of [Dublin Core](https://www.dublincore.org) terms and elements.
3
+ A data-only package that exports two arrays of Dublin Core metadata identifiers. `elements` contains the 14 original DCMI elements (contributor, creator, description, format, identifier, language, publisher, relation, rights, source, subject, title, type, coverage). `terms` contains the full set of DCMI Metadata Terms (~55 entries including abstract, available, created, license, modified, and all refinements). These arrays are consumed by the b-ber build pipeline when generating EPUB OPF metadata and validating publication metadata supplied in a project's configuration.
4
4
 
5
- ## Install
5
+ ## Usage
6
6
 
7
+ ```js
8
+ import { elements, terms } from '@canopycanopycanopy/b-ber-shapes-dublin-core'
7
9
  ```
8
- $ npm i -g @canopycanopycanopy/b-ber-shapes-dublin-core
10
+
11
+ This package is a pure data export with no runtime logic.
12
+
13
+ ## Dev
14
+
9
15
  ```
16
+ npm test
17
+ ```
18
+
19
+ Tests verify that both exports are arrays.
@@ -0,0 +1,8 @@
1
+ //#region src/elements.d.ts
2
+ declare const elements: string[];
3
+ //#endregion
4
+ //#region src/terms.d.ts
5
+ declare const terms: string[];
6
+ //#endregion
7
+ export { elements, terms };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/elements.ts","../src/terms.ts"],"mappings":";cAAM,QAAA;;;cCAA,KAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,80 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/elements.ts
3
+ const elements = [
4
+ "contributor",
5
+ "coverage",
6
+ "creator",
7
+ "description",
8
+ "format",
9
+ "identifier",
10
+ "language",
11
+ "publisher",
12
+ "relation",
13
+ "rights",
14
+ "source",
15
+ "subject",
16
+ "title",
17
+ "type"
18
+ ];
19
+ //#endregion
20
+ //#region src/terms.ts
21
+ const terms = [
22
+ "abstract",
23
+ "accessRights",
24
+ "accrualMethod",
25
+ "accrualPeriodicity",
26
+ "accrualPolicy",
27
+ "alternative",
28
+ "audience",
29
+ "available",
30
+ "bibliographicCitation",
31
+ "conformsTo",
32
+ "contributor",
33
+ "coverage",
34
+ "created",
35
+ "creator",
36
+ "date",
37
+ "dateAccepted",
38
+ "dateCopyrighted",
39
+ "dateSubmitted",
40
+ "description",
41
+ "educationLevel",
42
+ "extent",
43
+ "format",
44
+ "hasFormat",
45
+ "hasPart",
46
+ "hasVersion",
47
+ "identifier",
48
+ "instructionalMethod",
49
+ "isFormatOf",
50
+ "isPartOf",
51
+ "isReferencedBy",
52
+ "isReplacedBy",
53
+ "isRequiredBy",
54
+ "issued",
55
+ "isVersionOf",
56
+ "language",
57
+ "license",
58
+ "mediator",
59
+ "medium",
60
+ "modified",
61
+ "provenance",
62
+ "publisher",
63
+ "references",
64
+ "relation",
65
+ "replaces",
66
+ "requires",
67
+ "rights",
68
+ "rightsHolder",
69
+ "source",
70
+ "spatial",
71
+ "subject",
72
+ "tableOfContents",
73
+ "temporal",
74
+ "title",
75
+ "type",
76
+ "valid"
77
+ ];
78
+ //#endregion
79
+ exports.elements = elements;
80
+ exports.terms = terms;
package/package.json CHANGED
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "name": "@canopycanopycanopy/b-ber-shapes-dublin-core",
3
- "version": "3.0.8-nav.0+24db1e6b",
3
+ "version": "3.0.8-next.96+7446845b",
4
4
  "description": "",
5
- "main": "index.js",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
6
7
  "scripts": {
7
- "prepare:dist": "BABEL_ENV=production babel --config-file ../../babel.config.js -d ./ src/ --ignore **/__tests__/**",
8
- "prepare": "npm run clean && npm run prepare:dist",
9
- "clean": "rimraf dc && rimraf index.js",
10
- "build": "npm run prepare",
11
- "watch": "BABEL_ENV=production babel --config-file ../../babel.config.js -d ./ src/ --watch src",
8
+ "build": "tsdown",
9
+ "typecheck": "tsc --noEmit",
12
10
  "test": "jest"
13
11
  },
14
12
  "author": "Triple Canopy <b-ber@canopycanopycanopy.com> (https://triplecanopy.github.io/)",
@@ -16,22 +14,12 @@
16
14
  "publishConfig": {
17
15
  "access": "public"
18
16
  },
19
- "dependencies": {
20
- "@babel/runtime-corejs3": "^7.10.5",
21
- "lodash": "^4.17.21",
22
- "tar": "^6.1.11"
23
- },
24
17
  "devDependencies": {
25
- "@babel/cli": "^7.10.5",
26
- "@babel/core": "^7.10.5",
27
- "@babel/preset-env": "^7.10.4",
28
- "browserslist": "^4.17.4",
29
- "jest": "^26.6.3",
18
+ "jest": "^29.7.0",
30
19
  "rimraf": "^2.7.1"
31
20
  },
32
21
  "files": [
33
- "terms.js",
34
- "elements.js"
22
+ "dist"
35
23
  ],
36
24
  "repository": {
37
25
  "type": "git",
@@ -47,5 +35,5 @@
47
35
  "url": "https://maxwellsimmer.com"
48
36
  }
49
37
  ],
50
- "gitHead": "24db1e6bb491faae0d52c6dadc09d974a5a31cf5"
38
+ "gitHead": "7446845bcda4337bfbc9f75b55a1e0ca805023eb"
51
39
  }
package/elements.js DELETED
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
- _Object$defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _default = ['contributor', 'coverage', 'creator', 'description', 'format', 'identifier', 'language', 'publisher', 'relation', 'rights', 'source', 'subject', 'title', 'type'];
9
- exports.default = _default;
package/index.js DELETED
@@ -1,21 +0,0 @@
1
- "use strict";
2
-
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
5
- _Object$defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- _Object$defineProperty(exports, "elements", {
9
- enumerable: true,
10
- get: function () {
11
- return _elements.default;
12
- }
13
- });
14
- _Object$defineProperty(exports, "terms", {
15
- enumerable: true,
16
- get: function () {
17
- return _terms.default;
18
- }
19
- });
20
- var _terms = _interopRequireDefault(require("./terms"));
21
- var _elements = _interopRequireDefault(require("./elements"));
package/terms.js DELETED
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
- _Object$defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _default = ['abstract', 'accessRights', 'accrualMethod', 'accrualPeriodicity', 'accrualPolicy', 'alternative', 'audience', 'available', 'bibliographicCitation', 'conformsTo', 'contributor', 'coverage', 'created', 'creator', 'date', 'dateAccepted', 'dateCopyrighted', 'dateSubmitted', 'description', 'educationLevel', 'extent', 'format', 'hasFormat', 'hasPart', 'hasVersion', 'identifier', 'instructionalMethod', 'isFormatOf', 'isPartOf', 'isReferencedBy', 'isReplacedBy', 'isRequiredBy', 'issued', 'isVersionOf', 'language', 'license', 'mediator', 'medium', 'modified', 'provenance', 'publisher', 'references', 'relation', 'replaces', 'requires', 'rights', 'rightsHolder', 'source', 'spatial', 'subject', 'tableOfContents', 'temporal', 'title', 'type', 'valid'];
9
- exports.default = _default;