Skip to content

Centeva/Centeva-Angular

Repository files navigation

CentevaCore

Centeva Core is a Common Angular library.

Table of Contents

  1. About the Project
  2. Getting Started
  3. Usage
  4. Running Tests
  5. Versioning
  6. Contributing

About The Project

CentevaCore is a collection of Angular pipes, directives, services, and Components designed to help others do common things across multiple of our projects. NPM Package

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

Installation

CentevaCore is an npm package and can be added to a project with npm.

  • npm

    npm i centeva-core -D

Usage

Once installed you can import modules in your application.

import { LoadingModule } from 'centeva-core';

@NgModule({
  imports: [
    LoadingModule
  ]
})
export class AppModule{}

Running Tests

Tests are written in karma/jasmine and can be ran with npm test. There is also a ci specific test with the command npm run test-ci. There is a PR check that will automatically run tests when a Pull Request is created.

Versioning

Please deploy an accurate version when publishing your changes, see below.

MAJOR.MINOR.PATCH === 1.1.1

  1. MAJOR version when you make incompatible API changes.
  2. MINOR version when you add functionality in a backwards compatible manner.
  3. PATCH version when you make backwards compatible bug fixes.

Contributing

Setup

  1. Clone the repo

    git clone https://bitbucket.org/centeva/centeva-angular.git
  2. Install NPM packages

    npm install

NPM link

NPM LINK is used to test centeva-core package locally without having to package and publish.

  1. CD to the /dist/centeva-core folder.
  2. Run npm link
  3. Within your test project that you would like to use centeva-core run npm link centeva-core.
  4. Anytime you make a change in centeva-core run npm run build to rebuild the /dist folder.
  5. You will need to re-run your watch command in your centeva-core consuming application after any changes.
  6. If you get "NG0203: inject() must be called from an injection context" errors when running your application, add "preserveSymlinks": true to angular.json in the architect:build:options section of your project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors