@adriankulik/create-fullstack-app 1.0.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/LICENSE +21 -0
- package/README.md +84 -0
- package/cli/index.js +170 -0
- package/cli/package-lock.json +1338 -0
- package/cli/package.json +23 -0
- package/package.json +40 -0
- package/templates/backend/fastapi/lint.sh +9 -0
- package/templates/backend/fastapi/main.py +28 -0
- package/templates/backend/fastapi/requirements.txt +5 -0
- package/templates/backend/fastapi/start.sh +7 -0
- package/templates/backend/fastapi/test.sh +7 -0
- package/templates/backend/fastapi/test_main.py +19 -0
- package/templates/backend/flask/lint.sh +9 -0
- package/templates/backend/flask/main.py +24 -0
- package/templates/backend/flask/requirements.txt +5 -0
- package/templates/backend/flask/start.sh +7 -0
- package/templates/backend/flask/test.sh +7 -0
- package/templates/backend/flask/test_main.py +21 -0
- package/templates/base/.github/workflows/test.yml +36 -0
- package/templates/base/.vscode/extensions.json +8 -0
- package/templates/base/GEMINI.md +65 -0
- package/templates/base/README.md +37 -0
- package/templates/base/gitignore +13 -0
- package/templates/base/lint.sh +10 -0
- package/templates/base/start.sh +13 -0
- package/templates/base/test.sh +10 -0
- package/templates/frontend/angular/angular.json +84 -0
- package/templates/frontend/angular/karma.conf.js +45 -0
- package/templates/frontend/angular/lint.sh +2 -0
- package/templates/frontend/angular/package-lock.json +16204 -0
- package/templates/frontend/angular/package.json +40 -0
- package/templates/frontend/angular/src/app/app.component.spec.ts +24 -0
- package/templates/frontend/angular/src/app/app.component.ts +73 -0
- package/templates/frontend/angular/src/favicon.ico +0 -0
- package/templates/frontend/angular/src/index.html +12 -0
- package/templates/frontend/angular/src/main.ts +5 -0
- package/templates/frontend/angular/src/styles.css +1 -0
- package/templates/frontend/angular/start.sh +2 -0
- package/templates/frontend/angular/test.sh +2 -0
- package/templates/frontend/angular/tsconfig.app.json +16 -0
- package/templates/frontend/angular/tsconfig.json +32 -0
- package/templates/frontend/angular/tsconfig.spec.json +14 -0
- package/templates/frontend/nextjs/.eslintrc.json +3 -0
- package/templates/frontend/nextjs/__tests__/page.test.tsx +39 -0
- package/templates/frontend/nextjs/app/layout.tsx +18 -0
- package/templates/frontend/nextjs/app/page.tsx +69 -0
- package/templates/frontend/nextjs/jest.config.js +16 -0
- package/templates/frontend/nextjs/jest.setup.js +1 -0
- package/templates/frontend/nextjs/lint.sh +3 -0
- package/templates/frontend/nextjs/next.config.js +4 -0
- package/templates/frontend/nextjs/package-lock.json +9631 -0
- package/templates/frontend/nextjs/package.json +31 -0
- package/templates/frontend/nextjs/start.sh +2 -0
- package/templates/frontend/nextjs/test.sh +2 -0
- package/templates/frontend/nextjs/tsconfig.json +27 -0
- package/templates/frontend/svelte/.eslintrc.cjs +27 -0
- package/templates/frontend/svelte/index.html +12 -0
- package/templates/frontend/svelte/lint.sh +3 -0
- package/templates/frontend/svelte/package-lock.json +6129 -0
- package/templates/frontend/svelte/package.json +30 -0
- package/templates/frontend/svelte/src/App.spec.ts +36 -0
- package/templates/frontend/svelte/src/App.svelte +61 -0
- package/templates/frontend/svelte/src/main.ts +8 -0
- package/templates/frontend/svelte/src/setupTests.ts +1 -0
- package/templates/frontend/svelte/src/svelte-env.d.ts +2 -0
- package/templates/frontend/svelte/start.sh +2 -0
- package/templates/frontend/svelte/svelte.config.js +5 -0
- package/templates/frontend/svelte/test.sh +2 -0
- package/templates/frontend/svelte/tsconfig.json +9 -0
- package/templates/frontend/svelte/vite.config.ts +15 -0
- package/templates/frontend/vue/.eslintrc.cjs +18 -0
- package/templates/frontend/vue/index.html +12 -0
- package/templates/frontend/vue/lint.sh +3 -0
- package/templates/frontend/vue/package-lock.json +5110 -0
- package/templates/frontend/vue/package.json +30 -0
- package/templates/frontend/vue/src/App.vue +61 -0
- package/templates/frontend/vue/src/__tests__/App.spec.ts +37 -0
- package/templates/frontend/vue/src/main.ts +4 -0
- package/templates/frontend/vue/src/vite-env.d.ts +7 -0
- package/templates/frontend/vue/start.sh +2 -0
- package/templates/frontend/vue/test.sh +2 -0
- package/templates/frontend/vue/tsconfig.json +12 -0
- package/templates/frontend/vue/vite.config.ts +14 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "frontend",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "next dev",
|
|
7
|
+
"build": "next build",
|
|
8
|
+
"start": "next start",
|
|
9
|
+
"lint": "next lint",
|
|
10
|
+
"test": "jest --passWithNoTests"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"next": "^14.1.4",
|
|
14
|
+
"react": "^18.2.0",
|
|
15
|
+
"react-dom": "^18.2.0"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@testing-library/jest-dom": "^6.4.2",
|
|
19
|
+
"@testing-library/react": "^14.2.1",
|
|
20
|
+
"@testing-library/user-event": "^14.5.2",
|
|
21
|
+
"@types/node": "^20.11.30",
|
|
22
|
+
"@types/react": "^18.2.67",
|
|
23
|
+
"@types/react-dom": "^18.2.22",
|
|
24
|
+
"eslint": "^9.0.0",
|
|
25
|
+
"eslint-config-next": "^16.2.4",
|
|
26
|
+
"jest": "^29.7.0",
|
|
27
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
28
|
+
"prettier": "^3.2.5",
|
|
29
|
+
"typescript": "^5.4.2"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
4
|
+
"allowJs": true,
|
|
5
|
+
"skipLibCheck": true,
|
|
6
|
+
"strict": true,
|
|
7
|
+
"noEmit": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"module": "esnext",
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"resolveJsonModule": true,
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
"jsx": "preserve",
|
|
14
|
+
"incremental": true,
|
|
15
|
+
"baseUrl": ".",
|
|
16
|
+
"plugins": [
|
|
17
|
+
{
|
|
18
|
+
"name": "next"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"paths": {
|
|
22
|
+
"@/*": ["./*"]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
26
|
+
"exclude": ["node_modules"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
env: {
|
|
3
|
+
browser: true,
|
|
4
|
+
es2021: true,
|
|
5
|
+
node: true
|
|
6
|
+
},
|
|
7
|
+
extends: [
|
|
8
|
+
'eslint:recommended',
|
|
9
|
+
'plugin:@typescript-eslint/recommended',
|
|
10
|
+
'plugin:svelte/recommended'
|
|
11
|
+
],
|
|
12
|
+
parser: '@typescript-eslint/parser',
|
|
13
|
+
parserOptions: {
|
|
14
|
+
sourceType: 'module',
|
|
15
|
+
ecmaVersion: 2020,
|
|
16
|
+
extraFileExtensions: ['.svelte']
|
|
17
|
+
},
|
|
18
|
+
overrides: [
|
|
19
|
+
{
|
|
20
|
+
files: ['*.svelte'],
|
|
21
|
+
parser: 'svelte-eslint-parser',
|
|
22
|
+
parserOptions: {
|
|
23
|
+
parser: '@typescript-eslint/parser'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Svelte App</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="app"></div>
|
|
10
|
+
<script type="module" src="/src/main.ts"></script>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|