Skip to content

Commit

Permalink
feat: rename the npm package
Browse files Browse the repository at this point in the history
BREAKING CHANGE: the package name has been renamed from angular2-bootstrap-confirm to angular-confirmation-popover

Closes #22
  • Loading branch information
Matt Lewis committed Nov 8, 2016
1 parent ef5fcf4 commit d1cbaa5
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 92 deletions.
122 changes: 61 additions & 61 deletions CHANGELOG.md

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Angular2 bootstrap confirm
[![Build Status](https://travis-ci.org/mattlewis92/angular2-bootstrap-confirm.svg?branch=master)](https://travis-ci.org/mattlewis92/angular2-bootstrap-confirm)
[![npm version](https://badge.fury.io/js/angular2-bootstrap-confirm.svg)](http://badge.fury.io/js/angular2-bootstrap-confirm)
[![devDependency Status](https://david-dm.org/mattlewis92/angular2-bootstrap-confirm/dev-status.svg)](https://david-dm.org/mattlewis92/angular2-bootstrap-confirm#info=devDependencies)
[![GitHub issues](https://img.shields.io/github/issues/mattlewis92/angular2-bootstrap-confirm.svg)](https://github.com/mattlewis92/angular2-bootstrap-confirm/issues)
[![GitHub stars](https://img.shields.io/github/stars/mattlewis92/angular2-bootstrap-confirm.svg)](https://github.com/mattlewis92/angular2-bootstrap-confirm/stargazers)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/mattlewis92/angular2-bootstrap-confirm/master/LICENSE)
# Angular confirmation popover
[![Build Status](https://travis-ci.org/mattlewis92/angular-confirmation-popover.svg?branch=master)](https://travis-ci.org/mattlewis92/angular-confirmation-popover)
[![npm version](https://badge.fury.io/js/angular-confirmation-popover.svg)](http://badge.fury.io/js/angular-confirmation-popover)
[![devDependency Status](https://david-dm.org/mattlewis92/angular-confirmation-popover/dev-status.svg)](https://david-dm.org/mattlewis92/angular-confirmation-popover#info=devDependencies)
[![GitHub issues](https://img.shields.io/github/issues/mattlewis92/angular-confirmation-popover.svg)](https://github.com/mattlewis92/angular-confirmation-popover/issues)
[![GitHub stars](https://img.shields.io/github/stars/mattlewis92/angular-confirmation-popover.svg)](https://github.com/mattlewis92/angular-confirmation-popover/stargazers)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/mattlewis92/angular-confirmation-popover/master/LICENSE)

## Demo
https://mattlewis92.github.io/angular2-bootstrap-confirm/
https://mattlewis92.github.io/angular-confirmation-popover/

## Table of contents

Expand All @@ -19,7 +19,7 @@ https://mattlewis92.github.io/angular2-bootstrap-confirm/

## About

A simple angular2 directive to display a bootstrap styled confirmation popover when an element is clicked.
A simple angular 2.0+ directive to display a bootstrap styled confirmation popover when an element is clicked.

Pull requests are welcome.

Expand All @@ -29,14 +29,14 @@ Pull requests are welcome.

Install through npm:
```
npm install --save angular2-bootstrap-confirm
npm install --save angular-confirmation-popover
```

Then use it in your app on a component:

```typescript
import {NgModule, Component} from '@angular/core';
import {ConfirmationPopoverModule} from 'angular2-bootstrap-confirm';
import {ConfirmationPopoverModule} from 'angular-confirmation-popover';

// first add it to your apps module
@NgModule({
Expand Down Expand Up @@ -77,13 +77,13 @@ class MyComponent {

```

You may also find it useful to view the [demo source](https://github.com/mattlewis92/angular2-bootstrap-confirm/blob/master/demo/demo.ts).
You may also find it useful to view the [demo source](https://github.com/mattlewis92/angular-confirmation-popover/blob/master/demo/demo.ts).

### Usage without a module bundler
```
<script src="node_modules/angular2-bootstrap-confirm/dist/umd/angular2-bootstrap-confirm.js"></script>
<script src="node_modules/angular-confirmation-popover/dist/umd/angular-confirmation-popover.js"></script>
<script>
// everything is available under the ng2BootstrapConfirm namespace
// everything is available under the angularConfirmationPopover namespace
</script>
```

Expand All @@ -96,9 +96,9 @@ You will need to add this line in your server bootstrap code to get this module

## Documentation
All documentation is auto-generated from the source via typedoc and can be viewed here:
https://mattlewis92.github.io/angular2-bootstrap-confirm/docs/
https://mattlewis92.github.io/angular-confirmation-popover/docs/

The main confirm directive options can be viewed [here](https://mattlewis92.github.io/angular2-bootstrap-confirm/docs/classes/confirm.html).
The main confirm directive options can be viewed [here](https://mattlewis92.github.io/angular-confirmation-popover/docs/classes/confirm.html).

## Development

Expand Down
8 changes: 4 additions & 4 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</head>
<body>

<a href="https://github.com/mattlewis92/angular2-bootstrap-confirm" class="hidden-xs">
<a href="https://github.com/mattlewis92/angular-confirmation-popover" class="hidden-xs">
<img
style="position: absolute; top: 0; right: 0; border: 0; z-index: 2000"
src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67"
Expand All @@ -19,12 +19,12 @@
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Angular2 Bootstrap Confirm</a>
<a class="navbar-brand" href="#">Angular 2.0+ Confirmation Popover</a>
</div>
<ul class="nav navbar-nav hidden-xs">
<li><a href="#demo">Demo</a></li>
<li><a href="https://github.com/mattlewis92/angular2-bootstrap-confirm#installation">Installation</a></li>
<li><a href="https://mattlewis92.github.io/angular2-bootstrap-confirm/docs/">Documentation</a></li>
<li><a href="https://github.com/mattlewis92/angular-confirmation-popover#installation">Installation</a></li>
<li><a href="https://mattlewis92.github.io/angular-confirmation-popover/docs/">Documentation</a></li>
</ul>
</div>
</nav>
Expand Down
4 changes: 2 additions & 2 deletions karma.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function(config) {

// list of files / patterns to load in the browser
files: [
'test/angular2-bootstrap-confirm.spec.ts'
'test/angular-confirmation-popover.spec.ts'
],

// list of files to exclude
Expand All @@ -23,7 +23,7 @@ module.exports = function(config) {
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'test/angular2-bootstrap-confirm.spec.ts': ['webpack', 'sourcemap']
'test/angular-confirmation-popover.spec.ts': ['webpack', 'sourcemap']
},

webpack: {
Expand Down
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "angular2-bootstrap-confirm",
"name": "angular-confirmation-popover",
"version": "1.0.4",
"description": "An angular2 bootstrap confirmation popover",
"main": "./dist/umd/angular2-bootstrap-confirm.js",
"description": "An angular 2.0+ bootstrap confirmation popover",
"main": "./dist/umd/angular-confirmation-popover.js",
"module": "./dist/esm/src/index.js",
"typings": "./dist/esm/src/index.d.ts",
"scripts": {
Expand All @@ -24,20 +24,22 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/mattlewis92/angular2-bootstrap-confirm.git"
"url": "git+https://github.com/mattlewis92/angular-confirmation-popover.git"
},
"keywords": [
"angular",
"angular2",
"bootstrap",
"popover",
"confirm"
"confirm",
"confirmation"
],
"author": "Matt Lewis",
"license": "MIT",
"bugs": {
"url": "https://github.com/mattlewis92/angular2-bootstrap-confirm/issues"
"url": "https://github.com/mattlewis92/angular-confirmation-popover/issues"
},
"homepage": "https://github.com/mattlewis92/angular2-bootstrap-confirm#readme",
"homepage": "https://github.com/mattlewis92/angular-confirmation-popover#readme",
"devDependencies": {
"@angular/common": "~2.1.1",
"@angular/compiler": "~2.1.1",
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions webpack.config.umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ module.exports = {
entry: __dirname + '/src/index.ts',
output: {
path: __dirname + '/dist/umd',
filename: 'angular2-bootstrap-confirm.js',
filename: 'angular-confirmation-popover.js',
libraryTarget: 'umd',
library: 'ng2BootstrapConfirm'
library: 'angularConfirmationPopover'
},
externals: {
'@angular/core': {
Expand Down

0 comments on commit d1cbaa5

Please sign in to comment.