open-index/open-npm huggingface dataset:
npm package: @kythuen/handlebars-compiler
Description: ``` const compileTemplate = require('handlebars-compiler')
Latest version: 1.0.1

```
const compileTemplate = require('handlebars-compiler')

const metadata = require('./meta')
const filters = {
    'src/core/router/**/*': 'core.vueRouter === true',
    'src/core/store/**/*': 'core.vuex === true',
    'src/core/dependencies/antd/*': 'dependencies.antDesign === true'
}
compileTemplate({
    source: './template',
    destination: path.join(__dirname, './output'),
    metadata,
    filters,
}).then(() => {
  console.log('编译完成')
})

```

```
// 参数说明
source: 源文件位置，默认当前目录下的template文件夹。
destination: 目标位置，默认当前目录的output文件夹。
metadata: 模板替换数据。
filters: 模板文件过滤规则。

// 错误类型status
0: Finish Compile.
-1: Metadata is empty.
-2: source is not exist.
```
npm package: @kythuen/lib-vue-test
Description: A Vue components library
Latest version: 0.0.1

# signature-pad-vue

> A instant signature pad for mobile project built with Vue.

### 安装

```shell
npm install signature-pad-vue --save 或 yarn add signature-pad-vue
```

### 全局引用

```
// main.js
import Vue from 'vue'
import SignaturePad from 'signature-pad-vue'
import 'signature-pad-vue/lib/style.css'

Vue.use(SignaturePad)
```

### 按需引用

#### 1.可以使用以下方法单独引入某组件
```
import SignaturePad from 'signature-pad-vue/lib/signature-pad'
import 'signature-pad-vue/lib/signature-pad/style'
```

#### 2.配合webpack插件`babel-plugin-import`使用
安装`babel-plugin-import`插件
```shell
npm install babel-plugin-import --save-dev 或 yarn add -D babel-plugin-import
```

配置`.babelrc`文件
```
// .babelrc
{
    ...,
    "plugins": [
        ...,
        [
            "import",
            {
                "libraryName": "signature-pad-vue",
                "style": true,
                "libraryDirectory": "lib",
                "camel2DashComponentName": true,
                "camel2UnderlineComponentName": false
            }
        ]
    ]
}
```

引入
```
// main.js
import Vue from 'vue'
import { SignaturePad } from 'signature-pad-vue'

Vue.use(SignaturePad)
```