@mrbryan1502/create-symfony-vue 1.0.1

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.
Files changed (45) hide show
  1. package/bin/index.js +142 -0
  2. package/package.json +30 -0
  3. package/template/.editorconfig +25 -0
  4. package/template/.env +48 -0
  5. package/template/.env.dev +4 -0
  6. package/template/.env.test +3 -0
  7. package/template/.gitattributes +9 -0
  8. package/template/.prettierignore +46 -0
  9. package/template/.prettierrc +9 -0
  10. package/template/.vscode/extensions.json +17 -0
  11. package/template/.vscode/settings.json +19 -0
  12. package/template/README.md +172 -0
  13. package/template/assets/app.css +3 -0
  14. package/template/assets/main.ts +11 -0
  15. package/template/assets/router/index.ts +13 -0
  16. package/template/assets/src/App.vue +571 -0
  17. package/template/assets/styles/app.css +3 -0
  18. package/template/bin/console +21 -0
  19. package/template/bin/phpunit +4 -0
  20. package/template/compose.override.yaml +18 -0
  21. package/template/compose.yaml +25 -0
  22. package/template/composer.json +122 -0
  23. package/template/composer.lock +10332 -0
  24. package/template/config/bundles.php +16 -0
  25. package/template/config/preload.php +5 -0
  26. package/template/config/reference.php +1696 -0
  27. package/template/config/routes/framework.yaml +4 -0
  28. package/template/config/routes/pentatrion_vite.yaml +9 -0
  29. package/template/config/routes/security.yaml +3 -0
  30. package/template/config/routes/web_profiler.yaml +8 -0
  31. package/template/config/routes.yaml +11 -0
  32. package/template/config/services.yaml +23 -0
  33. package/template/importmap.php +22 -0
  34. package/template/package.json +47 -0
  35. package/template/phpunit.dist.xml +44 -0
  36. package/template/pnpm-lock.yaml +2715 -0
  37. package/template/public/index.php +9 -0
  38. package/template/src/Controller/AppController.php +16 -0
  39. package/template/src/Kernel.php +11 -0
  40. package/template/symfony.lock +319 -0
  41. package/template/templates/app.html.twig +13 -0
  42. package/template/templates/base.html.twig +26 -0
  43. package/template/tests/bootstrap.php +13 -0
  44. package/template/tsconfig.json +17 -0
  45. package/template/vite.config.js +29 -0
