【文件属性】:
文件名称:metalsmith-collection-scoping:一个 Metalsmith 插件,可让您将范围应用于集合
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-04 15:11:28
JavaScript
metalsmith-collection-scoping
一个插件,可让您将范围应用于集合。
特征
将标记为私有并在构建时指定是否包含它们
在非私有范围内运行时从其集合中删除私有文件
将私人收藏传播到匹配的文件,用于
安装
$ npm install metalsmith-collection-scoping
用法
该插件旨在与两个现有插件一起使用:metalsmith-collections 和 metalsmith-scoping。 例如:
{
" plugins " : {
" metalsmith-collections " : {
" articles " : {
" sortBy " : " date " ,
" reverse " : true
},
" secrets " : {
【文件预览】:
metalsmith-collection-scoping-master
----.travis.yml(75B)
----package.json(883B)
----test()
--------index.js(5KB)
--------fixtures()
----LICENSE(1KB)
----.gitignore(549B)
----lib()
--------index.js(2KB)
----README.md(3KB)