Skip to content

Commit

Permalink
Merge pull request #109 from badsyntax/feature/configure
Browse files Browse the repository at this point in the history
Add project configution. Refs #108
  • Loading branch information
badsyntax authored Sep 21, 2024
2 parents e880cdb + 0d4954b commit 1f4c7ce
Show file tree
Hide file tree
Showing 30 changed files with 3,675 additions and 18,358 deletions.
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

0 comments on commit 1f4c7ce

Please sign in to comment.