Skip to content

Commit

Permalink
refactor: rename package to ngx-moment
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Apr 11, 2018
1 parent 5b9f458 commit d02fe26
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Expand Up @@ -9,7 +9,7 @@ Please describe the issue and steps to reproduce, preferably with a code sample



*Ensure your issue is isolated to angular2-moment. Issues involving third party tools will be closed unless submitted by the tool's author/maintainer.*
*Ensure your issue is isolated to ngx-moment. Issues involving third party tools will be closed unless submitted by the tool's author/maintainer.*

**Environment:**

Expand Down
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
@@ -1,9 +1,9 @@
# Contributing Guide

Contributing to `angular2-moment` is fairly easy. This document shows you how to
Contributing to `ngx-moment` is fairly easy. This document shows you how to
get the project, run all provided tests and generate a production ready build.

It also covers provided npm scripts, that help you developing on `angular2-moment`.
It also covers provided npm scripts, that help you developing on `ngx-moment`.

## Dependencies

Expand All @@ -16,20 +16,20 @@ on you machine:

## Installation

To get the source of `angular2-moment` clone the git repository via:
To get the source of `ngx-moment` clone the git repository via:

`git clone https://github.com/urish/angular2-moment`
`git clone https://github.com/urish/ngx-moment`

This will clone the complete source to your local machine. Navigate to the project folder
and install all needed dependencies via **npm**:

`npm install`

Well done! angular2-moment is now installed and ready to be built.
Well done! ngx-moment is now installed and ready to be built.

## Building

`angular2-moment` comes with a few **npm scripts** which help you to automate
`ngx-moment` comes with a few **npm scripts** which help you to automate
the development process. The following npm scripts are provided:

#### npm test
Expand Down
14 changes: 7 additions & 7 deletions README.md
@@ -1,8 +1,8 @@
# angular2-moment
# ngx-moment

moment.js pipes for Angular

