Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
MurhafSousli committed May 22, 2024
1 parent 3ad7019 commit b11643a
Show file tree
Hide file tree
Showing 154 changed files with 13,764 additions and 26,108 deletions.
12 changes: 0 additions & 12 deletions .browserslistrc

This file was deleted.

3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
23 changes: 9 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,47 +1,42 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
# Compiled output
/dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
# Node
/node_modules

# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json
npm-debug.log
yarn-error.log

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

# IDE - VSCode
# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

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

# System Files
# System files
.DS_Store
Thumbs.db
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
"recommendations": ["angular.ng-template"]
}
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "ng serve",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/"
},
{
"name": "ng test",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: test",
"url": "http://localhost:9876/debug.html"
}
]
}
42 changes: 42 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
},
{
"type": "npm",
"script": "test",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
}
]
}
17 changes: 17 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## 14.0.0

- feat: Update to angular 17
- feat: Add a service for sharing links, closes [#661](https://github.com/MurhafSousli/ngx-sharebuttons/issues/661).
- feat: Add provider function to easily override share buttons options
- enhance: Update share logos colors
- enhance: Replace Twitter with X
- feat: Ability to create a sharer links through the share service
- feat: Add `args` input to add additional custom parameters to the sharer link

### Breaking changes:

- Rename `ShareButtonConfig` to `ShareButtonsOptions`.
- Remove `closed` output from share directive and components.
- Remove `autoSetMeta` input from share directive and components.
- remove `url` ,`title`, `description` ,`image` ,`tags` and `redirectUrl` from global options

## 13.0.0

- Update to Angular 16 in [c677561](https://github.com/MurhafSousli/ngx-sharebuttons/pull/643/commits/c677561bf8bdc4e64fd1c46110dc85752168c347).
Expand Down
156 changes: 47 additions & 109 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,26 @@
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/ngx-sharebuttons/tsconfig.lib.json",
"project": "projects/ngx-sharebuttons/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/ngx-sharebuttons/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/ngx-sharebuttons/tsconfig.lib.json"
}
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ngx-sharebuttons/src/test.ts",
"tsConfig": "projects/ngx-sharebuttons/tsconfig.spec.json",
"polyfills": [
"zone.js",
"zone.js/testing"
],
"karmaConfig": "projects/ngx-sharebuttons/karma.conf.js"
}
}
Expand All @@ -43,13 +49,16 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/ngx-sharebuttons-demo/browser",
"outputPath": "dist/ngx-sharebuttons-demo",
"index": "projects/ngx-sharebuttons-demo/src/index.html",
"main": "projects/ngx-sharebuttons-demo/src/main.ts",
"polyfills": "projects/ngx-sharebuttons-demo/src/polyfills.ts",
"browser": "projects/ngx-sharebuttons-demo/src/main.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "projects/ngx-sharebuttons-demo/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"projects/ngx-sharebuttons-demo/src/favicon.ico",
"projects/ngx-sharebuttons-demo/src/assets"
Expand All @@ -58,71 +67,63 @@
"projects/ngx-sharebuttons-demo/src/styles.scss"
],
"scripts": [],
"allowedCommonJsDependencies": [
"highlight.js"
],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"server": "projects/ngx-sharebuttons-demo/src/main.server.ts",
"prerender": true,
"ssr": {
"entry": "projects/ngx-sharebuttons-demo/server.ts"
}
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "projects/ngx-sharebuttons-demo/src/environments/environment.ts",
"with": "projects/ngx-sharebuttons-demo/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
"maximumWarning": "2kb",
"maximumError": "4kb"
}
]
],
"outputHashing": "all"
},
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
}
},
"defaultConfiguration": ""
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "ngx-sharebuttons-demo:build"
},
"configurations": {
"production": {
"browserTarget": "ngx-sharebuttons-demo:build:production"
"buildTarget": "ngx-sharebuttons-demo:build:production"
},
"development": {
"buildTarget": "ngx-sharebuttons-demo:build:development"
}
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "ngx-sharebuttons-demo:build"
"buildTarget": "ngx-sharebuttons-demo:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ngx-sharebuttons-demo/src/test.ts",
"polyfills": "projects/ngx-sharebuttons-demo/src/polyfills.ts",
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "projects/ngx-sharebuttons-demo/tsconfig.spec.json",
"karmaConfig": "projects/ngx-sharebuttons-demo/karma.conf.js",
"inlineStyleLanguage": "scss",
"assets": [
"projects/ngx-sharebuttons-demo/src/favicon.ico",
"projects/ngx-sharebuttons-demo/src/assets"
Expand All @@ -132,71 +133,8 @@
],
"scripts": []
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "projects/ngx-sharebuttons-demo/e2e/protractor.conf.js",
"devServerTarget": "ngx-sharebuttons-demo:serve"
},
"configurations": {
"production": {
"devServerTarget": "ngx-sharebuttons-demo:serve:production"
}
}
},
"server": {
"builder": "@angular-devkit/build-angular:server",
"options": {
"outputPath": "dist/ngx-sharebuttons-demo/server",
"main": "projects/ngx-sharebuttons-demo/server.ts",
"tsConfig": "projects/ngx-sharebuttons-demo/tsconfig.server.json",
"sourceMap": true,
"optimization": false,
"buildOptimizer": false
},
"configurations": {
"production": {
"outputHashing": "media",
"fileReplacements": [
{
"replace": "projects/ngx-sharebuttons-demo/src/environments/environment.ts",
"with": "projects/ngx-sharebuttons-demo/src/environments/environment.prod.ts"
}
],
"sourceMap": false,
"optimization": true,
"buildOptimizer": true
}
},
"defaultConfiguration": ""
},
"serve-ssr": {
"builder": "@nguniversal/builders:ssr-dev-server",
"options": {
"browserTarget": "ngx-sharebuttons-demo:build",
"serverTarget": "ngx-sharebuttons-demo:server"
},
"configurations": {
"production": {
"browserTarget": "ngx-sharebuttons-demo:build:production",
"serverTarget": "ngx-sharebuttons-demo:server:production"
}
}
},
"prerender": {
"builder": "@nguniversal/builders:prerender",
"options": {
"browserTarget": "ngx-sharebuttons-demo:build:production",
"serverTarget": "ngx-sharebuttons-demo:server:production",
"routes": [
"/"
]
},
"configurations": {
"production": {}
}
}
}
}}
}
}
}
Loading

0 comments on commit b11643a

Please sign in to comment.