# jr-pack

> ![https://img.shields.io/badge/vscode-1.25.0-brightgreen.svg](https://img.shields.io/badge/vscode-1.30.2-brightgreen.svg) ![https://img.shields.io/badge/typescript-passing-blue.svg](https://img.shields.io/badge/javascript-passing-blue.svg)

Latest version **1.0.1** (published 2019-03-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install jr-pack
pnpm add jr-pack
yarn add jr-pack
bun add jr-pack
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-03-04 |
| First published | 2019-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 12.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | BT |
| Maintainers | coreywang |

## Links

- npm: https://www.npmjs.com/package/jr-pack
- npm.io page: https://npm.io/package/jr-pack

## Dependencies (6)

- [babel](https://npm.io/package/babel.md) ^6.23.0
- [bt-utils](https://npm.io/package/bt-utils.md) ^1.1.5
- [nprogress](https://npm.io/package/nprogress.md) ^0.2.0
- [html-minifier](https://npm.io/package/html-minifier.md) ^3.5.21
- [babel-polyfill](https://npm.io/package/babel-polyfill.md) ^6.26.0
- [extract-text-webpack-plugin](https://npm.io/package/extract-text-webpack-plugin.md) ^2.1.2

## Recent versions

- 1.0.1 (latest) — 2019-03-04
- 1.0.0 — 2019-03-04

## README

![https://img.shields.io/badge/vscode-1.25.0-brightgreen.svg](https://img.shields.io/badge/vscode-1.30.2-brightgreen.svg) ![https://img.shields.io/badge/typescript-passing-blue.svg](https://img.shields.io/badge/javascript-passing-blue.svg)

## BT-Pack
可伸缩的前端模板组合打包工具，提供多页组件化开发方式，同时支持Vue及Components开发。
## 安装
cnpm | npm install bt-pack
## 运行
在根目录中新建任何Js文件，复制以下内容

- const pack = require('bt-pack');
- require('bt-utils');
- // 监听的主目录
- global.listenDirectory = './app/';
- // 监听的模板路径
- global.templateDirectory = './app/teamplate/';
- // 公共模板目录
- global.commonDirectory = './app/teamplate/common/';
- // 打包输出目录
- global.outDirectory = '/dist/';
- // 是否格式化代码
- global.formatHtml = false;
- // 是否单文件改变打包
- global.singleListen = false;
- // 是否包括公共组件
- global.hasCommon = false;
- // 是否开启px转Em模式
- global.hasLessPx2Em = false
- // 开始运行
- pack.run();

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