0.6.4 • Published 7 years ago

tsg-garage v0.6.4

Weekly downloads
162
License
-
Repository
-
Last release
7 years ago

The Garage

A collection of various components and services created for use across multiple angular and Ionic applications.

Example Site

Examples

How to install

Install Garage

-npm install tsg-garage --save

Dependancies

  • Gulp

Garage Module Loader

In order to utilize garage components in your app you must add a loader script into your build process. The script below will copy the components out of the npm package and into a folder called 'garage' in your 'src' folder. This allows the normal Ionic App Scripts to compile the garage module into your app.

Add Gulp Task

Add the following gulp task to copy garage module into src folder

gulp.task('default', function () {
    console.log("Running: Copy TSG-Garage from Node_modules to src/garage");
    return gulp.src('node_modules/tsg-garage/src/garage/**')
               .pipe( gulp.dest('src/garage') );
});

Update NPM Run Scripts to Include Gulp Task

TODO: List a number of useful npm scripts to Add

Link to Module

Include the Garage in any module you want to utilize one of it's features

import { GarageModule } from '../../garage/garage.module';

@NgModule({
  declarations: [
    ],
  imports: [
    GarageModule
  ],
  exports: [
  ]
})
export class ImageBoxPageModule {}