Skip to content

Commit 6bdd338

Browse files
MGREMYbence444
andauthored
chore: prepare 20.0.0 (#116)
* feat(pagination): implement basics based on flowbite (wip) * feat(pagination): implement basics based on flowbite (wip) * feat(pagination): move button design to its own directive * fix(modal): remove `rxjs` dependency use `@angular/core/rxjs-interop` instead * feat(pagination): implement basics based on flowbite (wip) * feat(pagination): move button design to its own directive * feat(pagination): implement basics based on flowbite (wip) # Conflicts: # libs/flowbite-angular/core/flowbite.theme.init.ts # libs/flowbite-angular/pagination/index.ts # libs/flowbite-angular/pagination/pagination.component.ts # libs/flowbite-angular/pagination/pagination.theme.service.ts # libs/flowbite-angular/pagination/pagination.theme.ts * fix: merge conflict * feat(pagination): add icons, style active button, jsdoc comments * docs(pagination): add NgDoc documentation * fix(pagination): remove duplicated provider registrations * fix(pagination): remove unused pageChange output * fix(pagination): fix demo component selector * chore: update modal function signature * fix(pagination): correct first visible page * feat(utils): add double chevron icon from `https://flowbite.com/icons/` * feat(paginator): add customizable icons, size variables * feat(pagination): add property providers * feat(pagination): remove directive & use flowbite-button * docs(lists): remove css & fix lists in md files * chore(pagination): code style updates * chore(pagination): use `model` instead of `input` * refactor(pagination): remove `nav` element, use root and rootClass * chore(pagination): code style * feat(utils): add left/double left chevron icon * feat(pagination): use left sided icons instead of `rotate-180` * fix(pagination): place label before icon in next/last button * refactor(pagination): update post update post comment * refactor(pagination): fix doc attribute * feat(pagination): possibility to use `totalPages` or `totalItems` * refactor(pagination): use `Array.from` instead of for loop * chore: fix vercel deploy servless function compiled to commonJS * feat: 2.0 (#115) * feat: make flowbite-button usable as directive * docs: fix flex-wrap class * docs: fix deprecated in button page * feat: make flowbite-navbar-* usable as directive * docs: add sidebar directive * feat(sidebar): make flowbite-sidebar-* usable as directive * docs(sidebar): fix z-40 * feat(accordion): make flowbite-accordion usable as directive * feat(breadcrumb): make flowbite-breadcrumb usable as directive * chore: add angular-primitive dependency * refacto(button): migrate to angular-primitive (WIP) * refacto(button): migrate to angular-primitive (WIP) * refactor: add storybook for library * refactor: button storybook add customStyle * docs: add disabled to button storybook * refactor: rename .css file * refactor: lock file * chore: add class import sort prettier plugin * feat: switch to tailwindcss v4 * chore: add storybook to project * chore: add dark mode in storybook * refactor: path for 2.0.0 during dev phase * feat: add injection of base theme for components * refactor: rename root to host in theme * refactor(button): add state * refactor: remove v1 files * refactor(button): outline (WIP) * refactor: dependencies (WIP) * refactor: dependencies (WIP) * refactor: dependencies (WIP) * refactor(button): adapt outline style * refactor: dependencies (WIP) * refactor(button): add styles * refactor: move to css tailwind config * refactor: clean config files * refactor(accordion): migrate to v2 * refactor: fix token state creation * refactor: change setting injection in components * refactor: add exportAs for components * refactor(alert): migrate to v2 * refactor(badge): migrate to v2 * refactor(breadcrumb): migrate to v2 * refactor(dropdown): migrate to v2 * refactor: add component generation tool * refactor: add secondary entry point to generator * refactor: move generator location * refactor: catch error create entrypoint * refactor: add host class * refactor(indicator): migrate to v2 * refactor: add storybook generator * refactor(modal): migrate to v2 * chore: pnpm-lock.json * refactor: tailwindcss vscode settings * chore: remove vercel config * chore: update config for vercel deployments on v2 * chore: update config for vercel deployments on v2 * chore: update ng-primitive version * refactor(icon): migrate to v2 * refactor(button): make abstract and create icon button * refactor(button): make abstract and create icon button * refactor(button): make styling abstract * refactor(indicator): add colors * refactor(): change modal button * refactor(navbar): migrate to v2 (WIP) * refactor(navbar): migrate to v2 (WIP) * refactor(navbar): migrate to v2 * refactor: remove tests & tests libraries * refactor: update ssr dependency * refactor: add skeleton for v2 * refactor: make state internal * refactor(sidebar): migrate to v2 * refactor(sidebar): migrate to v2 * refactor(theme-toggle): migrate to v2 * refactor(pagination): migrate to v2 * feat(tooltip): add new component #94 * feat(button-group): add new component * feat(form-field): add new component * feat(clipboard): add new component #92 * feat(card): add new component #91 * docs: to 2.0 * chore: update ng-primitives & ng-doc version * docs: to 2.0 * chore: add documentation generator * docs: to 2.0 * docs: to 2.0 * docs: to 2.0 * docs: to 2.0 * docs: to 2.0 * docs: to 2.0 * docs: to 2.0 * docs: to 2.0 * docs: to 2.0 * docs: to 2.0 * docs: to 2.0 * docs: to 2.0 * docs: to 2.0 * docs: to 2.0 * docs: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor: to 2.0 * refactor(dropdown): to 2.0 * refactor(icon): to 2.0 * refactor(indicator): to 2.0 * refactor(navbar): to 2.0 * refactor(pagination): to 2.0 * refactor(sidebar): to 2.0 * refactor(sidebar): to 2.0 * refactor(tab): to 2.0 * refactor(tooltip): to 2.0 * refactor: tailwindcss dependencies * refactor: ng-primitives dependencies * chore: update to angular 20 * refactor: storybook dependencies * refactor: pnpm-lock * refactor: dependencies * ci: simplify pnpm setup * ci: re-setup * ci: fix version * docs: to 2.0 * ci: remove test ci * chore: re-enable prerender * fix: sidebar & navbar * docs: fix display for some components * docs(tab): create documentation * chore: update ng-primitives * docs: fix pagination behavior * docs: fix sidebar toggle disapear * docs: fix badge icons * docs: fix global text color * docs: update README * docs: update README * docs: update README * docs: add page for ng-primitives * docs: changes * chore: remove CHANGELOG file --------- Co-authored-by: Bence Lovász <[email protected]>
1 parent dca933a commit 6bdd338

File tree

1,457 files changed

+27682
-26575
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,457 files changed

+27682
-26575
lines changed

.eslintrc.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
"plugins": ["@nx", "@typescript-eslint", "prettier"],
55
"extends": ["plugin:@nx/angular", "plugin:@typescript-eslint/recommended", "prettier"],
66
"overrides": [
7+
{
8+
"files": "*.json",
9+
"parser": "jsonc-eslint-parser",
10+
"rules": {}
11+
},
712
{
813
"files": ["*.ts"],
914
"rules": {
@@ -13,19 +18,13 @@
1318
"endOfLine": "auto"
1419
}
1520
],
16-
17-
// ESLint
1821
"no-extra-semi": "off",
1922
"comma-dangle": "off",
2023
"no-empty-function": "off",
21-
22-
// TypeScript
2324
"@typescript-eslint/no-extra-semi": "error",
2425
"@typescript-eslint/no-empty-function": "warn",
2526
"@typescript-eslint/no-explicit-any": "warn",
2627
"@typescript-eslint/consistent-type-imports": "error",
27-
28-
// Nx specific rules
2928
"@nx/enforce-module-boundaries": "error"
3029
}
3130
}

