Skip to content

Commit

Permalink
Fix/add support angular 9 (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
strausr authored Feb 17, 2020
1 parent d1a2b7f commit 30925c7
Show file tree
Hide file tree
Showing 155 changed files with 605 additions and 34,325 deletions.
6 changes: 2 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# http://editorconfig.org

# Editor configuration, see http://editorconfig.org
root = true

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

[*.md]
insert_final_newline = false
max_line_length = off
trim_trailing_whitespace = false
106 changes: 43 additions & 63 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,63 +1,43 @@
# Logs
logs
*.log
npm-debug.log*
config.ts

# Ignore AOT compiler output
/compiled
*.metadata.json

# Ignore output of typescript compilation. They WILL be included in the package since .npmignore is empty
index.js.map
index.d.ts
index.ngsummary.json

/src/**/*.js
/src/**/*.js.map
/src/**/*.d.ts
/src/**/*.ngsummary.json

# Ignore testing code TS compilation output
/e2e/**/*.js
/e2e/**/*.js.map
/e2e/**/*.d.ts
/e2e/**/*.ngsummary.json

/samples/**/*.js
/samples/**/*.js.map
/samples/**/*.d.ts

# Ignore generated typings
typings/

# Exclude root folder *.js files and except the generated index.js
!/*.js
index.js

# Exclude important config files (part of the samples)
!systemjs.config.js
!webpack.config.js

# Exclude scripts folder
!/scripts/*

# Coverage directory used by tools like istanbul
coverage

# protractor test results
_test-output/

# Dependency directory
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules
bower_components
doc/
build/

# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
*.iml

## Directory-based project format:
.idea/
.vscode/
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc

# dependencies
/node_modules
/**/node_modules

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

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

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

# System Files
.DS_Store
Thumbs.db

package-lock.json

11 changes: 0 additions & 11 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# Include everything that's not part of the distributable package
**/*

# Exclude tsc output that needs to be part of the released package
!src/**/*.js
!src/**/*.js.map
!src/**/*.d.ts
!src/**/*.metadata.json

!index.js
!index.js.map
!index.d.ts
!index.metadata.json

!package.json

11 changes: 1 addition & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,5 @@ node_js:
- "node"
os:
- linux
# env:
# global:
# - DBUS_SESSION_BUS_ADDRESS=/dev/null
# - DISPLAY=:99.0
# - CHROME_BIN=chromium-browser
# before_script:
# - sh -e /etc/init.d/xvfb start
script:
- npm run lint
- npm run test-once
# - npm run e2e
- npm run test-headless
45 changes: 0 additions & 45 deletions .yarnclean

This file was deleted.

4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 https://cloudinary.com
Copyright (c) 2020 https://cloudinary.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Install the SDK version that supports the Angular version you are using:

* For Angular 2, use `2.x`
* For Angular 4, use `4.x`
* For Angular 5-7, use `5.x`.
* For Angular 5-9, use `5.x`

For example:

Expand Down
167 changes: 167 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"cloudinary_angular": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/cloudinary_angular",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "cloudinary_angular:build"
},
"configurations": {
"production": {
"browserTarget": "cloudinary_angular:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "cloudinary_angular:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"src/styles.css"
],
"scripts": [],
"assets": [
"src/favicon.ico",
"src/assets"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"cloudinary_angular-e2e": {
"root": "e2e/",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "cloudinary_angular:serve"
},
"configurations": {
"production": {
"devServerTarget": "cloudinary_angular:serve:production"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"angular-cld": {
"root": "projects/angular-cld",
"sourceRoot": "projects/angular-cld/src",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/angular-cld/tsconfig.lib.json",
"project": "projects/angular-cld/ng-package.json"
},
"configurations": {
"production": {
"project": "projects/angular-cld/ng-package.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/angular-cld/src/test.ts",
"tsConfig": "projects/angular-cld/tsconfig.spec.json",
"karmaConfig": "projects/angular-cld/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/angular-cld/tsconfig.lib.json",
"projects/angular-cld/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "cloudinary_angular"
}
Loading

0 comments on commit 30925c7

Please sign in to comment.