Skip to content

Commit 45dde88

Browse files
authored
Merge pull request #586 from Lemoncode/feature/#585-create-base-structure
Feature/#585 create base structure
2 parents bc7d808 + f22c54d commit 45dde88

473 files changed

Lines changed: 9250 additions & 9486 deletions

File tree

Some content is hidden

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

.changeset/config.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "vnext",
9+
"updateInternalDependencies": "patch",
10+
"ignore": [],
11+
"privatePackages": {
12+
"version": false,
13+
"tag": false
14+
}
15+
}

.changeset/pink-pots-carry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'mongo-modeler': minor
3+
---
4+
5+
Initial Mongo Modeler VSCode extension scaffolding

.eslintrc.cjs

Lines changed: 0 additions & 18 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/dependabot.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm'
4+
directory: '/'
5+
schedule:
6+
interval: 'weekly'
7+
open-pull-requests-limit: 10
8+
ignore:
9+
- dependency-name: '@types/node'
10+
update-types:
11+
- 'version-update:semver-major'
12+
groups:
13+
minor-and-patch:
14+
update-types:
15+
- 'minor'
16+
- 'patch'
17+
18+
- package-ecosystem: 'github-actions'
19+
directory: '/'
20+
schedule:
21+
interval: 'weekly'
22+
groups:
23+
github-actions:
24+
patterns:
25+
- '*'
Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,39 @@
1-
name: Publish app
1+
name: CD Workflow
22

33
on:
44
push:
55
branches:
66
- main
77

88
jobs:
9-
deploy-react-app:
9+
cd:
1010
environment:
1111
name: 'Website'
1212
url: https://www.mongo-modeler.com
1313
runs-on: ubuntu-latest
14+
name: Deploy Mongo Modeler
1415
steps:
15-
- uses: actions/checkout@v3
16+
- name: Checkout repository
17+
uses: actions/checkout@v6
18+
19+
- name: Use Node.js
20+
uses: actions/setup-node@v6
21+
with:
22+
node-version-file: '.nvmrc'
23+
cache: 'npm'
24+
1625
- name: Install
1726
run: npm ci
27+
1828
- name: Build
19-
run: npm run build
29+
run: node --run build
30+
2031
- name: Deploy
2132
uses: Azure/static-web-apps-deploy@v1
2233
with:
2334
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_MANGO_GLACIER_093E76303 }}
2435
repo_token: ${{ secrets.GITHUB_TOKEN }}
2536
action: 'upload'
26-
app_location: 'dist'
27-
output_location: 'dist'
37+
app_location: 'apps/web/dist'
2838
skip_app_build: true
2939
skip_api_build: true
30-
env:
31-
NODE_VERSION: 18.16.0

.github/workflows/ci.yml

Lines changed: 55 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI workflow
1+
name: CI Workflow
22

33
on: pull_request
44

@@ -7,43 +7,79 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout repository
10-
uses: actions/checkout@v4
10+
uses: actions/checkout@v6
1111

12-
- name: Use Node.js 20
13-
uses: actions/setup-node@v4
12+
- name: Use Node.js
13+
uses: actions/setup-node@v6
1414
with:
15-
node-version: "20"
16-
cache: "npm"
15+
node-version-file: '.nvmrc'
16+
cache: 'npm'
1717

1818
- name: Install dependencies
1919
run: npm ci
2020

21-
- name: Check TypeScript Types
22-
run: npm run tsc-check
21+
- name: Install test browsers
22+
run: node --run install:test-browsers
23+
24+
- name: Lint
25+
run: node --run lint
26+
27+
- name: Check TypeScript types
28+
run: node --run check-types
29+
30+
- name: Build
31+
run: node --run build
2332

2433
- name: Run tests
25-
run: npm test
34+
run: node --run test
2635

2736
e2e-tests:
2837
runs-on: ubuntu-latest
2938
steps:
3039
- name: Checkout repository
31-
uses: actions/checkout@v4
40+
uses: actions/checkout@v6
3241

33-
- name: Use Node.js 20
34-
uses: actions/setup-node@v4
42+
- name: Use Node.js
43+
uses: actions/setup-node@v6
3544
with:
36-
node-version: "20"
37-
cache: "npm"
45+
node-version-file: '.nvmrc'
46+
cache: 'npm'
3847

