Skip to content

Commit

Permalink
Angular 5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Akopkokhyants authored and Sergey Akopkokhyants committed Nov 22, 2017
1 parent 620cd8c commit 54ba3ba
Show file tree
Hide file tree
Showing 19 changed files with 25,803 additions and 132 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ coverage
*.metadata.json
bundles
.vscode
dist

#################
## JetBrains
Expand Down
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ notifications:
email: false

node_js:
- '6'
- '8'

branches:
except:
Expand All @@ -28,9 +28,6 @@ before_script:
install:
- yarn

after_success:
- npm run semantic-release

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,44 @@ Angular 2 Drag-and-Drop without dependencies.
Follow me [![twitter](https://img.shields.io/twitter/follow/akopkokhyants.svg?style=social&label=%20akopkokhyants)](https://twitter.com/akopkokhyants) to be notified about new releases.

[![Build Status](https://travis-ci.org/akserg/ng2-dnd.svg?branch=master)](https://travis-ci.org/akserg/ng2-dnd)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![Dependency Status](https://david-dm.org/akserg/ng2-dnd.svg)](https://david-dm.org/akserg/ng2-dnd)
[![devDependency Status](https://david-dm.org/akserg/ng2-dnd/dev-status.svg)](https://david-dm.org/akserg/ng2-dnd#info=devDependencies)
[![Known Vulnerabilities](https://snyk.io/test/github/akserg/ng2-dnd/badge.svg)](https://snyk.io/test/github/akserg/ng2-dnd)

_Some of these APIs and Components are not final and are subject to change!_

## Transpilation to Angular Package Format
The library uses [ng-packagr](https://github.com/dherges/ng-packagr) to transpile into the Angular Package Format:
- Bundles library in `FESM2015`, `FESM5`, and `UMD` formats
- The npm package can be consumed by `Angular CLI`, `Webpack`, or `SystemJS`
- Creates type definitions (`.d.ts`)
- Generates Ahead-of-Time metadata (`.metadata.json`)
- Auto-discovers and bundles secondary entry points such as `@my/foo`, `@my/foo/testing`, `@my/foo/bar`

## Installation
```bash
npm install ng2-dnd --save
```

## Demo
_The Demo is under construction. Will be available shortly!_
<!--
Simple examples using ng2-dnd:
- with SystemJS in [ng2-systemjs-demo](https://github.com/akserg/ng2-systemjs-demo)
- with Webpack in [ng2-webpack-demo](https://github.com/akserg/ng2-webpack-demo)
Online demo available [here](http://akserg.github.io/ng2-webpack-demo)
Plunker demo available [here](http://embed.plnkr.co/JbG8Si)
-->

## Usage
If you use SystemJS to load your files, you might have to update your config:

```js
System.config({
map: {
'ng2-dnd': 'node_modules/ng2-dnd/bundles/index.umd.js'
'ng2-dnd': 'node_modules/ng2-dnd/bundles/ng2-dnd.umd.js'
}
});
```
Expand Down
Loading

0 comments on commit 54ba3ba

Please sign in to comment.