Skip to content

Commit 0d4954b

Browse files
committed
Add project configution. Refs #108
1 parent e880cdb commit 0d4954b

30 files changed

+3675
-18358
lines changed

.eslintrc.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,12 @@
2222
"no-throw-literal": "warn",
2323
"semi": "off"
2424
},
25-
"ignorePatterns": ["out", "dist", "**/*.d.ts", "*.js", "webview-ui"]
25+
"ignorePatterns": [
26+
"out",
27+
"dist",
28+
"**/*.d.ts",
29+
"*.js",
30+
"webview-ui",
31+
"node_modules"
32+
]
2633
}

.github/workflows/main.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
- name: Setup Node.js
2626
uses: actions/[email protected]
2727
with:
28-
node-version: 16
28+
node-version: 20
2929
- name: Setup dotnet
3030
uses: actions/setup-dotnet@v3
3131
with:
32-
dotnet-version: '7.x.x'
32+
dotnet-version: '8.x.x'
3333
- name: Install NPM Packages
3434
run: npm ci
3535
- name: Lint
@@ -51,13 +51,6 @@ jobs:
5151
dotnet build
5252
dotnet ef --version
5353
working-directory: ./sample_dotnet
54-
- name: Test
55-
run: |
56-
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
57-
npm test
58-
env:
59-
DISPLAY: ':99.0'
60-
VSCODE_VERSION: ${{ matrix.vscodeVersion }}
6154

6255
publish:
6356
name: Publish

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"eslint.validate": ["javascript", "typescript"],
2222
"editor.formatOnSave": true,
2323
"editor.codeActionsOnSave": {
24-
"source.fixAll.eslint": true
24+
"source.fixAll.eslint": "always"
2525
},
2626
"[typescript]": {
2727
"editor.formatOnSave": false

README.md

+23-5
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,27 @@ A VS Code extension to manage Entity Framework migrations.
2323
- [Scaffold](https://learn.microsoft.com/en-us/ef/core/cli/dotnet#dotnet-ef-dbcontext-scaffold) `DbContext` & entity types
2424
- Generate ER Diagram (Requires EF Core 7+)
2525

26-
### ER Diagram
26+
## Extension Settings
2727

28-
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.
28+
This extension contributes the following settings:
2929

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

32-
## Extension Settings
33+
```json
34+
{
35+
"entityframework.project": "src/Infrastructure"
36+
}
37+
```
3338

34-
This extension contributes the following settings:
39+
- `entityframework.startupProject`: [Startup Project](https://learn.microsoft.com/en-us/ef/core/cli/dotnet#target-project-and-startup-project)
40+
<details><summary>Example</summary>
41+
42+
```json
43+
{
44+
"entityframework.startupProject": "ExampleAPI"
45+
}
46+
```
3547

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

188200
</details>
189201

202+
### ER Diagram
203+
204+
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.
205+
206+
<img src="./images/er-diagram.png" alt="Entity Framework ER Diagram" />
207+
190208
## Performance
191209

192210
The EF tools execute application code at design time to get information about the project, thus _performance on large projects can be slow_.

icons/gear_dark.svg

+10
Loading

icons/gear_light.svg

+10
Loading

0 commit comments

Comments
 (0)