Skip to content

Add project configution. Refs #108 #109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 21, 2024
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
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,12 @@
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": ["out", "dist", "**/*.d.ts", "*.js", "webview-ui"]
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts",
"*.js",
"webview-ui",
"node_modules"
]
}
11 changes: 2 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 16
node-version: 20
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x.x'
dotnet-version: '8.x.x'
- name: Install NPM Packages
run: npm ci
- name: Lint
Expand All @@ -51,13 +51,6 @@ jobs:
dotnet build
dotnet ef --version
working-directory: ./sample_dotnet
- name: Test
run: |
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
npm test
env:
DISPLAY: ':99.0'
VSCODE_VERSION: ${{ matrix.vscodeVersion }}

publish:
name: Publish
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"eslint.validate": ["javascript", "typescript"],
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "always"
},
"[typescript]": {
"editor.formatOnSave": false
Expand Down
28 changes: 23 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,27 @@ A VS Code extension to manage Entity Framework migrations.
- [Scaffold](https://learn.microsoft.com/en-us/ef/core/cli/dotnet#dotnet-ef-dbcontext-scaffold) `DbContext` & entity types
- Generate ER Diagram (Requires EF Core 7+)

### ER Diagram
## Extension Settings

A [`Mermaid`](https://mermaid.js.org/syntax/entityRelationshipDiagram.html) [`.t4`](https://learn.microsoft.com/en-us/ef/core/managing-schemas/scaffolding/templates) template will be installed into the project. You can ignore this file (by adding it to `.gitignore`), or add it to source control. The template file is used to generate the ER Diagram, feel free to customise it. If you delete it, it will be regenerated next time you generate an ER Diagram.
This extension contributes the following settings:

<img src="./images/er-diagram.png" alt="Entity Framework ER Diagram" />
- `entityframework.project`: [Target Project](https://learn.microsoft.com/en-us/ef/core/cli/dotnet#target-project-and-startup-project)
<details><summary>Example</summary>

## Extension Settings
```json
{
"entityframework.project": "src/Infrastructure"
}
```

This extension contributes the following settings:
- `entityframework.startupProject`: [Startup Project](https://learn.microsoft.com/en-us/ef/core/cli/dotnet#target-project-and-startup-project)
<details><summary>Example</summary>

```json
{
"entityframework.startupProject": "ExampleAPI"
}
```

- `entityframework.commands`: Custom commands
<details><summary>Example</summary>
Expand Down Expand Up @@ -187,6 +199,12 @@ This extension contributes the following settings:

</details>

### ER Diagram

A [`Mermaid`](https://mermaid.js.org/syntax/entityRelationshipDiagram.html) [`.t4`](https://learn.microsoft.com/en-us/ef/core/managing-schemas/scaffolding/templates) template will be installed into the project. You can ignore this file (by adding it to `.gitignore`), or add it to source control. The template file is used to generate the ER Diagram, feel free to customise it. If you delete it, it will be regenerated next time you generate an ER Diagram.

<img src="./images/er-diagram.png" alt="Entity Framework ER Diagram" />

## Performance

The EF tools execute application code at design time to get information about the project, thus _performance on large projects can be slow_.
Expand Down
10 changes: 10 additions & 0 deletions icons/gear_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions icons/gear_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading