Skip to content

Commit 0332bc1

Browse files
Merge pull request #62 from swftvsn/master
Update to Angular 6.0.0
2 parents aed32d6 + d00a98f commit 0332bc1

11 files changed

+11638
-5587
lines changed

.angular-cli.json

-57
This file was deleted.

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
## Change Log
2+
### [4.0.0](https://github.com/georgipeltekov/ngx-file-drop/compare/v3.0.2...v4.0.0) (2018-05-07)
3+
* Update to Angular 6.0.0
4+
25
### [3.0.2](https://github.com/georgipeltekov/ngx-file-drop/compare/v3.0.1...v3.0.2) (2018-04-29)
36
* Allow drag events to be ignored that originate from document (introduced in 3.0.1) even if using custom styles
47

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
## Overview
44

5-
An Angular 4 & 5 module for simple desktop file and folder drag and drop
5+
An Angular 6 module for simple desktop file and folder drag and drop. This library does not need rxjs-compat.
6+
7+
For Angular 5 and 4 support please use older versions.
68

79
## DEMO
810
You can check the [DEMO](https://georgipeltekov.github.io/) of the library

angular.json

+126
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"ngx-file-drop": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"architect": {
11+
"build": {
12+
"builder": "@angular-devkit/build-angular:browser",
13+
"options": {
14+
"outputPath": "dist",
15+
"index": "src/sandbox/index.html",
16+
"main": "src/sandbox/main.ts",
17+
"tsConfig": "src/tsconfig.app.json",
18+
"polyfills": "src/sandbox/polyfills.ts",
19+
"assets": [
20+
21+
],
22+
"styles": [
23+
"src/sandbox/styles.scss"
24+
],
25+
"scripts": []
26+
},
27+
"configurations": {
28+
"production": {
29+
"optimization": true,
30+
"outputHashing": "all",
31+
"sourceMap": false,
32+
"extractCss": true,
33+
"namedChunks": false,
34+
"aot": true,
35+
"extractLicenses": true,
36+
"vendorChunk": false,
37+
"buildOptimizer": true,
38+
"fileReplacements": [
39+
{
40+
"replace": "src/sandbox/environments/environment.ts",
41+
"with": "src/sandbox/environments/environment.prod.ts"
42+
}
43+
]
44+
}
45+
}
46+
},
47+
"serve": {
48+
"builder": "@angular-devkit/build-angular:dev-server",
49+
"options": {
50+
"browserTarget": "ngx-file-drop:build"
51+
},
52+
"configurations": {
53+
"production": {
54+
"browserTarget": "ngx-file-drop:build:production"
55+
}
56+
}
57+
},
58+
"extract-i18n": {
59+
"builder": "@angular-devkit/build-angular:extract-i18n",
60+
"options": {
61+
"browserTarget": "ngx-file-drop:build"
62+
}
63+
},
64+
"test": {
65+
"builder": "@angular-devkit/build-angular:karma",
66+
"options": {
67+
"main": "src/test.ts",
68+
"karmaConfig": "./karma.conf.js",
69+
"polyfills": "src/sandbox/polyfills.ts",
70+
"tsConfig": "src/tsconfig.spec.json",
71+
"scripts": [],
72+
"styles": [
73+
"src/sandbox/styles.scss"
74+
],
75+
"assets": [
76+
77+
]
78+
}
79+
},
80+
"lint": {
81+
"builder": "@angular-devkit/build-angular:tslint",
82+
"options": {
83+
"tsConfig": [
84+
"./src/tsconfig.app.json",
85+
"./src/tsconfig.spec.json"
86+
],
87+
"exclude": []
88+
}
89+
}
90+
}
91+
},
92+
"ngx-file-drop-e2e": {
93+
"root": "",
94+
"sourceRoot": "",
95+
"projectType": "application",
96+
"architect": {
97+
"e2e": {
98+
"builder": "@angular-devkit/build-angular:protractor",
99+
"options": {
100+
"protractorConfig": "./protractor.conf.js",
101+
"devServerTarget": "ngx-file-drop:serve"
102+
}
103+
},
104+
"lint": {
105+
"builder": "@angular-devkit/build-angular:tslint",
106+
"options": {
107+
"tsConfig": [
108+
"./e2e/tsconfig.e2e.json"
109+
],
110+
"exclude": []
111+
}
112+
}
113+
}
114+
}
115+
},
116+
"defaultProject": "ngx-file-drop",
117+
"schematics": {
118+
"@schematics/angular:component": {
119+
"prefix": "demo",
120+
"styleext": "scss"
121+
},
122+
"@schematics/angular:directive": {
123+
"prefix": "demo"
124+
}
125+
}
126+
}

karma.conf.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@
44
module.exports = function (config) {
55
config.set({
66
basePath: '',
7-
frameworks: ['jasmine', '@angular/cli'],
7+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
88
plugins: [
99
require('karma-jasmine'),
1010
require('karma-chrome-launcher'),
1111
require('karma-jasmine-html-reporter'),
1212
require('karma-coverage-istanbul-reporter'),
13-
require('@angular/cli/plugins/karma')
13+
require('@angular-devkit/build-angular/plugins/karma')
1414
],
1515
client:{
1616
clearContext: false // leave Jasmine Spec Runner output visible in browser
1717
},
1818
files: [
19-
{ pattern: './src/test.ts', watched: false }
19+
2020
],
2121
preprocessors: {
22-
'./src/test.ts': ['@angular/cli']
22+
2323
},
2424
mime: {
2525
'text/x-typescript': ['ts','tsx']
2626
},
2727
coverageIstanbulReporter: {
28-
reports: [ 'html', 'lcovonly' ],
28+
dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
2929
fixWebpackSourcePaths: true
3030
},
3131
angularCli: {

0 commit comments

Comments
 (0)