Centeva Core is a Common Angular library.
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
To get a local copy up and running follow these simple steps.
This is an example of how to list things you need to use the software and how to install them.
CentevaCore is an npm package and can be added to a project with npm.
-
npm
npm i centeva-core -D
Once installed you can import modules in your application.
import { LoadingModule } from 'centeva-core';
@NgModule({
imports: [
LoadingModule
]
})
export class AppModule{}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.
Please deploy an accurate version when publishing your changes, see below.
MAJOR.MINOR.PATCH === 1.1.1
- MAJOR version when you make incompatible API changes.
- MINOR version when you add functionality in a backwards compatible manner.
- PATCH version when you make backwards compatible bug fixes.
-
Clone the repo
git clone https://bitbucket.org/centeva/centeva-angular.git
-
Install NPM packages
npm install
NPM LINK is used to test centeva-core package locally without having to package and publish.
- CD to the /dist/centeva-core folder.
- Run
npm link - Within your test project that you would like to use centeva-core run
npm link centeva-core. - Anytime you make a change in centeva-core run
npm run buildto rebuild the /dist folder. - You will need to re-run your watch command in your centeva-core consuming application after any changes.
- If you get "NG0203: inject() must be called from an injection context" errors
when running your application, add
"preserveSymlinks": truetoangular.jsonin thearchitect:build:optionssection of your project.