.github/actions/setup/action.yml

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

.github/workflows/cache_cleanup.yml

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

.github/workflows/ci.yml

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ concurrency: ${{ github.ref }}
88

99
jobs:
1010
lint:
11+
strategy:
12+
matrix:
13+
node-version: [20]
14+
1115
name: Lint the code 🕵
1216
runs-on: ubuntu-latest
1317
steps:
@@ -16,38 +20,29 @@ jobs:
1620
with:
1721
fetch-depth: 0
1822

19-
- name: Setup NodeJS 💿
20-
uses: actions/setup-node@v4
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
2125
with:
22-
node-version: 20
23-
24-
- name: Monorepo install
25-
uses: ./.github/actions/setup
26+
version: 10
2627

27-
- name: Lint the code 🕵
28-
run: pnpm all:lint
29-
30-
test:
31-
name: Run unit tests 🔬
32-
runs-on: ubuntu-latest
33-
steps:
34-
- name: Check out the code 🗄
35-
uses: actions/checkout@v4
36-
with:
37-
fetch-depth: 0
38-
39-
- name: Setup NodeJS 💿
28+
- name: Use Node.js ${{ matrix.node-version }}
4029
uses: actions/setup-node@v4
4130
with:
42-
node-version: 20
31+
node-version: ${{ matrix.node-version }}
32+
cache: 'pnpm'
4333

44-
- name: Monorepo install
45-
uses: ./.github/actions/setup
34+
- name: Install dependencies
35+
shell: bash
36+
run: pnpm install --frozen-lockfile --prefer-offline
4637

47-
- name: Run unit tests 🔬
48-
run: pnpm all:test -- --ci --verbose
38+
- name: Lint the code 🕵
39+
run: pnpm all:lint
4940

