@adriankulik/create-fullstack-app 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +21 -4
- package/templates/backend/dotnet/lint.sh +1 -0
- package/templates/backend/dotnet/start.sh +1 -0
- package/templates/backend/dotnet/test.sh +1 -0
- package/templates/backend/fastapi/lint.sh +1 -0
- package/templates/backend/fastapi/requirements.txt +1 -1
- package/templates/backend/fastapi/start.sh +1 -0
- package/templates/backend/fastapi/test.sh +1 -0
- package/templates/backend/flask/lint.sh +1 -0
- package/templates/backend/flask/requirements.txt +1 -1
- package/templates/backend/flask/start.sh +1 -0
- package/templates/backend/flask/test.sh +1 -0
- package/templates/backend/nodejs/eslint.config.js +15 -0
- package/templates/backend/nodejs/lint.sh +1 -0
- package/templates/backend/nodejs/package-lock.json +1121 -2112
- package/templates/backend/nodejs/package.json +6 -6
- package/templates/backend/nodejs/start.sh +1 -0
- package/templates/backend/nodejs/test.sh +1 -0
- package/templates/base/.editorconfig +18 -0
- package/templates/base/.github/workflows/test.yml +26 -10
- package/templates/base/gitignore +4 -0
- package/templates/frontend/angular/angular.json +6 -0
- package/templates/frontend/angular/eslint.config.js +35 -0
- package/templates/frontend/angular/lint.sh +1 -0
- package/templates/frontend/angular/package-lock.json +1420 -488
- package/templates/frontend/angular/package.json +9 -2
- package/templates/frontend/angular/src/app/app.component.html +32 -0
- package/templates/frontend/angular/src/app/app.component.ts +12 -35
- package/templates/frontend/angular/start.sh +1 -0
- package/templates/frontend/angular/test.sh +1 -0
- package/templates/frontend/nextjs/__tests__/page.test.tsx +4 -4
- package/templates/frontend/nextjs/app/page.tsx +8 -2
- package/templates/frontend/nextjs/eslint.config.mjs +7 -0
- package/templates/frontend/nextjs/lint.sh +1 -0
- package/templates/frontend/nextjs/package-lock.json +1336 -872
- package/templates/frontend/nextjs/package.json +11 -10
- package/templates/frontend/nextjs/start.sh +1 -0
- package/templates/frontend/nextjs/test.sh +1 -0
- package/templates/frontend/nextjs/tsconfig.json +2 -1
- package/templates/frontend/svelte/eslint.config.js +29 -0
- package/templates/frontend/svelte/lint.sh +1 -0
- package/templates/frontend/svelte/package-lock.json +1676 -3482
- package/templates/frontend/svelte/package.json +14 -13
- package/templates/frontend/svelte/src/App.spec.ts +7 -7
- package/templates/frontend/svelte/src/App.svelte +14 -7
- package/templates/frontend/svelte/start.sh +1 -0
- package/templates/frontend/svelte/test.sh +1 -0
- package/templates/frontend/svelte/vite.config.ts +2 -2
- package/templates/frontend/vue/eslint.config.js +26 -0
- package/templates/frontend/vue/lint.sh +1 -0
- package/templates/frontend/vue/package-lock.json +1598 -2755
- package/templates/frontend/vue/package.json +13 -13
- package/templates/frontend/vue/src/App.vue +30 -9
- package/templates/frontend/vue/src/__tests__/App.spec.ts +4 -4
- package/templates/frontend/vue/start.sh +1 -0
- package/templates/frontend/vue/test.sh +1 -0
- package/templates/frontend/vue/tsconfig.json +13 -5
- package/templates/frontend/vue/vite.config.ts +0 -1
- package/cli/package-lock.json +0 -1338
- package/cli/package.json +0 -23
- package/templates/backend/nodejs/.eslintrc.json +0 -15
- package/templates/frontend/nextjs/.eslintrc.json +0 -3
- package/templates/frontend/svelte/.eslintrc.cjs +0 -27
- package/templates/frontend/vue/.eslintrc.cjs +0 -18
|
@@ -5,23 +5,23 @@
|
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "tsx src/index.ts",
|
|
7
7
|
"test": "vitest run",
|
|
8
|
-
"lint": "eslint . --
|
|
8
|
+
"lint": "eslint . --fix"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"cors": "^2.8.5",
|
|
12
12
|
"express": "^4.22.2"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
+
"@eslint/js": "^10.0.1",
|
|
15
16
|
"@types/cors": "^2.8.17",
|
|
16
17
|
"@types/express": "^4.17.21",
|
|
17
18
|
"@types/node": "^20.12.7",
|
|
18
19
|
"@types/supertest": "^6.0.2",
|
|
19
|
-
"
|
|
20
|
-
"@typescript-eslint/parser": "^7.7.1",
|
|
21
|
-
"eslint": "^8.57.0",
|
|
20
|
+
"eslint": "^10.4.0",
|
|
22
21
|
"supertest": "^7.0.0",
|
|
23
22
|
"tsx": "^4.7.2",
|
|
24
|
-
"typescript": "^5.
|
|
25
|
-
"
|
|
23
|
+
"typescript": "^5.9.0",
|
|
24
|
+
"typescript-eslint": "^8.59.3",
|
|
25
|
+
"vitest": "^4.1.6"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
indent_style = space
|
|
5
|
+
indent_size = 2
|
|
6
|
+
end_of_line = lf
|
|
7
|
+
charset = utf-8
|
|
8
|
+
trim_trailing_whitespace = true
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
|
|
11
|
+
[*.md]
|
|
12
|
+
trim_trailing_whitespace = false
|
|
13
|
+
|
|
14
|
+
[*.{cs,csproj,sln}]
|
|
15
|
+
indent_size = 4
|
|
16
|
+
|
|
17
|
+
[Makefile]
|
|
18
|
+
indent_style = tab
|
|
@@ -12,25 +12,41 @@ jobs:
|
|
|
12
12
|
steps:
|
|
13
13
|
- uses: actions/checkout@v4
|
|
14
14
|
|
|
15
|
+
# --- Language Runtimes (conditional) ---
|
|
16
|
+
- name: Set up Node.js
|
|
17
|
+
uses: actions/setup-node@v4
|
|
18
|
+
with:
|
|
19
|
+
node-version: '20'
|
|
20
|
+
|
|
15
21
|
- name: Set up Python
|
|
22
|
+
if: hashFiles('backend/requirements.txt') != ''
|
|
16
23
|
uses: actions/setup-python@v5
|
|
17
24
|
with:
|
|
18
25
|
python-version: '3.11'
|
|
19
26
|
|
|
20
|
-
- name: Set up
|
|
21
|
-
|
|
27
|
+
- name: Set up .NET
|
|
28
|
+
if: hashFiles('backend/*.sln') != ''
|
|
29
|
+
uses: actions/setup-dotnet@v4
|
|
22
30
|
with:
|
|
23
|
-
|
|
31
|
+
dotnet-version: '9.0.x'
|
|
32
|
+
|
|
33
|
+
# --- Backend Dependencies (conditional) ---
|
|
34
|
+
- name: Install Python backend dependencies
|
|
35
|
+
if: hashFiles('backend/requirements.txt') != ''
|
|
36
|
+
run: pip install -r backend/requirements.txt
|
|
37
|
+
|
|
38
|
+
- name: Install Node.js backend dependencies
|
|
39
|
+
if: hashFiles('backend/package.json') != ''
|
|
40
|
+
run: cd backend && npm ci
|
|
24
41
|
|
|
25
|
-
- name:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
pip install -r requirements.txt
|
|
42
|
+
- name: Restore .NET backend dependencies
|
|
43
|
+
if: hashFiles('backend/*.sln') != ''
|
|
44
|
+
run: cd backend && dotnet restore backend.sln
|
|
29
45
|
|
|
46
|
+
# --- Frontend Dependencies ---
|
|
30
47
|
- name: Install frontend dependencies
|
|
31
|
-
run:
|
|
32
|
-
cd frontend
|
|
33
|
-
npm install
|
|
48
|
+
run: cd frontend && npm ci
|
|
34
49
|
|
|
50
|
+
# --- Run Tests ---
|
|
35
51
|
- name: Run tests
|
|
36
52
|
run: ./test.sh
|
package/templates/base/gitignore
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
const eslint = require("@eslint/js");
|
|
3
|
+
const tseslint = require("typescript-eslint");
|
|
4
|
+
const angular = require("@angular-eslint/eslint-plugin");
|
|
5
|
+
const angularTemplate = require("@angular-eslint/eslint-plugin-template");
|
|
6
|
+
const angularTemplateParser = require("@angular-eslint/template-parser");
|
|
7
|
+
|
|
8
|
+
module.exports = tseslint.config(
|
|
9
|
+
{
|
|
10
|
+
files: ["**/*.ts"],
|
|
11
|
+
extends: [
|
|
12
|
+
eslint.configs.recommended,
|
|
13
|
+
...tseslint.configs.recommended,
|
|
14
|
+
],
|
|
15
|
+
plugins: {
|
|
16
|
+
"@angular-eslint": angular,
|
|
17
|
+
},
|
|
18
|
+
rules: {
|
|
19
|
+
"@angular-eslint/component-selector": [
|
|
20
|
+
"error",
|
|
21
|
+
{ type: "element", prefix: "app", style: "kebab-case" },
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
files: ["**/*.html"],
|
|
27
|
+
plugins: {
|
|
28
|
+
"@angular-eslint/template": angularTemplate,
|
|
29
|
+
},
|
|
30
|
+
languageOptions: {
|
|
31
|
+
parser: angularTemplateParser,
|
|
32
|
+
},
|
|
33
|
+
rules: /** @type {any} */ (angularTemplate.configs["recommended"].rules),
|
|
34
|
+
}
|
|
35
|
+
);
|