Skip to content

Commit 30925c7

Browse files
authored
Fix/add support angular 9 (#249)
1 parent d1a2b7f commit 30925c7

File tree

155 files changed

+605
-34325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+605
-34325
lines changed

.editorconfig

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
# http://editorconfig.org
2-
1+
# Editor configuration, see http://editorconfig.org
32
root = true
43

54
[*]
65
charset = utf-8
76
indent_style = space
87
indent_size = 2
9-
end_of_line = lf
108
insert_final_newline = true
119
trim_trailing_whitespace = true
1210

1311
[*.md]
14-
insert_final_newline = false
12+
max_line_length = off
1513
trim_trailing_whitespace = false

.gitignore

Lines changed: 43 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,43 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
config.ts
6-
7-
# Ignore AOT compiler output
8-
/compiled
9-
*.metadata.json
10-
11-
# Ignore output of typescript compilation. They WILL be included in the package since .npmignore is empty
12-
index.js.map
13-
index.d.ts
14-
index.ngsummary.json
15-
16-
/src/**/*.js
17-
/src/**/*.js.map
18-
/src/**/*.d.ts
19-
/src/**/*.ngsummary.json
20-
21-
# Ignore testing code TS compilation output
22-
/e2e/**/*.js
23-
/e2e/**/*.js.map
24-
/e2e/**/*.d.ts
25-
/e2e/**/*.ngsummary.json
26-
27-
/samples/**/*.js
28-
/samples/**/*.js.map
29-
/samples/**/*.d.ts
30-
31-
# Ignore generated typings
32-
typings/
33-
34-
# Exclude root folder *.js files and except the generated index.js
35-
!/*.js
36-
index.js
37-
38-
# Exclude important config files (part of the samples)
39-
!systemjs.config.js
40-
!webpack.config.js
41-
42-
# Exclude scripts folder
43-
!/scripts/*
44-
45-
# Coverage directory used by tools like istanbul
46-
coverage
47-
48-
# protractor test results
49-
_test-output/
50-
51-
# Dependency directory
52-
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
53-
node_modules
54-
bower_components
55-
doc/
56-
build/
57-
58-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
59-
*.iml
60-
61-
## Directory-based project format:
62-
.idea/
63-
.vscode/
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
8+
# dependencies
9+
/node_modules
10+
/**/node_modules
11+
12+
# IDEs and editors
13+
/.idea
14+
.project
15+
.classpath
16+
.c9/
17+
*.launch
18+
.settings/
19+
*.sublime-workspace
20+
21+
# IDE - VSCode
22+
.vscode/*
23+
!.vscode/settings.json
24+
!.vscode/tasks.json
25+
!.vscode/launch.json
26+
!.vscode/extensions.json
27+
28+
# miscg
29+
/.sass-cache
30+
/connect.lock
31+
/coverage
32+
/libpeerconnection.log
33+
npm-debug.log
34+
yarn-error.log
35+
testem.log
36+
/typings
37+
38+
# System Files
39+
.DS_Store
40+
Thumbs.db
41+
42+
package-lock.json
43+

.npmignore

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
# Include everything that's not part of the distributable package
22
**/*
33

4-
# Exclude tsc output that needs to be part of the released package
5-
!src/**/*.js
6-
!src/**/*.js.map
7-
!src/**/*.d.ts
8-
!src/**/*.metadata.json
9-
10-
!index.js
11-
!index.js.map
12-
!index.d.ts
13-
!index.metadata.json
14-
154
!package.json
165

.travis.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,5 @@ node_js:
55
- "node"
66
os:
77
- linux
8-
# env:
9-
# global:
10-
# - DBUS_SESSION_BUS_ADDRESS=/dev/null
11-
# - DISPLAY=:99.0
12-
# - CHROME_BIN=chromium-browser
13-
# before_script:
14-
# - sh -e /etc/init.d/xvfb start
158
script:
16-
- npm run lint
17-
- npm run test-once
18-
# - npm run e2e
9+
- npm run test-headless

.yarnclean

Lines changed: 0 additions & 45 deletions
This file was deleted.

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 https://cloudinary.com
3+
Copyright (c) 2020 https://cloudinary.com
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Install the SDK version that supports the Angular version you are using:
3636

3737
* For Angular 2, use `2.x`
3838
* For Angular 4, use `4.x`
39-
* For Angular 5-7, use `5.x`.
39+
* For Angular 5-9, use `5.x`
4040

4141
For example:
4242

angular.json

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"cloudinary_angular": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"prefix": "app",
11+
"schematics": {},
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "dist/cloudinary_angular",
17+
"index": "src/index.html",
18+
"main": "src/main.ts",
19+
"polyfills": "src/polyfills.ts",
20+
"tsConfig": "src/tsconfig.app.json",
21+
"assets": [
22+
"src/favicon.ico",
23+
"src/assets"
24+
],
25+
"styles": [
26+
"src/styles.css"
27+
],
28+
"scripts": []
29+
},
30+
"configurations": {
31+
"production": {
32+
"fileReplacements": [
33+
{
34+
"replace": "src/environments/environment.ts",
35+
"with": "src/environments/environment.prod.ts"
36+
}
37+
],
38+
"optimization": true,
39+
"outputHashing": "all",
40+
"sourceMap": false,
41+
"extractCss": true,
42+
"namedChunks": false,
43+
"aot": true,
44+
"extractLicenses": true,
45+
"vendorChunk": false,
46+
"buildOptimizer": true
47+
}
48+
}
49+
},
50+
"serve": {
51+
"builder": "@angular-devkit/build-angular:dev-server",
52+
"options": {
53+
"browserTarget": "cloudinary_angular:build"
54+
},
55+
"configurations": {
56+
"production": {
57+
"browserTarget": "cloudinary_angular:build:production"
58+
}
59+
}
60+
},
61+
"extract-i18n": {
62+
"builder": "@angular-devkit/build-angular:extract-i18n",
63+
"options": {
64+
"browserTarget": "cloudinary_angular:build"
65+
}
66+
},
67+
"test": {
68+
"builder": "@angular-devkit/build-angular:karma",
69+
"options": {
70+
"main": "src/test.ts",
71+
"polyfills": "src/polyfills.ts",
72+
"tsConfig": "src/tsconfig.spec.json",
73+
"karmaConfig": "src/karma.conf.js",
74+
"styles": [
75+
"src/styles.css"
76+
],
77+
"scripts": [],
78+
"assets": [
79+
"src/favicon.ico",
80+
"src/assets"
81+
]
82+
}
83+
},
84+
"lint": {
85+
"builder": "@angular-devkit/build-angular:tslint",
86+
"options": {
87+
"tsConfig": [
88+
"src/tsconfig.app.json",
89+
"src/tsconfig.spec.json"
90+
],
91+
"exclude": [
92+
"**/node_modules/**"
93+
]
94+
}
95+
}
96+
}
97+
},
98+
"cloudinary_angular-e2e": {
99+
"root": "e2e/",
100+
"projectType": "application",
101+
"architect": {
102+
"e2e": {
103+
"builder": "@angular-devkit/build-angular:protractor",
104+
"options": {
105+
"protractorConfig": "e2e/protractor.conf.js",
106+
"devServerTarget": "cloudinary_angular:serve"
107+
},
108+
"configurations": {
109+
"production": {
110+
"devServerTarget": "cloudinary_angular:serve:production"
111+
}
112+
}
113+
},
114+
"lint": {
115+
"builder": "@angular-devkit/build-angular:tslint",
116+
"options": {
117+
"tsConfig": "e2e/tsconfig.e2e.json",
118+
"exclude": [
119+
"**/node_modules/**"
120+
]
121+
}
122+
}
123+
}
124+
},
125+
"angular-cld": {
126+
"root": "projects/angular-cld",
127+
"sourceRoot": "projects/angular-cld/src",
128+
"projectType": "library",
129+
"prefix": "lib",
130+
"architect": {
131+
"build": {
132+
"builder": "@angular-devkit/build-ng-packagr:build",
133+
"options": {
134+
"tsConfig": "projects/angular-cld/tsconfig.lib.json",
135+
"project": "projects/angular-cld/ng-package.json"
136+
},
137+
"configurations": {
138+
"production": {
139+
"project": "projects/angular-cld/ng-package.prod.json"
140+
}
141+
}
142+
},
143+
"test": {
144+
"builder": "@angular-devkit/build-angular:karma",
145+
"options": {
146+
"main": "projects/angular-cld/src/test.ts",
147+
"tsConfig": "projects/angular-cld/tsconfig.spec.json",
148+
"karmaConfig": "projects/angular-cld/karma.conf.js"
149+
}
150+
},
151+
"lint": {
152+
"builder": "@angular-devkit/build-angular:tslint",
153+
"options": {
154+
"tsConfig": [
155+
"projects/angular-cld/tsconfig.lib.json",
156+
"projects/angular-cld/tsconfig.spec.json"
157+
],
158+
"exclude": [
159+
"**/node_modules/**"
160+
]
161+
}
162+
}
163+
}
164+
}
165+
},
166+
"defaultProject": "cloudinary_angular"
167+
}

0 commit comments

Comments
 (0)