0.0.4 • Published 4 years ago

vr-theme-library-npm v0.0.4

Weekly downloads
16
License
-
Repository
-
Last release
4 years ago

VrThemeLibrary

This library was generated with Angular CLI version 8.2.14.

Screenshot

Install

You need to install this library or theme and import it to your app.module.ts in imports section.

npm install vr-theme-library-npm --save

then, open your app.module.ts and import and add it to the imports section:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';

import { FormsModule, ReactiveFormsModule } from '@angular/forms';

import { VrThemeLibraryModule } from 'vr-theme-library-npm'; // this line you need

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    VrThemeLibraryModule, // this line you need
    FormsModule,
    ReactiveFormsModule,
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

After that you need to install bootstrap & font-awesome.

npm install bootstrap@4.4.1
npm i font-awesome@4.7.0

Code scaffolding

Run ng generate component component-name --project vr-theme-library to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project vr-theme-library.

Note: Don't forget to add --project vr-theme-library or else it will be added to the default project in your angular.json file.

Build

Run ng build vr-theme-library to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build vr-theme-library, go to the dist folder cd dist/vr-theme-library and run npm publish.

Running unit tests

Run ng test vr-theme-library to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.