Skip to content

Commit

Permalink
feat(no-ref): up deps (#1363)
Browse files Browse the repository at this point in the history
* feat(ref: no-ref): add setup hooks, remove karma (#1340)

* feat(ref: no-ref): add setup hooks, remove carma

* feat(ref: no-ref): remove environment

* feat(ref: no-ref): fix warnings in console

* feat(ref: no-ref): remove cypress from lib folder

* feat(ref: no-ref): add text to readme

* build(deps-dev): bump undici from 5.28.3 to 5.28.4 (#1343)

Bumps [undici](https://github.com/nodejs/undici) from 5.28.3 to 5.28.4.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v5.28.3...v5.28.4)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump tar and npm (#1346)

Bumps [tar](https://github.com/isaacs/node-tar) and [npm](https://github.com/npm/cli). These dependencies needed to be updated together.

Updates `tar` from 6.1.14 to 6.2.1
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](isaacs/node-tar@v6.1.14...v6.2.1)

Updates `npm` from 10.5.0 to 10.5.2
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md)
- [Commits](npm/cli@v10.5.0...v10.5.2)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
- dependency-name: npm
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump undici and @angular-devkit/build-angular (#1351)

Bumps [undici](https://github.com/nodejs/undici) to 6.11.1 and updates ancestor dependency [@angular-devkit/build-angular](https://github.com/angular/angular-cli). These dependencies need to be updated together.


Updates `undici` from 6.7.1 to 6.11.1
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v6.7.1...v6.11.1)

Updates `@angular-devkit/build-angular` from 17.3.0 to 17.3.4
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Changelog](https://github.com/angular/angular-cli/blob/main/CHANGELOG.md)
- [Commits](angular/angular-cli@17.3.0...17.3.4)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
- dependency-name: "@angular-devkit/build-angular"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(no-ref): update deps (#1353)

* feat(no-ref): update deps

* feat(no-ref): update deps v1

* fix(1358): add trailing zero when mask="separator.1" and leadZero="true" (#1359)

Currently, no trailing zero is added when mask="separator.1" and leadZero="true" and input loses focus. This change adds the trailing zero in that case.

* feat(no-ref): up deps (#1362)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Andrii Kamaldinov <129040945+andriikamaldinov1@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nathaniel Buck <nathaniel.buck@gmail.com>
  • Loading branch information
4 people committed May 8, 2024
1 parent b1f5024 commit cf4b604
Show file tree
Hide file tree
Showing 41 changed files with 13,993 additions and 11,595 deletions.
6 changes: 0 additions & 6 deletions .github/.hooks/commit-msg/check-commit-msg.sh

This file was deleted.

6 changes: 6 additions & 0 deletions .github/hooks/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -e

commit_msg=$(cat .git/COMMIT_EDITMSG)
echo "$commit_msg" | npx commitlint
2 changes: 1 addition & 1 deletion .github/.hooks/pre-commit/quality.sh → .github/hooks/pre-commit
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin
#!/bin/bash

set -e

Expand Down
39 changes: 39 additions & 0 deletions .github/scripts/setup_hooks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

# Define the directory containing sample hooks
SAMPLE_HOOKS_DIR=".github/hooks"

# Define the target directory for Git hooks
GIT_HOOKS_DIR=".git/hooks"

# Function to copy or replace hooks
copy_or_replace_hooks() {
for hook in "$SAMPLE_HOOKS_DIR"/*; do
hook_name=$(basename "$hook")
target_hook="$GIT_HOOKS_DIR/$hook_name"
if [ -f "$target_hook" ]; then
echo "Replacing existing hook: $hook_name"
else
echo "Copying new hook: $hook_name"
fi
cp "$hook" "$target_hook"
chmod ug+x "$target_hook" # Ensure executable permission is set
done
}

# Main function
main() {
# Check if .git/hooks directory exists
if [ ! -d "$GIT_HOOKS_DIR" ]; then
echo "Error: .git/hooks directory not found. Are you in a Git repository?"
exit 1
fi

# Copy or replace hooks
copy_or_replace_hooks

echo "Git hooks setup complete."
}

# Run the main function
main
1 change: 1 addition & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:

- name: Install deps
run: |
npm install --package-lock-only --force
npm ci --force
git submodule update --init --recursive --remote
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ jobs:
registry-url: https://registry.npmjs.org/
- name: Build library
run: |
npm install --package-lock-only --force
npm ci --force
git submodule update --init --recursive --remote
npm run build:lib
- name: Publish library
run: npm run publish:lib
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
1 change: 1 addition & 0 deletions .github/workflows/quality-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
node-version: 18
- name: Check quality
run: |
npm install --package-lock-only --force
npm ci --force
git submodule update --init --recursive --remote
bash .github/workflows/scripts/quality.sh
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ npm-debug.log
testem.log
/typings
/cypress/*
.nx
# e2e
/e2e/*.js
/e2e/*.map
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 17.0.8(2024-04-30)

### Fix

- Fix ([#1358](https://github.com/JsDaddy/ngx-mask/issues/1358))

# 17.0.7(2024-03-28)

### Fix
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ Then, just define masks in inputs.

Text [documentation](https://github.com/JsDaddy/ngx-mask/blob/develop/USAGE.md)

## Setup hooks
```bash
$ npm run init:hooks
```

## Contributing
We would love some contributions! Check out this [document](https://github.com/JsDaddy/ngx-mask/blob/develop/CONTRIBUTING.md) to get started.
61 changes: 16 additions & 45 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"outputPath": "dist/ngx-mask",
"index": "src/index.html",
"browser": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
"tsConfig": "tsconfig.app.json",
"assets": ["src/assets", "src/favicon.ico"],
"styles": [
"node_modules/highlight.js/styles/github.css",
Expand All @@ -36,31 +36,18 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
"maximumWarning": "2mb",
"maximumError": "2mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "5kb",
"maximumError": "7kb"
}
],
"optimization": true,
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
"maximumWarning": "15kb",
"maximumError": "15kb"
}
],
"outputHashing": "all"
},
"development": {
"define": {
"VERSION": "'v0.0.1'"
},
"optimization": false,
"extractLicenses": false,
"sourceMap": true
Expand All @@ -79,26 +66,21 @@
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"buildTarget": "ngx-mask:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:web-test-runner",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"codeCoverage": true,
"sourceMap": true,
"scripts": [],
"styles": [
"node_modules/bootstrap/dist/css/bootstrap-grid.css",
"src/styles.scss"
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
],
"polyfills": [
"zone.js",
"zone.js/testing"
],
"assets": ["src/assets", "src/favicon.ico"]
"styles": ["src/styles.scss"],
"scripts": []
}
},
"lint": {
Expand Down Expand Up @@ -128,17 +110,6 @@
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ngx-mask-lib/src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "projects/ngx-mask-lib/tsconfig.spec.json",
"karmaConfig": "projects/ngx-mask-lib/karma.conf.js",
"codeCoverage": true,
"sourceMap": true
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
Expand Down
Loading

0 comments on commit cf4b604

Please sign in to comment.