Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nx"],
"extends": ["@bynary/eslint-config/angular"],
"plugins": ["@nx", "@angular-eslint"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
Expand Down
25 changes: 14 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,27 @@ on:
push:
branches:
- develop

pull_request:
branches:
- develop
- main

workflow_dispatch:

jobs:
install-deps:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Cache node modules
id: cache
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json', '.nvmrc') }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v6
if: steps.cache.outputs.cache-hit != 'true'
with:
node-version-file: '.nvmrc'
Expand All @@ -34,12 +37,12 @@ jobs:
needs: install-deps
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0
- run: git fetch --no-tags --prune --depth=1 origin develop
- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json', '.nvmrc') }}
Expand All @@ -51,20 +54,20 @@ jobs:
needs: install-deps
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0
- run: git fetch --no-tags --prune --depth=1 origin develop
- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json', '.nvmrc') }}

- run: npx nx affected --target=test --parallel=3 --configuration=ci --base=origin/develop --codeCoverage

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -73,20 +76,20 @@ jobs:
needs: install-deps
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0
- run: git fetch --no-tags --prune --depth=1 origin develop
- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json', '.nvmrc') }}

- run: npx nx affected:build --parallel=3 --base=origin/develop

- name: Archive production artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v6
with:
name: dist
path: dist
16 changes: 8 additions & 8 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
install-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Cache node modules
id: cache
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
if: steps.cache.outputs.cache-hit != 'true'
with:
node-version-file: '.nvmrc'
Expand All @@ -49,23 +49,23 @@ jobs:
needs: install-deps
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5

- name: Build Demo
run: npx nx build demo -c github

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v4
with:
# Upload entire repository
path: './dist/apps/demo'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
12 changes: 6 additions & 6 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
install-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Cache node modules
id: cache
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
if: steps.cache.outputs.cache-hit != 'true'
with:
node-version-file: '.nvmrc'
Expand All @@ -37,16 +37,16 @@ jobs:
needs: install-deps
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
- name: Build Docs
run: scripts/build-docs.sh

- name: Upload Docs to Wiki
uses: Andrew-Chen-Wang/github-wiki-action@v4
uses: Andrew-Chen-Wang/github-wiki-action@v5
with:
path: 'docs'
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org/'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
command: manifest
token: ${{secrets.GITHUB_TOKEN}}
default-branch: main
- uses: google-github-actions/release-please-action@v4
with:
command: manifest
token: ${{secrets.GITHUB_TOKEN}}
default-branch: main
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ Thumbs.db

.nx/cache
.nx/workspace-data
.cursor/rules/nx-rules.mdc
.github/instructions/nx.instructions.md
2 changes: 1 addition & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
'*': ['npx nx format', (files) => `npx eslint ${files.join(' ')}`]
'*.{js,jsx,ts,tsx,html,json,css,scss}': ['npx nx format', (files) => `npx eslint ${files.join(' ')}`]
};
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
24
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ The `apps` folder contains the following projects:

### Libraries

| Name | Import path | Description |
| ------------- | ---------------------------------------- | --------------------------------------------------------------------------------------------- |
| `composables` | [@bynary/composables](libs/composables/) | A set of composable functions to help you build Angular applications faster. Based on signals |
| Name | Import path | Description |
| ------------- | -------------------------------------- | --------------------------------------------------------------------------------------------- |
| `composables` | [@homj/composables](libs/composables/) | A set of composable functions to help you build Angular applications faster. Based on signals |

## Development Setup

Expand Down Expand Up @@ -65,11 +65,11 @@ We want to fix all the issues as soon as possible, but before fixing a bug, we n

A minimal reproduction allows us to quickly confirm a bug (or point out a coding problem) as well as confirm that we are fixing the right problem.