@@ -0,0 +1,9 @@
1
+ <?php
2
+
3
+ use App\Kernel;
4
+
5
+ require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
6
+
7
+ return static function (array $context) {
8
+ return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
9
+ };
@@ -0,0 +1,16 @@
1
+ <?php
2
+
3
+ namespace App\Controller;
4
+
5
+ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
6
+ use Symfony\Component\Routing\Attribute\Route;
7
+
8
+ final class AppController extends AbstractController {
9
+
10
+ #[Route('/{path}', name: 'app', requirements: ['path' => '^(?!api).+'])]
11
+ public function index()
12
+ {
13
+
14
+ return $this->render('app.html.twig');
15
+ }
16
+ }
@@ -0,0 +1,11 @@
1
+ <?php
2
+
3
+ namespace App;
4
+
5
+ use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
6
+ use Symfony\Component\HttpKernel\Kernel as BaseKernel;
7
+
8
+ class Kernel extends BaseKernel
9
+ {
10
+ use MicroKernelTrait;
11
+ }
@@ -0,0 +1,319 @@
1
+ {
2
+ "doctrine/deprecations": {
3
+ "version": "1.1",
4
+ "recipe": {
5
+ "repo": "github.com/symfony/recipes",
6
+ "branch": "main",
7
+ "version": "1.0",
8
+ "ref": "fdd756167454623e21f1d769c5b814b243782a67"
9
+ }
10
+ },
11
+ "doctrine/doctrine-bundle": {
12
+ "version": "2.18",
13
+ "recipe": {
14
+ "repo": "github.com/symfony/recipes",
15
+ "branch": "main",
16
+ "version": "2.13",
17
+ "ref": "620b57f496f2e599a6015a9fa222c2ee0a32adcb"
18
+ },
19
+ "files": [
20
+ "./config/packages/doctrine.yaml",
21
+ "./src/Entity/.gitignore",
22
+ "./src/Repository/.gitignore"
23
+ ]
24
+ },
25
+ "doctrine/doctrine-migrations-bundle": {
26
+ "version": "3.7",
27
+ "recipe": {
28
+ "repo": "github.com/symfony/recipes",
29
+ "branch": "main",
30
+ "version": "3.1",
31
+ "ref": "1d01ec03c6ecbd67c3375c5478c9a423ae5d6a33"
32
+ },
33
+ "files": [
34
+ "./config/packages/doctrine_migrations.yaml",
35
+ "./migrations/.gitignore"
36
+ ]
37
+ },
38
+ "pentatrion/vite-bundle": {
39
+ "version": "8.2",
40
+ "recipe": {
41
+ "repo": "github.com/symfony/recipes-contrib",
42
+ "branch": "main",
43
+ "version": "6.5",
44
+ "ref": "3a6673f248f8fc1dd364dadfef4c5b381d1efab6"
45
+ }
46
+ },
47
+ "phpunit/phpunit": {
48
+ "version": "11.5",
49
+ "recipe": {
50
+ "repo": "github.com/symfony/recipes",
51
+ "branch": "main",
52
+ "version": "11.1",
53
+ "ref": "ca0bc067abfb40a8de1b2561b96cbfc2b833c314"
54
+ },
55
+ "files": [
56
+ "./.env.test",
57
+ "./phpunit.dist.xml",
58
+ "./tests/bootstrap.php",
59
+ "./bin/phpunit"
60
+ ]
61
+ },
62
+ "symfony/asset-mapper": {
63
+ "version": "7.4",
64
+ "recipe": {
65
+ "repo": "github.com/symfony/recipes",
66
+ "branch": "main",
67
+ "version": "6.4",
68
+ "ref": "c01c47af2ec66a74ec046eccb919cfe27d3464ec"
69
+ },
70
+ "files": [
71
+ "./assets/app.js",
72
+ "./assets/styles/app.css",
73
+ "./config/packages/asset_mapper.yaml",
74
+ "./importmap.php"
75
+ ]
76
+ },
77
+ "symfony/console": {
78
+ "version": "7.4",
79
+ "recipe": {
80
+ "repo": "github.com/symfony/recipes",
81
+ "branch": "main",
82
+ "version": "5.3",
83
+ "ref": "1781ff40d8a17d87cf53f8d4cf0c8346ed2bb461"
84
+ },
85
+ "files": [
86
+ "./bin/console"
87
+ ]
88
+ },
89
+ "symfony/debug-bundle": {
90
+ "version": "7.4",
91
+ "recipe": {
92
+ "repo": "github.com/symfony/recipes",
93
+ "branch": "main",
94
+ "version": "5.3",
95
+ "ref": "5aa8aa48234c8eb6dbdd7b3cd5d791485d2cec4b"
96
+ },
97
+ "files": [
98
+ "./config/packages/debug.yaml"
99
+ ]
100
+ },
101
+ "symfony/flex": {
102
+ "version": "2.11",
103
+ "recipe": {
104
+ "repo": "github.com/symfony/recipes",
105
+ "branch": "main",
106
+ "version": "2.4",
107
+ "ref": "52e9754527a15e2b79d9a610f98185a1fe46622a"
108
+ },
109
+ "files": [
110
+ "./.env",
111
+ "./.env.dev"
112
+ ]
113
+ },
114
+ "symfony/form": {
115
+ "version": "7.4",
116
+ "recipe": {
117
+ "repo": "github.com/symfony/recipes",
118
+ "branch": "main",
119
+ "version": "7.2",
120
+ "ref": "7d86a6723f4a623f59e2bf966b6aad2fc461d36b"
121
+ },
122
+ "files": [
123
+ "./config/packages/csrf.yaml"
124
+ ]
125
+ },
126
+ "symfony/framework-bundle": {
127
+ "version": "7.4",
128
+ "recipe": {
129
+ "repo": "github.com/symfony/recipes",
130
+ "branch": "main",
131
+ "version": "7.4",
132
+ "ref": "d5dcd308c8becd725c9d8b91e31aab1ff0bbc30b"
133
+ },
134
+ "files": [
135
+ "./config/packages/cache.yaml",
136
+ "./config/packages/framework.yaml",
137
+ "./config/preload.php",
138
+ "./config/routes/framework.yaml",
139
+ "./config/services.yaml",
140
+ "./public/index.php",
141
+ "./src/Controller/.gitignore",
142
+ "./src/Kernel.php",
143
+ "./.editorconfig"
144
+ ]
145
+ },
146
+ "symfony/mailer": {
147
+ "version": "7.4",
148
+ "recipe": {
149
+ "repo": "github.com/symfony/recipes",
150
+ "branch": "main",
151
+ "version": "4.3",
152
+ "ref": "09051cfde49476e3c12cd3a0e44289ace1c75a4f"
153
+ },
154
+ "files": [
155
+ "./config/packages/mailer.yaml"
156
+ ]
157
+ },
158
+ "symfony/maker-bundle": {
159
+ "version": "1.67",
160
+ "recipe": {
161
+ "repo": "github.com/symfony/recipes",
162
+ "branch": "main",
163
+ "version": "1.0",
164
+ "ref": "fadbfe33303a76e25cb63401050439aa9b1a9c7f"
165
+ }
166
+ },
167
+ "symfony/messenger": {
168
+ "version": "7.4",
169
+ "recipe": {
170
+ "repo": "github.com/symfony/recipes",
171
+ "branch": "main",
172
+ "version": "6.0",
173
+ "ref": "d8936e2e2230637ef97e5eecc0eea074eecae58b"
174
+ },
175
+ "files": [
176
+ "./config/packages/messenger.yaml"
177
+ ]
178
+ },
179
+ "symfony/monolog-bundle": {
180
+ "version": "4.0",
181
+ "recipe": {
182
+ "repo": "github.com/symfony/recipes",
183
+ "branch": "main",
184
+ "version": "3.7",
185
+ "ref": "1b9efb10c54cb51c713a9391c9300ff8bceda459"
186
+ },
187
+ "files": [
188
+ "./config/packages/monolog.yaml"
189
+ ]
190
+ },
191
+ "symfony/notifier": {
192
+ "version": "7.4",
193
+ "recipe": {
194
+ "repo": "github.com/symfony/recipes",
195
+ "branch": "main",
196
+ "version": "5.0",
197
+ "ref": "178877daf79d2dbd62129dd03612cb1a2cb407cc"
198
+ },
199
+ "files": [
200
+ "./config/packages/notifier.yaml"
201
+ ]
202
+ },
203
+ "symfony/property-info": {
204
+ "version": "7.4",
205
+ "recipe": {
206
+ "repo": "github.com/symfony/recipes",
207
+ "branch": "main",
208
+ "version": "7.3",
209
+ "ref": "dae70df71978ae9226ae915ffd5fad817f5ca1f7"
210
+ },
211
+ "files": [
212
+ "./config/packages/property_info.yaml"
213
+ ]
214
+ },
215
+ "symfony/routing": {
216
+ "version": "7.4",
217
+ "recipe": {
218
+ "repo": "github.com/symfony/recipes",
219
+ "branch": "main",
220
+ "version": "7.4",
221
+ "ref": "bc94c4fd86f393f3ab3947c18b830ea343e51ded"
222
+ },
223
+ "files": [
224
+ "./config/packages/routing.yaml",
225
+ "./config/routes.yaml"
226
+ ]
227
+ },
228
+ "symfony/security-bundle": {
229
+ "version": "7.4",
230
+ "recipe": {
231
+ "repo": "github.com/symfony/recipes",
232
+ "branch": "main",
233
+ "version": "7.4",
234
+ "ref": "c42fee7802181cdd50f61b8622715829f5d2335c"
235
+ },
236
+ "files": [
237
+ "./config/packages/security.yaml",
238
+ "./config/routes/security.yaml"
239
+ ]
240
+ },
241
+ "symfony/translation": {
242
+ "version": "7.4",
243
+ "recipe": {
244
+ "repo": "github.com/symfony/recipes",
245
+ "branch": "main",
246
+ "version": "6.3",
247
+ "ref": "620a1b84865ceb2ba304c8f8bf2a185fbf32a843"
248
+ },
249
+ "files": [
250
+ "./config/packages/translation.yaml",
251
+ "./translations/.gitignore"
252
+ ]
253
+ },
254
+ "symfony/twig-bundle": {
255
+ "version": "7.4",
256
+ "recipe": {
257
+ "repo": "github.com/symfony/recipes",
258
+ "branch": "main",
259
+ "version": "6.4",
260
+ "ref": "f250159ebe99153d0c640a3e7742876fc7453f2c"
261
+ },
262
+ "files": [
263
+ "./config/packages/twig.yaml",
264
+ "./templates/base.html.twig"
265
+ ]
266
+ },
267
+ "symfony/ux-turbo": {
268
+ "version": "2.36",
269
+ "recipe": {
270
+ "repo": "github.com/symfony/recipes",
271
+ "branch": "main",
272
+ "version": "2.20",
273
+ "ref": "287f7c6eb6e9b65e422d34c00795b360a787380b"
274
+ },
275
+ "files": [
276
+ "./config/packages/ux_turbo.yaml"
277
+ ]
278
+ },
279
+ "symfony/validator": {
280
+ "version": "7.4",
281
+ "recipe": {
282
+ "repo": "github.com/symfony/recipes",
283
+ "branch": "main",
284
+ "version": "7.0",
285
+ "ref": "8c1c4e28d26a124b0bb273f537ca8ce443472bfd"
286
+ },
287
+ "files": [
288
+ "./config/packages/validator.yaml"
289
+ ]
290
+ },
291
+ "symfony/web-profiler-bundle": {
292
+ "version": "7.4",
293
+ "recipe": {
294
+ "repo": "github.com/symfony/recipes",
295
+ "branch": "main",
296
+ "version": "7.3",
297
+ "ref": "a363460c1b0b4a4d0242f2ce1a843ca0f6ac9026"
298
+ },
299
+ "files": [
300
+ "./config/packages/web_profiler.yaml",
301
+ "./config/routes/web_profiler.yaml"
302
+ ]
303
+ },
304
+ "symfony/webapp-pack": {
305
+ "version": "1.4",
306
+ "recipe": {
307
+ "repo": "github.com/symfony/recipes",
308
+ "branch": "main",
309
+ "version": "1.0",
310
+ "ref": "b9e6cc8e7b6069d0e8a816665809a423864eb4dd"
311
+ },
312
+ "files": [
313
+ "./config/packages/messenger.yaml"
314
+ ]
315
+ },
316
+ "twig/extra-bundle": {
317
+ "version": "v3.24.0"
318
+ }
319
+ }
@@ -0,0 +1,13 @@
1
+ {% extends "base.html.twig" %}
2
+
3
+ {% block stylesheets %}
4
+ {{ vite_entry_link_tags('app') }}
5
+ {% endblock %}
6
+
7
+ {% block javascripts %}
8
+ {{ vite_entry_script_tags('app') }}
9
+ {% endblock %}
10
+
11
+ {% block body %}
12
+ <div id="app"></div>
13
+ {% endblock %}
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>{% block title %}Welcome!{% endblock %}</title>
6
+ <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
7
+ {% block stylesheets %}
8
+ {{ vite_entry_link_tags('app') }}
9
+ {% endblock %}
10
+
11
+ {% block javascripts %}
12
+ {{ vite_entry_script_tags('app') }}
13
+ {% block importmap %}{{ importmap('app') }}{% endblock %}
14
+ {% endblock %}
15
+
16
+ {% set frankenphpHotReload = app.request.server.get('FRANKENPHP_HOT_RELOAD') %}
17
+ {% if frankenphpHotReload %}
18
+ <meta name="frankenphp-hot-reload:url" content="{{ frankenphpHotReload }}">
19
+ <script src="https://cdn.jsdelivr.net/npm/idiomorph"></script>
20
+ <script src="https://cdn.jsdelivr.net/npm/frankenphp-hot-reload/+esm" type="module"></script>
21
+ {% endif %}
22
+ </head>
23
+ <body>
24
+ {% block body %}{% endblock %}
25
+ </body>
26
+ </html>
@@ -0,0 +1,13 @@
1
+ <?php
2
+
3
+ use Symfony\Component\Dotenv\Dotenv;
4
+
5
+ require dirname(__DIR__).'/vendor/autoload.php';
6
+
7
+ if (method_exists(Dotenv::class, 'bootEnv')) {
8
+ (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
9
+ }
10
+
11
+ if ($_SERVER['APP_DEBUG']) {
12
+ umask(0000);
13
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "module": "ESNext",
5
+ "moduleResolution": "Bundler",
6
+ "strict": true,
7
+ "jsx": "preserve",
8
+ "resolveJsonModule": true,
9
+ "allowSyntheticDefaultImports": true,
10
+ "isolatedModules": true,
11
+ "types": ["node"],
12
+ "paths": {
13
+ "@/*": ["./assets/src/*"]
14
+ }
15
+ },
16
+ "include": ["assets/**/*.ts", "assets/**/*.vue"]
17
+ }
@@ -0,0 +1,29 @@
1
+ import { defineConfig } from 'vite';
2
+ import symfonyPlugin from 'vite-plugin-symfony';
3
+ import vue from '@vitejs/plugin-vue';
4
+
5
+ /* if you're using React */
6
+ // import react from '@vitejs/plugin-react';
7
+
8
+ export default defineConfig({
9
+ plugins: [vue(), symfonyPlugin()],
10
+ server: {
11
+ host: 'localhost',
12
+ port: 5173,
13
+ },
14
+ build: {
15
+ outDir: 'public/build',
16
+ emptyOutDir: true,
17
+ manifest: true,
18
+ rollupOptions: {
19
+ input: {
20
+ app: './assets/main.ts',
21
+ },
22
+ },
23
+ },
24
+ resolve: {
25
+ alias: {
26
+ '@': '/assets/src/',
27
+ },
28
+ },
29
+ });