Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Commit

Permalink
feat: switchted to @angular/cli and ng-packagr
Browse files Browse the repository at this point in the history
feat: requires @angular/core v7
  • Loading branch information
osahner committed Feb 25, 2019
1 parent eee09b5 commit 6e37cca
Show file tree
Hide file tree
Showing 40 changed files with 8,210 additions and 12,268 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
20 changes: 0 additions & 20 deletions .eslintrc.yml

This file was deleted.

71 changes: 39 additions & 32 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,39 +1,46 @@
# Node
node_modules/*
npm-debug.log
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
/node_modules

# TypeScript
init-test-bed.spec.js
src/*.js
src/*.map
src/*.d.ts
# profiling files
chrome-profiler-events.json
speed-measure-plugin.json

# JetBrains
.idea
# IDEs and editors
/.idea
.project
.settings
*.iml
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# VS Code
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# Windows
Thumbs.db
Desktop.ini

# Mac
# System Files
.DS_Store

# Ngc generated files
**/*.ngfactory.ts

# Build files
dist/*
playground/index.js

# Playground tmp files
.playground
bs-config.json

coverage/

Thumbs.db
32 changes: 0 additions & 32 deletions .npmignore

This file was deleted.

36 changes: 23 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
language: node_js
sudo: required
dist: trusty
sudo: false

language: node_js
node_js:
- 'v8.9.3'
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
before_script:
- npm run build
- "10"

addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable

cache:
directories:
- ./node_modules

install:
- yarn global add codecov
- yarn install

script:
- yarn test --no-watch --no-progress --code-coverage --browsers=ChromeHeadlessCI
- codecov
7 changes: 0 additions & 7 deletions .yo-rc.json

This file was deleted.

19 changes: 7 additions & 12 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
# ngx-httpclient-busy

A global Angular 6 HTTP Interceptor with decorator to show staus of all HttpClient requests (e.g. busy/working indicator)
> A global Angular 6 HTTP Interceptor with decorator to show staus of all HttpClient requests (e.g. busy/working indicator)
Demo on [stackblitz](https://stackblitz.com/edit/angular-9ykyid?embed=1&file=src/app/app.component.html)

[![Build Status](https://travis-ci.org/osahner/ngx-httpclient-busy.svg?branch=master)](https://travis-ci.org/osahner/ngx-httpclient-busy)
[![npm version](https://badge.fury.io/js/ngx-httpclient-busy.svg)](https://badge.fury.io/js/ngx-httpclient-busy)
[![codecov](https://codecov.io/gh/osahner/ngx-httpclient-busy/branch/master/graph/badge.svg)](https://codecov.io/gh/osahner/ngx-httpclient-busy)

## Installation

To install this library, run:

```console
```sh
npm install ngx-httpclient-busy --save
```
or
```console
yarn add ngx-httpclient-busy
```

### Example
## Integration

```typescript
// app.module.ts
Expand Down Expand Up @@ -91,7 +86,7 @@ or a simple working gear with [FontAwesome](http://fontawesome.io/) Icons
<i aria-hidden="true" class="fa fa-cog fa-fw fa-2x fa-spin text-muted loading-spinner fade" httpClientBusy></i>
```

### Configuration
## Configuration

```typescript
export interface HttpClientBusyConfig {
Expand All @@ -100,7 +95,7 @@ export interface HttpClientBusyConfig {
}
```

### Changelog
## Changelog

* v0.2.2 streamline code and moved interception to module
* v0.2.1 angular 6 and rxs 6
Expand Down
43 changes: 43 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"ngx-httpclient-busy": {
"root": "projects/ngx-httpclient-busy",
"sourceRoot": "projects/ngx-httpclient-busy/src",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ngx-httpclient-busy/tsconfig.lib.json",
"project": "projects/ngx-httpclient-busy/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ngx-httpclient-busy/src/test.ts",
"tsConfig": "projects/ngx-httpclient-busy/tsconfig.spec.json",
"karmaConfig": "projects/ngx-httpclient-busy/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ngx-httpclient-busy/tsconfig.lib.json",
"projects/ngx-httpclient-busy/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "ngx-httpclient-busy"
}
Loading

0 comments on commit 6e37cca

Please sign in to comment.