[![Build Status](https://travis-ci.org/urish/angular2-moment.png?branch=master)](https://travis-ci.org/urish/angular2-moment)
[![Build Status](https://travis-ci.org/urish/ngx-moment.png?branch=master)](https://travis-ci.org/urish/ngx-moment)

This module works with Angular 2.0 and above.

Expand All @@ -11,7 +11,7 @@ For the AngularJS version of this module, please see [angular-moment](https://gi
Installation
------------

`npm install --save angular2-moment`
`npm install --save ngx-moment`

If you use typescript 1.8, and [typings](https://github.com/typings/typings), you may also need to install typings for moment.js:

Expand All @@ -35,7 +35,7 @@ packages: {
main: './moment.js',
defaultExtension: 'js'
},
'angular2-moment': {
'ngx-moment': {
main: './index.js',
defaultExtension: 'js'
}
Expand All @@ -48,7 +48,7 @@ Usage
Import `MomentModule` into your app's modules:

``` typescript
import { MomentModule } from 'angular2-moment';
import { MomentModule } from 'ngx-moment';

@NgModule({
imports: [
Expand All @@ -57,7 +57,7 @@ import { MomentModule } from 'angular2-moment';
})
```

This makes all the `angular2-moment` pipes available for use in your app components.
This makes all the `ngx-moment` pipes available for use in your app components.

Available pipes
---------------
Expand Down Expand Up @@ -290,7 +290,7 @@ Complete Example
import { NgModule, Component } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { MomentModule } from 'angular2-moment';
import { MomentModule } from 'ngx-moment';

@Component({
selector: 'app',
Expand Down
15 changes: 8 additions & 7 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "angular2-moment",
"version": "1.8.0",
"description": "Moment.JS pipes for Angular2 (timeago and more)",
"name": "ngx-moment",
"version": "2.0.0-alpha.0",
"description": "Moment.JS pipes for Angular (timeago and more)",
"main": "index.js",
"typings": "./index.d.ts",
"files": [
Expand Down Expand Up @@ -76,18 +76,19 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/urish/angular2-moment.git"
"url": "git+https://github.com/urish/ngx-moment.git"
},
"keywords": [
"angular2",
"angular",
"timeago",
"momentjs"
],
"author": "Uri Shaked",
"license": "MIT",
"bugs": {
"url": "https://github.com/urish/angular2-moment/issues"
"url": "https://github.com/urish/ngx-moment/issues"
},
"homepage": "https://github.com/urish/angular2-moment#readme",
"homepage": "https://github.com/urish/ngx-moment#readme",
"peerDependencies": {
"@angular/core": ">=2.0.0 <6.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/add.pipe.ts
@@ -1,4 +1,4 @@
/* angular2-moment (c) 2015, 2016 Uri Shaked / MIT Licence */
/* ngx-moment (c) 2015, 2016 Uri Shaked / MIT Licence */

import {Pipe, ChangeDetectorRef, PipeTransform} from '@angular/core';
import * as moment from 'moment';
Expand Down
2 changes: 1 addition & 1 deletion src/calendar.pipe.ts
@@ -1,4 +1,4 @@
/* angular2-moment (c) 2015, 2016 Uri Shaked / MIT Licence */
/* ngx-moment (c) 2015, 2016 Uri Shaked / MIT Licence */

import { Pipe, ChangeDetectorRef, PipeTransform, EventEmitter, OnDestroy, NgZone } from '@angular/core';
import * as moment from 'moment';
Expand Down
2 changes: 1 addition & 1 deletion src/date-format.pipe.ts
@@ -1,4 +1,4 @@
/* angular2-moment (c) 2015, 2016 Uri Shaked / MIT Licence */
/* ngx-moment (c) 2015, 2016 Uri Shaked / MIT Licence */

import {Pipe, ChangeDetectorRef, PipeTransform} from '@angular/core';
import * as moment from 'moment';
Expand Down
2 changes: 1 addition & 1 deletion src/difference.pipe.ts
@@ -1,4 +1,4 @@
/* angular2-moment (c) 2015, 2016 Uri Shaked / MIT Licence */
/* ngx-moment (c) 2015, 2016 Uri Shaked / MIT Licence */

import {Pipe, ChangeDetectorRef, PipeTransform} from '@angular/core';
import * as moment from 'moment';
Expand Down
2 changes: 1 addition & 1 deletion src/from-unix.pipe.ts
@@ -1,4 +1,4 @@
/* angular2-moment (c) 2015, 2016 Uri Shaked / MIT Licence */
/* ngx-moment (c) 2015, 2016 Uri Shaked / MIT Licence */

import {Pipe, ChangeDetectorRef, PipeTransform} from '@angular/core';
import * as moment from 'moment';
Expand Down
2 changes: 1 addition & 1 deletion src/from-utc.pipe.ts
@@ -1,4 +1,4 @@
/* angular2-moment (c) 2015, 2016 Uri Shaked / MIT Licence */
/* ngx-moment (c) 2015, 2016 Uri Shaked / MIT Licence */

import {Pipe, PipeTransform} from '@angular/core';
import * as moment from 'moment';
Expand Down
2 changes: 1 addition & 1 deletion src/subtract.pipe.ts
@@ -1,4 +1,4 @@
/* angular2-moment (c) 2015, 2016 Uri Shaked / MIT Licence */
/* ngx-moment (c) 2015, 2016 Uri Shaked / MIT Licence */

import {Pipe, ChangeDetectorRef, PipeTransform} from '@angular/core';
import * as moment from 'moment';
Expand Down
2 changes: 1 addition & 1 deletion src/time-ago.pipe.ts
@@ -1,4 +1,4 @@
/* angular2-moment (c) 2015, 2016 Uri Shaked / MIT Licence */
/* ngx-moment (c) 2015, 2016 Uri Shaked / MIT Licence */

import {Pipe, ChangeDetectorRef, PipeTransform, OnDestroy, NgZone} from '@angular/core';
import * as moment from 'moment';
Expand Down

0 comments on commit d02fe26

Please sign in to comment.