Skip to content
No description, website, or topics provided.
TypeScript JavaScript HTML CSS
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
e2e
projects/marco-eckstein/angular-lib-common
src
.editorconfig
.gitignore
CHANGELOG.md
LICENSE.txt
README.md
angular.json
browserslist
karma.conf.js
package-lock.json
package.json
tsconfig.app.json
tsconfig.json
tsconfig.spec.json
tslint.json

README.md

angular-lib

Conventional Commits

Multi-package repository for Angular library packages. So far, there is only one package.

The main app angular-lib-app is a demo app for contained Angular library packages.

Package @marco-eckstein/angular-lib-common

npm version npm downloads

Angular library for common tasks

ExternalHRefModule

External links with target="blank" are potentially unsafe. After importing this module, a directive will be applied to all your links, making them safe by applying rel="noopener noreferrer". You can configure the module with various options. E.g., you can configure it to apply target="blank" to all external links, potentially relieving you from verbosity as in
<a href="http://my-url.com" target="_blank" rel="noopener noreferrer">
vs.
<a href="http://my-url.com">.

See the code documentation for details about usage and configuration:

Development

Build

Run npm run verify to build, lint and test everything and also build the documentation.

For finer-grained commands, see the scripts in ./package.json.

Note that broken library build output has been observed in the past, probably due to a bug in ng build. You may only notice this when you try to build the main/demo app. Running npm run verify (or a finer-grained build command) multiple times (typically twice) may help.

Run

After building, run npm start to run and open the demo app.

Bump version

Before bumping the version, make sure the copyright year range in the license file is up to date.

You have to set the next version manually in the library packages' package.json files. Then, run npm run standard-version instead of npm version to bump the version. Make sure the manually and automatically set versions match.

Publish

Run npm run publish-lib to verify and publish the libraries to npm.

You can’t perform that action at this time.