Skip to content

Latest commit

 

History

History
82 lines (56 loc) · 2.07 KB

DEVELOPMENT.md

File metadata and controls

82 lines (56 loc) · 2.07 KB

Developer Instructions

Getting started

Run npm install in order to install all required dependencies and initialize the Git hooks.

Development

Performing a local build

npm run build

For a production build use the build:prod script. Either way the output will be available in dist/{core,moment}.

Running the sample app locally

The sample application will automatically launch on http://localhost:4200/.

npm run build
npm run start

Using the local build in another project

Navigate into the project you want to link mat-datetimepicker to.

cd my-project

Add the dependencies to your package.json:

{
  "dependencies": {
    "@mat-datetimepicker/core": "8.0.0",
    "@mat-datetimepicker/moment": "8.0.0"
  }
}

Link the local built modules:

npm link "@mat-datetimepicker/core"
npm link "@mat-datetimepicker/moment"

Committing

This project uses a mix of @commitlint and semantic-release for automated versioning and deployment.

Developers have to follow so-called conventional commit messages, or we will not accept changes! In short: The commit message has to follow this pattern (the ? marks an optional part):

type(scope?): subject

body?

footer?

All available types are documented in .versionrc.json. A brief summary of conventional commits is available at their website.

Git hooks

If you are not yet familiar with conventional commits: no worries! We have added a Git hooks which will validate your commit message - and notify you about any mistakes made.