@bmat-shared-libs/angular-luxon
v11.2.14
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.
Downloads
3
Readme
@bmat-shared-libs/@bmat-shared-libs/angular-luxon
This library was generated with Angular CLI version 7.2.0.
Uses luxon
as a smaller alternative to moment
to handle timezones. Luxon uses modern browser
APIs to compute the time offsets of the timezones. This isn't available in legacy brosers like IE11. To support
those browser, install the global bundle and load using the differential technique of nomodule
:
<script
nomodule
src="https://unpkg.com/date-time-format-timezone@latest/build/browserified/date-time-format-timezone-complete-min.js"
></script>
Developing
Build
Run ng build @bmat-shared-libs/angular-luxon
to build the project. The build artifacts will be stored in the dist/bmat
directory.
Publishing
After building your library with ng build @bmat-shared-libs/angular-luxon
, go to the dist folder cd dist/@bmat-shared-libs/angular-luxon
and run npm publish
.
Running unit tests
Jest will catch the tests with the usual
npm run test