Skip to content

Commit 2706852

Browse files
authored
feat: prepare 1.0.0 from beta (#76)
2 parents 8eaf281 + 26ed694 commit 2706852

File tree

428 files changed

+32197
-46221
lines changed

Some content is hidden

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

428 files changed

+32197
-46221
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
dist

.eslintrc.json

Lines changed: 23 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,36 @@
11
{
22
"root": true,
33
"ignorePatterns": ["!**/*"],
4-
"plugins": ["@nx", "@typescript-eslint"],
5-
"extends": ["plugin:@angular-eslint/recommended", "plugin:@typescript-eslint/recommended-type-checked", "prettier"],
4+
"plugins": ["@nx", "@typescript-eslint", "prettier"],
5+
"extends": [
6+
"plugin:@angular-eslint/recommended",
7+
"plugin:@typescript-eslint/recommended",
8+
"prettier"
9+
],
610
"overrides": [
711
{
812
"files": ["*.ts"],
9-
"plugins": [],
10-
"extends": [],
1113
"rules": {
12-
// eslint
13-
"no-extra-semi": 0,
14-
"comma-dangle": 0,
15-
"no-empty-function": 0,
16-
// typescript-eslint
17-
"@typescript-eslint/comma-dangle": 0,
18-
"@typescript-eslint/no-extra-semi": 2,
19-
"@typescript-eslint/lines-around-comment": 1,
20-
"@typescript-eslint/member-delimiter-style": 2,
21-
"@typescript-eslint/member-ordering": [
22-
1,
14+
"prettier/prettier": [
15+
"error",
2316
{
24-
"default": ["signature", "field", "constructor", "method"]
17+
"endOfLine": "auto"
2518
}
2619
],
27-
"@typescript-eslint/no-empty-function": 1,
28-
"@typescript-eslint/no-explicit-any": 1,
29-
"@typescript-eslint/no-unnecessary-condition": 2,
30-
"@typescript-eslint/no-unsafe-assignment": 0,
31-
"@typescript-eslint/no-unsafe-call": 0,
32-
"@typescript-eslint/no-unsafe-argument": 0,
33-
"@typescript-eslint/no-unsafe-member-access": 0,
34-
"@typescript-eslint/no-floating-promises": 0,
35-
"@typescript-eslint/consistent-type-imports": 2,
36-
"@typescript-eslint/consistent-type-exports": 2,
37-
"@typescript-eslint/no-namespace": 0,
38-
// angular-eslint
39-
"@angular-eslint/no-host-metadata-property": "off",
40-
// nx
41-
"@nx/dependency-checks": 2,
42-
"@nx/enforce-module-boundaries": 2
20+
21+
// ESLint
22+
"no-extra-semi": "off",
23+
"comma-dangle": "off",
24+
"no-empty-function": "off",
25+
26+
// TypeScript
27+
"@typescript-eslint/no-extra-semi": "error",
28+
"@typescript-eslint/no-empty-function": "warn",
29+
"@typescript-eslint/no-explicit-any": "warn",
30+
"@typescript-eslint/consistent-type-imports": "error",
31+
32+
// Nx specific rules
33+
"@nx/enforce-module-boundaries": "error"
4334
}
4435
}
4536
]

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: '🐞 Bug Report'
2+
description: Report a bug
3+
title: '[Bug] '
4+
labels: 'Type: bug'
5+
assignees: MGREMY
6+
7+
body:
8+
- type: dropdown
9+
id: is-regression
10+
attributes:
11+
label: Is this a regression?
12+
options:
13+
- 'Yes'
14+
- 'No'
15+
- "I don't know"
16+
validations:
17+
required: true
18+
19+
- type: textarea
20+
id: description
21+
attributes:
22+
label: Description
23+
placeholder: |
24+
A clear and concise description of what the bug is.
25+
What is the current behavior?
26+
What is the expected behavior?
27+
Please provide a link to a minimal reproduction of the problem with instructions.
28+
validations:
29+
required: true
30+
31+
- type: textarea
32+
id: exception-or-error
33+
attributes:
34+
label: Please provide the exception or error you saw
35+
render: true
36+
37+
- type: dropdown
38+
id: os
39+
attributes:
40+
label: OS
41+
options:
42+
- Unix (Linux, macOS, etc.)
43+
- Windows
44+
- iOS, Android, etc.
45+
- Something else
46+
validations:
47+
required: true
48+
49+
- type: dropdown
50+
id: browser
51+
attributes:
52+
label: Browser
53+
options:
54+
- Chrome
55+
- Firefox
56+
- Safari
57+
- Edge
58+
- IE
59+
- Other
60+
61+
- type: input
62+
id: node-version
63+
attributes:
64+
label: Node version
65+
validations:
66+
required: true
67+
68+
- type: input
69+
id: flowbite-angular-version
70+
attribute:
71+
label: Flowbite-angular version
72+
validations:
73+
required: true
74+
75+
- type: textarea
76+
id: other
77+
attributes:
78+
label: Anything else?
79+
placeholder: |
80+
Please provide any additional information that may be helpful in understanding the issue.
81+
If you have a screenshot, attach it here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: '🚀 Feature Request'
2+
description: Suggest a feature
3+
title: '[Feature] '
4+
labels: 'Type: enhancement'
5+
assignees: MGREMY
6+
7+
body:
8+
- type: textarea
9+
id: description
10+
attributes:
11+
label: Description
12+
placeholder: |
13+
A clear and concise description of what the problem is.
14+
Ex. I'm always frustrated when [...]
15+
validations:
16+
required: true
17+
18+
- type: textarea
19+
id: proposed-solution
20+
attributes:
21+
label: Proposed solution
22+
placeholder: |
23+
A clear and concise description of what you want to happen.
24+
What is the expected behavior?
25+
What is the current behavior?
26+
What is the motivation / use case for changing the behavior?
27+
validations:
28+
required: true
29+
30+
- type: textarea
31+
id: alternatives-considered
32+
attributes:
33+
label: Alternatives considered
34+
placeholder: |
35+
A clear and concise description of any alternative solutions or features you've considered.

.github/actions/setup/action.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
########################################################################################
2+
# "pnpm install" composite action for pnpm 7/8+ #
3+
#--------------------------------------------------------------------------------------#
4+
# Requirement: @setup/node should be run before #
5+
# #
6+
# Usage in workflows steps: #
7+
# #
8+
# - name: 📥 Monorepo install #
9+
# uses: ./.github/actions/pnpm-install #
10+
# with: #
11+
# enable-corepack: false # (default) #
12+
# cwd: ${{ github.workspace }}/apps/my-app # (default = '.') #
13+
# #
14+
# Reference: #
15+
# - latest: https://gist.github.com/belgattitude/838b2eba30c324f1f0033a797bab2e31 #
16+
# #
17+
# Versions: #
18+
# - 1.1.0 - 15-07-2023 - Add project custom directory support. #
19+
########################################################################################
20+
21+
name: 'PNPM install'
22+
description: 'Run pnpm install with cache enabled'
23+
24+
inputs:
25+
enable-corepack:
26+
description: 'Enable corepack'
27+
required: false
28+
default: 'false'
29+
cwd:
30+
description: "Changes node's process.cwd() if the project is not located on the root. Default to process.cwd()"
31+
required: false
32+
default: '.'
33+
34+
runs:
35+
using: 'composite'
36+
37+
steps:
38+
- name: ⚙️ Enable Corepack
39+
if: ${{ inputs.enable-corepack == 'true' }}
40+
shell: bash
41+
working-directory: ${{ inputs.cwd }}
42+
run: |
43+
corepack enable
44+
echo "corepack enabled"
45+
46+
- uses: pnpm/action-setup@v4
47+
if: ${{ inputs.enable-corepack == 'false' }}
48+
with:
49+
run_install: false
50+
# If you're not setting the packageManager field in package.json, add the version here
51+
version: latest-9
52+
53+
- name: Expose pnpm config(s) through "$GITHUB_OUTPUT"
54+
id: pnpm-config
55+
shell: bash
56+
run: |
57+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
58+
59+
- name: Cache rotation keys
60+
id: cache-rotation
61+
shell: bash
62+
run: |
63+
echo "YEAR_MONTH=$(/bin/date -u "+%Y%m")" >> $GITHUB_OUTPUT
64+
65+
- uses: actions/cache@v4
66+
name: Setup pnpm cache
67+
with:
68+
path: ${{ steps.pnpm-config.outputs.STORE_PATH }}
69+
key: ${{ runner.os }}-pnpm-store-cache-${{ steps.cache-rotation.outputs.YEAR_MONTH }}-${{ hashFiles('**/pnpm-lock.yaml') }}
70+
restore-keys: |
71+
${{ runner.os }}-pnpm-store-cache-${{ steps.cache-rotation.outputs.YEAR_MONTH }}-
72+
73+
# Prevent store to grow over time (not needed with yarn)
74+
# Note: not perfect as it prune too much in monorepos so the idea
75+
# is to use cache-rotation as above. In the future this might work better.
76+
#- name: Prune pnpm store
77+
# shell: bash
78+
# run: pnpm prune store
79+
80+
- name: Install dependencies
81+
shell: bash
82+
working-directory: ${{ inputs.cwd }}
83+
run: pnpm install --frozen-lockfile --prefer-offline
84+
env:
85+
# Other environment variables
86+
HUSKY: '0' # By default do not run HUSKY install
87+
88+
- name: Derive appropriate SHAs for base and head for `nx affected` commands
89+
uses: nrwl/nx-set-shas@v2

.github/pull_request_template.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## PR Checklist
2+
3+
Please check if your PR fulfills the following requirements:
4+
5+
<!--- [ ] Tests for the changes have been added (for bug fixes/features)-->
6+
7+
- [ ] Docs have been added/updated (for bug fixes/features)
8+
9+
## PR Type
10+
11+
What kind of change does this PR introduce?
12+
13+
<!-- Please check the one that applies to this PR using "x". -->
14+
15+
- [ ] Bugfix
16+
- [ ] Feature
17+
- [ ] Code style update (formatting, local variables)
18+
- [ ] Refactoring (no functional changes, no API changes)
19+
- [ ] Build related changes
20+
- [ ] CI-related changes
21+
- [ ] Documentation content changes
22+
- [ ] Other... Please describe:
23+
24+
## Issue Number
25+
26+
<!-- Bugs and features must be linked to an issue. -->
27+
28+
Issue Number: N/A
29+
30+
## Does this PR introduce a breaking change?
31+
32+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
33+
34+
- [ ] Yes
35+
- [ ] No
36+
37+
## Other information
38+
39+
@coderabbitai summary

0 commit comments

Comments
 (0)