Skip to content

Commit 18b000e

Browse files
jesusbotellaJesús Botella
authored andcommitted
feat!: Support for Angular 9 and newer
This version adds support for Angular v9 and greater, but breaks compatibility with older versions
1 parent f017183 commit 18b000e

31 files changed

+16027
-4368
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false

.gitignore

100755100644
Lines changed: 41 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,46 @@
1-
.DS_Store
2-
3-
# Logs
4-
logs
5-
*.log
6-
npm-debug.log*
7-
8-
# Runtime data
9-
pids
10-
*.pid
11-
*.seed
12-
13-
# Directory for instrumented libs generated by jscoverage/JSCover
14-
lib-cov
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
152

16-
# Coverage directory used by tools like istanbul
17-
coverage
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
# Only exists if Bazel was run
8+
/bazel-out
189

19-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
20-
.grunt
21-
22-
# Compiled binary addons (http://nodejs.org/api/addons.html)
23-
build/Release
24-
25-
# Users Environment Variables
26-
.lock-wscript
10+
# dependencies
11+
/node_modules
2712

28-
# OS generated files #
13+
# profiling files
14+
chrome-profiler-events*.json
15+
speed-measure-plugin*.json
16+
17+
# IDEs and editors
18+
/.idea
19+
.project
20+
.classpath
21+
.c9/
22+
*.launch
23+
.settings/
24+
*.sublime-workspace
25+
26+
# IDE - VSCode
27+
.vscode/*
28+
!.vscode/settings.json
29+
!.vscode/tasks.json
30+
!.vscode/launch.json
31+
!.vscode/extensions.json
32+
.history/*
33+
34+
# misc
35+
/.sass-cache
36+
/connect.lock
37+
/coverage
38+
/libpeerconnection.log
39+
npm-debug.log
40+
yarn-error.log
41+
testem.log
42+
/typings
43+
44+
# System Files
2945
.DS_Store
30-
ehthumbs.db
31-
Icon?
3246
Thumbs.db
33-
34-
# Node Files #
35-
/node_modules
36-
/bower_components
37-
38-
# Coverage #
39-
/coverage/
40-
41-
# Typing #
42-
/src/typings/tsd/
43-
/typings/
44-
/tsd_typings/
45-
46-
# Dist #
47-
/public/__build__/
48-
/src/*/__build__/
49-
__build__/**
50-
.webpack.json
51-
dist/
52-
out-tsc/
53-
54-
# Doc #
55-
/doc/
56-
57-
# IDE #
58-
.idea/
59-
*.swp
60-
61-
# Generated #
62-
!karma.conf.js
63-
!karma-test-shim.js
64-
!build.js
65-
!inline-resources.js
66-
*.map
67-
*.d.ts
68-
typings

.npmignore

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

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Change Log
1+
# Changelog
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

LICENSE renamed to LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Jesús Botella
3+
Copyright (c) 2020 Jesús Botella
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ However, the compatibility with older browsers is limited by the [`Mutation Obse
137137
MIT
138138

139139

140-
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fjesusbotella%2Fngx-lazy-load-images.svg?type=large)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fjesusbotella%2Fngx-lazy-load-images?ref=badge_large)
140+
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fjesusbotella%2Fngx-lazy-load-images.svg?type=large)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fjesusbotella%2Fngx-lazy-load-images?ref=badge_large)

angular.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"ngx-lazy-load-images": {
7+
"projectType": "library",
8+
"root": "projects/ngx-lazy-load-images",
9+
"sourceRoot": "projects/ngx-lazy-load-images/src",
10+
"prefix": "lazy",
11+
"architect": {
12+
"build": {
13+
"builder": "@angular-devkit/build-ng-packagr:build",
14+
"options": {
15+
"tsConfig": "projects/ngx-lazy-load-images/tsconfig.lib.json",
16+
"project": "projects/ngx-lazy-load-images/ng-package.json"
17+
},
18+
"configurations": {
19+
"production": {
20+
"tsConfig": "projects/ngx-lazy-load-images/tsconfig.lib.prod.json"
21+
}
22+
}
23+
},
24+
"test": {
25+
"builder": "@angular-devkit/build-angular:karma",
26+
"options": {
27+
"main": "projects/ngx-lazy-load-images/src/test.ts",
28+
"tsConfig": "projects/ngx-lazy-load-images/tsconfig.spec.json",
29+
"karmaConfig": "projects/ngx-lazy-load-images/karma.conf.js"
30+
}
31+
},
32+
"lint": {
33+
"builder": "@angular-devkit/build-angular:tslint",
34+
"options": {
35+
"tsConfig": [
36+
"projects/ngx-lazy-load-images/tsconfig.lib.json",
37+
"projects/ngx-lazy-load-images/tsconfig.spec.json"
38+
],
39+
"exclude": [
40+
"**/node_modules/**"
41+
]
42+
}
43+
}
44+
}
45+
}},
46+
"defaultProject": "ngx-lazy-load-images"
47+
}

0 commit comments

Comments
 (0)