3948
- name: Install dependencies
4049
run: npm ci
4150

42-
- name: Build
43-
run: npm run build
51+
- name: Install test browsers
52+
run: node --run install:test-browsers
4453

45-
- name: Check TypeScript Types
46-
run: npm run tsc-check
54+
- name: Build
55+
run: node --run build
4756

4857
- name: Run E2E tests
49-
run: npm run ci:e2e
58+
run: node --run ci:e2e
59+
60+
changeset-check:
61+
if: github.event.pull_request.base.ref != 'main'
62+
runs-on: ubuntu-latest
63+
steps:
64+
- name: Checkout repository
65+
uses: actions/checkout@v6
66+
with:
67+
fetch-depth: 0
68+
69+
- name: Check for changeset
70+
run: |
71+
BASE=${{ github.event.pull_request.base.sha }}
72+
HEAD=${{ github.event.pull_request.head.sha }}
73+
74+
PACKAGES_CHANGED=$(git diff --name-only "$BASE" "$HEAD" -- packages/ | head -1)
75+
76+
if [ -n "$PACKAGES_CHANGED" ]; then
77+
CHANGESET_ADDED=$(git diff --name-only "$BASE" "$HEAD" -- '.changeset/*.md' | head -1)
78+
if [ -z "$CHANGESET_ADDED" ]; then
79+
echo "::error::This PR modifies packages/ but has no changeset. Run 'node --run changeset' to add one."
80+
exit 1
81+
fi
82+
echo "Changeset found for package changes."
83+
else
84+
echo "No package changes detected, skipping changeset check."
85+
fi

.github/workflows/pkg-publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: VSCode Extension Publish
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
paths:
8+
- 'packages/vscode-extension/**'
9+
- '.changeset/**'
10+
11+
concurrency: ${{ github.workflow }}-${{ github.ref }}
12+
13+
permissions:
14+
contents: write
15+
16+
jobs:
17+
publish:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v6
21+
22+
- uses: actions/setup-node@v6
23+
with:
24+
node-version-file: '.nvmrc'
25+
26+
- run: npm ci
27+
28+
- run: node --run build
29+
30+
- name: Publish VS Code extension
31+
run: node --run publish:vscode
32+
env:
33+
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}

.github/workflows/pkg-version.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Package Versioning
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [vnext]
7+
paths:
8+
- 'packages/**'
9+
- '.changeset/**'
10+
11+
concurrency: ${{ github.workflow }}-${{ github.ref }}
12+
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
17+
jobs:
18+
version:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v6
22+
23+
- uses: actions/setup-node@v6
24+
with:
25+
node-version-file: '.nvmrc'
26+
27+
- run: npm ci
28+
29+
- name: Create Version PR
30+
uses: changesets/action@v1
31+
with:
32+
title: 'chore: version packages'
33+
commit: 'chore: version packages'
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Dependencies
2+
node_modules
3+
4+
# Build outputs
5+
dist
6+
dist-ssr
7+
8+
# Turbo
9+
.turbo
10+
11+
# Test outputs
12+
coverage
13+
playwright-report/
14+
test-results/
15+
blob-report/
16+
playwright/.cache/
17+
118
# Logs
219
logs
320
*.log
@@ -7,22 +24,24 @@ yarn-error.log*
724
pnpm-debug.log*
825
lerna-debug.log*
926

10-
node_modules
11-
dist
12-
dist-ssr
27+
# Local env files
1328
*.local
1429

1530
# Editor directories and files
1631
.vscode/*
1732
!.vscode/extensions.json
33+
!.vscode/settings.json
34+
!.vscode/launch.json
1835
.idea
1936
.DS_Store
2037
*.suo
2138
*.ntvs*
2239
*.njsproj
2340
*.sln
2441
*.sw?
25-
/test-results/
26-
/playwright-report/
27-
/blob-report/
28-
/playwright/.cache/
42+
43+
# Vite
44+
.vite
45+
46+
# Temporary LICENSE copies (created by publish scripts)
47+
packages/*/LICENSE

0 commit comments

Comments
 (0)