You can file new issues by selecting from our [new issue templates](https://github.com/bynaryDE/angular-extensions/issues/new/choose) and filling out the issue template.
You can file new issues by selecting from our [new issue templates](https://github.com/homj/angular-extensions/issues/new/choose) and filling out the issue template.

### Submitting a feature request

You can request a new feature by [submitting an issue](https://github.com/bynaryDE/angular-extensions/issues/new/choose) to our GitHub Repository.
You can request a new feature by [submitting an issue](https://github.com/homj/angular-extensions/issues/new/choose) to our GitHub Repository.
Please provide as much detail and context as possible.

### Submitting a pull request
Expand Down Expand Up @@ -146,4 +146,4 @@ The main source of documentation alongside the README.md files is extracted from
To update the documentation, you need to update the JSDoc comments in the source code and run `npm run generate-dcs` to generate the documentation.
This will update the `docs` folder with the latest documentation.

When a pull request is merged into the `main` branch, the documentation will be automatically deployed to the [wiki](https://github.com/bynaryDE/angular-extensions/wiki).
When a pull request is merged into the `main` branch, the documentation will be automatically deployed to the [wiki](https://github.com/homj/angular-extensions/wiki).
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 bynary
Copyright (c) 2026 homj

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 Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Angular Extensions

[![License](https://img.shields.io/github/license/bynaryDE/eslint-config)](https://github.com/bynaryDE/angular-extensions/blob/main/LICENSE.md)
[![License](https://img.shields.io/github/license/homj/angular-extensions)](https://github.com/homj/angular-extensions/blob/main/LICENSE.md)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

This workspace contains a set of libraries to help you build Angular applications faster.

## Libraries

| Name | NPM | Description |
| ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [@bynary/composables](libs/composables/) | [![npm](https://img.shields.io/npm/v/%40bynary%2Fcomposables)](https://www.npmjs.com/package/@bynary/composables) | A set of composable functions to help you build Angular applications faster. Based on signals |
| Name | NPM | Description |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [@homj/composables](libs/composables/) | [![npm](https://img.shields.io/npm/v/%40homj%2Fcomposables)](https://www.npmjs.com/package/@homj/composables) | A set of composable functions to help you build Angular applications faster. Based on signals |
28 changes: 8 additions & 20 deletions apps/demo/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
{
"extends": [
"../../.eslintrc.json"
],
"ignorePatterns": [
"!**/*"
],
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": [
"*.ts"
],
"files": ["*.ts"],
"rules": {
"@angular-eslint/directive-selector": [
"error",
Expand All @@ -26,20 +20,14 @@
"prefix": "demo",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
},
"extends": [
"plugin:@nx/angular",
"plugin:@angular-eslint/template/process-inline-templates"
]
"extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"]
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@nx/angular-template"
],
"files": ["*.html"],
"extends": ["plugin:@nx/angular-template"],
"rules": {}
}
]
Expand Down
6 changes: 4 additions & 2 deletions apps/demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
"buildTarget": "demo:build:development"
}
},
"defaultConfiguration": "development"
"defaultConfiguration": "development",
"continuous": true
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
Expand All @@ -87,7 +88,8 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/demo/jest.config.ts"
"jestConfig": "apps/demo/jest.config.ts",
"tsConfig": "apps/demo/tsconfig.spec.json"
}
},
"serve-static": {
Expand Down
6 changes: 3 additions & 3 deletions apps/demo/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h1>{{ title() }}</h1>
<h2>Old</h2>
<p>
Using plain Angular APIs (<a
href="https://github.com/bynaryDE/angular-extensions/blob/main/apps/demo/src/app/components/old-button/old-button.component.ts"
href="https://github.com/homj/angular-extensions/blob/main/apps/demo/src/app/components/old-button/old-button.component.ts"
target="_blank"
>code</a
>)
Expand All @@ -140,8 +140,8 @@ <h2>Old</h2>
<header>
<h2>New</h2>
<p>
Using <strong>&#64;bynary/composables</strong> (<a
href="https://github.com/bynaryDE/angular-extensions/blob/main/apps/demo/src/app/components/button/button.component.ts"
Using <strong>&#64;homj/composables</strong> (<a
href="https://github.com/homj/angular-extensions/blob/main/apps/demo/src/app/components/button/button.component.ts"
target="_blank"
>code</a
>)
Expand Down
Loading