5041
build:
42+
strategy:
43+
matrix:
44+
node-version: [20]
45+
5146
name: Build code 🛠
5247
runs-on: ubuntu-latest
5348
steps:
@@ -56,13 +51,20 @@ jobs:
5651
with:
5752
fetch-depth: 0
5853

59-
- name: Setup NodeJS 💿
54+
- name: Install pnpm
55+
uses: pnpm/action-setup@v4
56+
with:
57+
version: 10
58+
59+
- name: Use Node.js ${{ matrix.node-version }}
6060
uses: actions/setup-node@v4
6161
with:
62-
node-version: 20
62+
node-version: ${{ matrix.node-version }}
63+
cache: 'pnpm'
6364

64-
- name: Monorepo install
65-
uses: ./.github/actions/setup
65+
- name: Install dependencies
66+
shell: bash
67+
run: pnpm install --frozen-lockfile --prefer-offline
6668

6769
- name: Build code 🛠
6870
run: pnpm all:build

.github/workflows/release.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Release
33
on:
44
workflow_dispatch:
55
inputs:
6+
version:
7+
description: 'Specify the version'
8+
required: false
9+
type: string
610
dryRun:
711
description: 'Start the release with dryRun parameter'
812
required: true
@@ -11,31 +15,43 @@ on:
1115

1216
jobs:
1317
release:
14-
if: (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/release') || (github.event_name == 'workflow_dispatch' && github.event.inputs.dryRun == 'true' && github.ref == 'refs/heads/main')
18+
strategy:
19+
matrix:
20+
node-version: [20]
21+
22+
if: (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/release') || (github.event_name == 'workflow_dispatch' && github.event.inputs.dryRun == 'true')
1523
name: Release new version 🛠
1624
runs-on: ubuntu-latest
1725
permissions:
1826
contents: write
1927
actions: write
2028
issues: write
2129
pull-requests: write
30+
id-token: write
2231
steps:
2332
- name: Check out the code 🗄
2433
uses: actions/checkout@v4
2534
with:
2635
fetch-depth: 0
2736
persist-credentials: false
2837

29-
- name: Setup NodeJS 💿
38+
- name: Install pnpm
39+
uses: pnpm/action-setup@v4
40+
with:
41+
version: 10
42+
43+
- name: Use Node.js ${{ matrix.node-version }}
3044
uses: actions/setup-node@v4
3145
with:
32-
node-version: 20
46+
node-version: ${{ matrix.node-version }}
47+
cache: 'pnpm'
3348

34-
- name: Monorepo install
35-
uses: ./.github/actions/setup
49+
- name: Install dependencies
50+
shell: bash
51+
run: pnpm install --frozen-lockfile --prefer-offline
3652

3753
- name: Release new version 🛠
38-
run: pnpm lib:release -- --ci --verbose --skip-nx-cache --dryRun=${{ github.event.inputs.dryRun }}
54+
run: pnpm exec nx release ${{ github.event.inputs.version || '' }} --verbose --dryRun=${{ github.event.inputs.dryRun }}
3955
env:
40-
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
41-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
56+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
57+
NPM_CONFIG_PROVENANCE: true

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@ Thumbs.db
4141
.angular
4242

4343
.vercel
44-
.nx
44+
.nx
45+
.cursor/rules/nx-rules.mdc
46+
.github/instructions/nx.instructions.md

.lintstagedrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"*.ts": ["nx affected:lint --fix --files"],
3-
"*": ["npx nx format:write --files"],
4-
"*.css": ["npx stylelint --fix"]
3+
"*": ["npx nx format:write --files"]
54
}

.nxreleaserc.json

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

.prettierrc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
"bracketSpacing": true,
88
"proseWrap": "always",
99
"singleAttributePerLine": true,
10-
"plugins": ["prettier-plugin-packagejson", "@ianvs/prettier-plugin-sort-imports"],
10+
"plugins": [
11+
"prettier-plugin-packagejson",
12+
"@ianvs/prettier-plugin-sort-imports",
13+
"prettier-plugin-tailwindcss"
14+
],
1115
"importOrder": [
1216
"^~/(.*)$",
1317
"^[.]",
@@ -18,5 +22,6 @@
1822
"",
1923
"<BUILTIN_MODULES>"
2024
],
21-
"importOrderParserPlugins": ["typescript", "decorators-legacy"]
25+
"importOrderParserPlugins": ["typescript", "decorators-legacy"],
26+
"tailwindFunctions": ["twMerge", "createTheme"]
2227
}

.vscode/extensions.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"angular.ng-template",
44
"nrwl.angular-console",
55
"esbenp.prettier-vscode",
6-
"firsttris.vscode-jest-runner",
76
"dbaeumer.vscode-eslint"
87
]
98
}

0 commit comments

Comments
 (0)