# @ngx-devtools/bundle

> A library that bundles your angular code, and publish as your library

Latest version **0.7.2** (published 2018-02-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install @ngx-devtools/bundle
pnpm add @ngx-devtools/bundle
yarn add @ngx-devtools/bundle
bun add @ngx-devtools/bundle
```

## 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.7.2 |
| Published | 2018-02-17 |
| First published | 2018-01-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 13.8 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | ngx-devtools |

## Links

- npm: https://www.npmjs.com/package/@ngx-devtools/bundle
- Repository: https://github.com/aelbore/ngx-bundle
- Homepage: https://github.com/aelbore/ngx-bundle#readme
- Issues: https://github.com/aelbore/ngx-bundle/issues
- npm.io page: https://npm.io/package/@ngx-devtools/bundle

## Dependencies (5)

- [uglify-js](https://npm.io/package/uglify-js.md) 3.3.11
- [gulp-rollup](https://npm.io/package/gulp-rollup.md) 2.16.2
- [@angular/compiler](https://npm.io/package/@angular/compiler.md) 5.2.5
- [@ngx-devtools/common](https://npm.io/package/@ngx-devtools/common.md) latest
- [@angular/compiler-cli](https://npm.io/package/@angular/compiler-cli.md) 5.2.5

## Recent versions

- 0.7.2 (latest) — 2018-02-17
- 0.7.1 — 2018-02-16
- 0.7.0 — 2018-02-03
- 0.6.0 — 2018-02-01
- 0.5.0 — 2018-01-31
- 0.4.0 — 2018-01-30
- 0.3.0 — 2018-01-28
- 0.2.0 — 2018-01-27
- 0.1.3 — 2018-01-27
- 0.1.2 — 2018-01-27
- 0.1.0 — 2018-01-25
- 0.0.8 — 2018-01-24

## README

# ngx-bundle
A library that bundles your angular code, and publish as your library

### Getting Started
<br />

#### Requirements
+ Nodejs version 7+
+ Git Bash
<br />

##### Install
```
npm install --save-dev ngx-bundle
```  

##### Steps
+ All your code should be in `src` folder
+ You should have `index.ts` at root level of your `src` folder
+ `index.ts` file should have all exported component, modules, directives, pipes and etc. 

##### Bundle your code
```javascript
const gulp = require('gulp');
const ngxBundle = require('ngx-bundle');

gulp.task('bundle', async (done) => {
  await Promise.all([ await ngxBundle.rimraf('.tmp'), await ngxBundle.rimraf('dist') ])
    .then(() => ngxBundle.bundle())
    .then(() => ngxBundle.rimraf('.tmp'));
});
```

##### Example code
+ Please see my example code on angular elements on how to use `ngx-bundle` <br />
[Profile Card Angular Elements](https://github.com/aelbore/profile-card)

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