# karma-filemap-preprocessor

> karma preprocessor for create files map

Latest version **0.2.0** (published 2022-02-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install karma-filemap-preprocessor
pnpm add karma-filemap-preprocessor
yarn add karma-filemap-preprocessor
bun add karma-filemap-preprocessor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2022-02-17 |
| First published | 2019-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | june01 |
| Maintainers | juneandgreen |
| Keywords | karma, preprocessor |

## Links

- npm: https://www.npmjs.com/package/karma-filemap-preprocessor
- Repository: https://github.com/JuneAndGreen/karma-filemap-preprocessor
- Homepage: https://github.com/JuneAndGreen/karma-filemap-preprocessor#readme
- Issues: https://github.com/JuneAndGreen/karma-filemap-preprocessor/issues
- npm.io page: https://npm.io/package/karma-filemap-preprocessor

## Dependencies (1)

- [miniprogram-compiler](https://npm.io/package/miniprogram-compiler.md) latest

## Recent versions

- 0.2.0 (latest) — 2022-02-17
- 0.1.1 — 2019-11-28
- 0.1.0 — 2019-02-24
- 0.0.2 — 2019-01-12
- 0.0.1 — 2019-01-12

## README

# 简介

将文件内容挂载到 `window.__FILE_MAP__` 之下。

> PS：如果文件中包含 `.wxml` 后缀的模板文件，则会被编译成小程序可用的模板函数。编译根路径为 karma 配置中的 basePath 字段。

## 使用方式

```
npm install --save-dev karma-filemap-preprocessor
```

```
// karma config
module.exports = {
    // ...
    files: [
      'src/**/*',
      // ...
    ],
    preprocessors: {
        "src/**/*": ['filemap'],
        // ...
    },
    // ...
};
```

## 协议

MIT

---
_Source: https://npm.io/package/karma-filemap-preprocessor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
