Skip to content

Commit

Permalink
renamed library with ngx-uploader-directive
Browse files Browse the repository at this point in the history
  • Loading branch information
jayprajapati857 committed Apr 29, 2020
1 parent 65c5ee7 commit b7fb800
Show file tree
Hide file tree
Showing 28 changed files with 124 additions and 126 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# ng-file-uploader
# ngx-uploader-directive

Angular 9 File Uploader.
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.3.8.

## Installation

Add `ng-file-uploader` module as dependency to your project.
Add `ngx-uploader-directive` module as dependency to your project.

```console
npm install ng-file-uploader --save
npm install ngx-uploader-directive --save
```

## Usage
Expand All @@ -19,7 +19,7 @@ npm install ng-file-uploader --save
// app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgFileUploaderModule } from 'ng-file-uploader';
import { NgFileUploaderModule } from 'ngx-uploader-directive';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
Expand All @@ -45,7 +45,7 @@ export class AppModule { }
// shared.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgFileUploaderModule } from 'ng-file-uploader';
import { NgFileUploaderModule } from 'ngx-uploader-directive';

@NgModule({
imports: [
Expand Down Expand Up @@ -106,7 +106,7 @@ export interface IUploadProgress {
}

/**
* Upload Input events that can be emit to ng-file-uploader.
* Upload Input events that can be emit to ngx-uploader-directive.
*/
export interface IUploadInput {
type: 'uploadAll' | 'uploadFile' | 'cancel' | 'cancelAll' | 'remove' | 'removeAll'; // Input event type.
Expand All @@ -122,7 +122,7 @@ export interface IUploadInput {
}

/**
* File Upload Output Events that emitted by ng-file-uploader.
* File Upload Output Events that emitted by ngx-uploader-directive.
*/
export interface IUploadOutput {
type: 'init' | 'addedToQueue' | 'allAddedToQueue' | 'uploading' | 'done' | 'start' | 'cancelled' | 'dragOver' | 'dragOut' | 'drop' | 'removed' | 'removedAll' | 'rejected' | 'error'; // Output events.
Expand All @@ -142,7 +142,7 @@ export interface IUploadOutput {
```ts
// tslint:disable: max-line-length
import { Component, EventEmitter } from '@angular/core';
import { IUploadOptions, ISelectedFile, IUploadInput, IUploadOutput } from 'ng-file-uploader';
import { IUploadOptions, ISelectedFile, IUploadInput, IUploadOutput } from 'ngx-uploader-directive';

@Component({
selector: 'app-root',
Expand All @@ -151,7 +151,7 @@ import { IUploadOptions, ISelectedFile, IUploadInput, IUploadOutput } from 'ng-f
})

export class AppComponent {
title = 'ng-file-uploader';
title = 'ngx-uploader-directive';
options: IUploadOptions;
formData: FormData;
files: Array<ISelectedFile>;
Expand Down Expand Up @@ -269,4 +269,4 @@ npm start

### LICENCE

[MIT](https://github.com/jayprajapati857/ng-file-uploader/blob/master/LICENSE)
[MIT](https://github.com/jayprajapati857/ngx-uploader-directive/blob/master/LICENSE)
38 changes: 19 additions & 19 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"ng-file-uploader": {
"ngx-uploader-directive": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
Expand All @@ -17,7 +17,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/ng-file-uploader",
"outputPath": "dist/ngx-uploader-directive",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
Expand Down Expand Up @@ -62,18 +62,18 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "ng-file-uploader:build"
"browserTarget": "ngx-uploader-directive:build"
},
"configurations": {
"production": {
"browserTarget": "ng-file-uploader:build:production"
"browserTarget": "ngx-uploader-directive:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "ng-file-uploader:build"
"browserTarget": "ngx-uploader-directive:build"
}
},
"test": {
Expand Down Expand Up @@ -107,7 +107,7 @@
}
}
},
"ng-file-uploader-e2e": {
"ngx-uploader-directive-e2e": {
"root": "e2e/",
"projectType": "application",
"prefix": "",
Expand All @@ -116,11 +116,11 @@
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "ng-file-uploader:serve"
"devServerTarget": "ngx-uploader-directive:serve"
},
"configurations": {
"production": {
"devServerTarget": "ng-file-uploader:serve:production"
"devServerTarget": "ngx-uploader-directive:serve:production"
}
}
},
Expand All @@ -135,33 +135,33 @@
}
}
},
"ng-file-uploader-lib": {
"root": "projects/ng-file-uploader",
"sourceRoot": "projects/ng-file-uploader/src",
"ngx-uploader-directive-lib": {
"root": "projects/ngx-uploader-directive",
"sourceRoot": "projects/ngx-uploader-directive/src",
"projectType": "library",
"prefix": "ng",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ng-file-uploader/tsconfig.lib.json",
"project": "projects/ng-file-uploader/ng-package.json"
"tsConfig": "projects/ngx-uploader-directive/tsconfig.lib.json",
"project": "projects/ngx-uploader-directive/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ng-file-uploader/src/test.ts",
"tsConfig": "projects/ng-file-uploader/tsconfig.spec.json",
"karmaConfig": "projects/ng-file-uploader/karma.conf.js"
"main": "projects/ngx-uploader-directive/src/test.ts",
"tsConfig": "projects/ngx-uploader-directive/tsconfig.spec.json",
"karmaConfig": "projects/ngx-uploader-directive/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ng-file-uploader/tsconfig.lib.json",
"projects/ng-file-uploader/tsconfig.spec.json"
"projects/ngx-uploader-directive/tsconfig.lib.json",
"projects/ngx-uploader-directive/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
Expand All @@ -171,5 +171,5 @@
}
}
},
"defaultProject": "ng-file-uploader"
"defaultProject": "ngx-uploader-directive"
}
2 changes: 1 addition & 1 deletion e2e/src/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('workspace-project App', () => {

it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('Welcome to ng-file-uploader!');
expect(page.getTitleText()).toEqual('Welcome to ngx-uploader-directive!');
});

afterEach(async () => {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
{
"name": "ng-file-uploader",
"name": "ngx-uploader-directive",
"version": "1.0.0",
"description": "Angular file uploader.",
"repository": {
"type": "git",
"url": "https://github.com/jayprajapati857/ng-file-uploader.git"
"url": "https://github.com/jayprajapati857/ngx-uploader-directive.git"
},
"authors": [
"Jay Prajapati <[email protected]>"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/jayprajapati857/ng-file-uploader/issues"
"url": "https://github.com/jayprajapati857/ngx-uploader-directive/issues"
},
"homepage": "https://github.com/jayprajapati857/ng-file-uploader",
"homepage": "https://github.com/jayprajapati857/ngx-uploader-directive",
"keywords": [
"angular",
"directive",
"typescript",
"ng-file-uploader",
"ngx-uploader-directive",
"file upload directive",
"angular-file-uploader",
"angular file uploader"
],
"licenses": [
{
"type": "MIT",
"url": "https://github.com/jayprajapati857/ng-file-uploader/blob/master/LICENSE"
"url": "https://github.com/jayprajapati857/ngx-uploader-directive/blob/master/LICENSE"
}
],
"scripts": {
"ng": "ng",
"start": "ng build ng-file-uploader-lib && npm install && ng serve --open",
"dev": "ng build ng-file-uploader-lib && ng serve",
"start": "ng build ngx-uploader-directive-lib && npm install && ng serve --open",
"dev": "ng build ngx-uploader-directive-lib && ng serve",
"build": "ng build",
"build:lib": "ng build ng-file-uploader-lib",
"build:prod": "ng build ng-file-uploader-lib",
"build:lib": "ng build ngx-uploader-directive-lib",
"build:prod": "ng build ngx-uploader-directive-lib",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
Expand Down Expand Up @@ -80,4 +80,4 @@
"tslint": "~5.11.0",
"typescript": "~3.2.2"
}
}
}
16 changes: 0 additions & 16 deletions projects/ng-file-uploader/src/lib/ng-file-uploader.module.ts

This file was deleted.

9 changes: 0 additions & 9 deletions projects/ng-file-uploader/src/public-api.ts

This file was deleted.

File renamed without changes.
Loading

0 comments on commit b7fb800

Please sign in to comment.