0.0.8 • Published 8 years ago
ngx-bundle v0.0.8
ngx-bundle
A library that bundles your angular code, and publish as your library
Getting Started
Requirements
- Nodejs version 7+
- Git Bash
Install
npm install --save-dev ngx-bundleSteps
- All your code should be in
srcfolder - You should have
index.tsat root level of yoursrcfolder index.tsfile should have all exported component, modules, directives, pipes and etc.
Bundle your code
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-bundleProfile Card Angular Elements