Skip to content

Commit

Permalink
feat: v8
Browse files Browse the repository at this point in the history
  • Loading branch information
Chau Tran authored and Chau Tran committed Mar 30, 2022
2 parents 404f1b5 + c395954 commit 6ae46d9
Show file tree
Hide file tree
Showing 803 changed files with 50,192 additions and 45,791 deletions.
50 changes: 50 additions & 0 deletions .cz-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
module.exports = {
types: [
{ value: 'feat', name: 'feat: A new feature' },
{ value: 'fix', name: 'fix: A bug fix' },
{ value: 'docs', name: 'docs: Documentation only changes' },
{
value: 'cleanup',
name: 'cleanup: A code change that neither fixes a bug nor adds a feature',
},
{
value: 'chore',
name: "chore: Other changes that don't modify src or test files",
},
],

scopes: [
{ name: 'core', description: 'AutoMapper core' },
{
name: 'classes',
description: 'AutoMapper classes strategy',
},
{ name: 'pojos', description: 'AutoMapper pojos strategy' },
{
name: 'nestjs',
description: 'AutoMapper nestjs integration))',
},
],
// override the messages, defaults are as follows
messages: {
type: "Select the type of change that you're committing:",
scope: '\nDenote the SCOPE of this change (optional):',
// used if allowCustomScopes is true
customScope: 'Denote the SCOPE of this change:',
subject:
'Write a SHORT, IMPERATIVE (lowercase) description of the change:\n',
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
breaking: 'List any BREAKING CHANGES (optional):\n',
footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
confirmCommit:
'Are you sure you want to proceed with the commit above?',
},

allowCustomScopes: true,
allowBreakingChanges: ['feat', 'fix'],
// skip any questions you want
skipQuestions: ['ticketNumber'],

// limit subject length
subjectLimit: 100,
};
2 changes: 1 addition & 1 deletion .env-example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
GITHUB_TOKEN
GITHUB_TOKEN=
109 changes: 32 additions & 77 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,80 +1,35 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"rules": {
"@typescript-eslint/no-explicit-any": 0
},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "type:plugin",
"onlyDependOnLibsWithTags": [
"type:library",
"type:type-defs",
"type:plugin"
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
},
{
"sourceTag": "type:library",
"onlyDependOnLibsWithTags": ["type:type-defs"]
},
{
"sourceTag": "type:integration",
"onlyDependOnLibsWithTags": ["type:library", "type:type-defs"]
},
{
"sourceTag": "type:test",
"onlyDependOnLibsWithTags": [
"type:library",
"type:plugin",
"type:integration",
"type:type-defs",
"type:transformer-plugin"
]
},
{
"sourceTag": "type:transformer-plugin",
"onlyDependOnLibsWithTags": ["type:plugin"]
},
{
"sourceTag": "type:utility",
"onlyDependOnLibsWithTags": [
"type:library",
"type:type-defs",
"type:plugin"
]
},
{
"sourceTag": "scope:classes",
"onlyDependOnLibsWithTags": [
"type:type-defs",
"scope:core",
"scope:classes"
]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
}
]
}
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ body:
- label: "<code>@automapper/classes</code>"
- label: "<code>@automapper/nestjs</code>"
- label: "<code>@automapper/pojos</code>"
- label: "<code>@automapper/mikro</code>"
- label: "<code>@automapper/sequelize</code>"
- label: "<code>@automapper/types</code>"
- label: "Other (see below)"

- type: input
Expand All @@ -93,7 +93,7 @@ body:
attributes:
label: "AutoMapper version"
description: "Which version of `@automapper/*` (the ones you've selected above) are you using?"
value: "6.2.1"
value: "8.0.0"

- type: textarea
validations:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/docusaurus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ jobs:
with:
persist-credentials: false
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Create local changes and commit
run: |
cd docs-site
yarn
cd packages/documentations
npm install
npm run build
cd build
git init
git add .
Expand All @@ -25,6 +29,6 @@ jobs:
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: new-docs
branch: v8-docs
force: true
directory: docs-site/build
directory: packages/documentations/build
23 changes: 0 additions & 23 deletions .github/workflows/stale.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/unit-test.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ testem.log
# System Files
.DS_Store
Thumbs.db
/.env

old
.env
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/pre-commit

This file was deleted.

10 changes: 9 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{
"singleQuote": true
"singleQuote": true,
"tabWidth": 4,
"printWidth": 80,
"overrides": [
{
"files": [".prettierrc", ".swcrc"],
"options": { "parser": "json" }
}
]
}
Loading

0 comments on commit 6ae46d9

Please sign in to comment.