├── .eslintignore ├── .eslintrc.yml ├── .gitattributes ├── .github └── workflows │ └── test.yml ├── .gitignore ├── .npmrc ├── .prettierignore ├── .prettierrc.yml ├── .release-it.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── lib └── index.d.ts ├── package.json ├── src └── index.js └── test ├── fixtures ├── array-merge │ └── src │ │ └── metadata │ │ ├── first.json │ │ └── second.json ├── deep-nested │ └── src │ │ └── path │ │ └── path │ │ └── data.yaml ├── duplicate │ └── src │ │ ├── data.json │ │ └── data2.json ├── external-file │ ├── data │ │ └── test.json │ └── src │ │ └── main.json ├── external-folder │ ├── data │ │ ├── test.json │ │ └── test2.yaml │ └── src │ │ └── main.json ├── ignored │ └── src │ │ ├── ignored.yaml │ │ ├── implicitly-ignored.yaml │ │ └── not-ignored.json ├── incorrect-path │ └── src │ │ └── data.json ├── json │ └── src │ │ └── data.json ├── malformed │ └── src │ │ └── data.json ├── nested-directories │ ├── data │ │ ├── nested │ │ │ └── test.yaml │ │ └── test.json │ └── src │ │ └── main.json ├── nested-keypath │ └── src │ │ └── metadata.yml ├── nested │ └── src │ │ └── path │ │ └── data.yaml ├── object-merge │ └── src │ │ └── metadata │ │ ├── metatags.json │ │ ├── navitem.yml │ │ └── navitems.json ├── toml │ └── src │ │ └── data.toml ├── unsupported-ext │ └── src │ │ └── data.txt └── yaml │ └── src │ └── data.yaml └── index.js /.eslintignore: -------------------------------------------------------------------------------- 1 | lib -------------------------------------------------------------------------------- /.eslintrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/.eslintrc.yml -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/.npmrc -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | test/fixtures/** 2 | coverage/* 3 | package-lock.json 4 | lib -------------------------------------------------------------------------------- /.prettierrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/.prettierrc.yml -------------------------------------------------------------------------------- /.release-it.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/.release-it.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/README.md -------------------------------------------------------------------------------- /lib/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/lib/index.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/package.json -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/src/index.js -------------------------------------------------------------------------------- /test/fixtures/array-merge/src/metadata/first.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/array-merge/src/metadata/first.json -------------------------------------------------------------------------------- /test/fixtures/array-merge/src/metadata/second.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/array-merge/src/metadata/second.json -------------------------------------------------------------------------------- /test/fixtures/deep-nested/src/path/path/data.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/deep-nested/src/path/path/data.yaml -------------------------------------------------------------------------------- /test/fixtures/duplicate/src/data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/duplicate/src/data.json -------------------------------------------------------------------------------- /test/fixtures/duplicate/src/data2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/duplicate/src/data2.json -------------------------------------------------------------------------------- /test/fixtures/external-file/data/test.json: -------------------------------------------------------------------------------- 1 | { 2 | "json": "string" 3 | } -------------------------------------------------------------------------------- /test/fixtures/external-file/src/main.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/external-file/src/main.json -------------------------------------------------------------------------------- /test/fixtures/external-folder/data/test.json: -------------------------------------------------------------------------------- 1 | { 2 | "json": "string" 3 | } -------------------------------------------------------------------------------- /test/fixtures/external-folder/data/test2.yaml: -------------------------------------------------------------------------------- 1 | yaml: 2 | bool: true -------------------------------------------------------------------------------- /test/fixtures/external-folder/src/main.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/external-folder/src/main.json -------------------------------------------------------------------------------- /test/fixtures/ignored/src/ignored.yaml: -------------------------------------------------------------------------------- 1 | loaded: true -------------------------------------------------------------------------------- /test/fixtures/ignored/src/implicitly-ignored.yaml: -------------------------------------------------------------------------------- 1 | implicitly_loaded: true -------------------------------------------------------------------------------- /test/fixtures/ignored/src/not-ignored.json: -------------------------------------------------------------------------------- 1 | { 2 | "not_ignored": true 3 | } -------------------------------------------------------------------------------- /test/fixtures/incorrect-path/src/data.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/json/src/data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/json/src/data.json -------------------------------------------------------------------------------- /test/fixtures/malformed/src/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "str 3 | } -------------------------------------------------------------------------------- /test/fixtures/nested-directories/data/nested/test.yaml: -------------------------------------------------------------------------------- 1 | bool: true -------------------------------------------------------------------------------- /test/fixtures/nested-directories/data/test.json: -------------------------------------------------------------------------------- 1 | { 2 | "json": "string" 3 | } -------------------------------------------------------------------------------- /test/fixtures/nested-directories/src/main.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/nested-directories/src/main.json -------------------------------------------------------------------------------- /test/fixtures/nested-keypath/src/metadata.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/nested-keypath/src/metadata.yml -------------------------------------------------------------------------------- /test/fixtures/nested/src/path/data.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/nested/src/path/data.yaml -------------------------------------------------------------------------------- /test/fixtures/object-merge/src/metadata/metatags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/object-merge/src/metadata/metatags.json -------------------------------------------------------------------------------- /test/fixtures/object-merge/src/metadata/navitem.yml: -------------------------------------------------------------------------------- 1 | navitems: 2 | - uri: / 3 | label: Home -------------------------------------------------------------------------------- /test/fixtures/object-merge/src/metadata/navitems.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/object-merge/src/metadata/navitems.json -------------------------------------------------------------------------------- /test/fixtures/toml/src/data.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/toml/src/data.toml -------------------------------------------------------------------------------- /test/fixtures/unsupported-ext/src/data.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/yaml/src/data.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/fixtures/yaml/src/data.yaml -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/metadata/HEAD/test/index.js --------------------------------------------------------------------------------