@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,4 @@
1
+ when@dev:
2
+ _errors:
3
+ resource: '@FrameworkBundle/Resources/config/routing/errors.php'
4
+ prefix: /_error
@@ -0,0 +1,9 @@
1
+ when@dev:
2
+ _pentatrion_vite:
3
+ prefix: /build
4
+ resource: "@PentatrionViteBundle/Resources/config/routing.yaml"
5
+
6
+ _profiler_vite:
7
+ path: /_profiler/vite
8
+ defaults:
9
+ _controller: Pentatrion\ViteBundle\Controller\ProfilerController::info
@@ -0,0 +1,3 @@
1
+ _security_logout:
2
+ resource: security.route_loader.logout
3
+ type: service
@@ -0,0 +1,8 @@
1
+ when@dev:
2
+ web_profiler_wdt:
3
+ resource: '@WebProfilerBundle/Resources/config/routing/wdt.php'
4
+ prefix: /_wdt
5
+
6
+ web_profiler_profiler:
7
+ resource: '@WebProfilerBundle/Resources/config/routing/profiler.php'
8
+ prefix: /_profiler
@@ -0,0 +1,11 @@
1
+ # yaml-language-server: $schema=../vendor/symfony/routing/Loader/schema/routing.schema.json
2
+
3
+ # This file is the entry point to configure the routes of your app.
4
+ # Methods with the #[Route] attribute are automatically imported.
5
+ # See also https://symfony.com/doc/current/routing.html
6
+
7
+ # To list all registered routes, run the following command:
8
+ # bin/console debug:router
9
+
10
+ controllers:
11
+ resource: routing.controllers
@@ -0,0 +1,23 @@
1
+ # yaml-language-server: $schema=../vendor/symfony/dependency-injection/Loader/schema/services.schema.json
2
+
3
+ # This file is the entry point to configure your own services.
4
+ # Files in the packages/ subdirectory configure your dependencies.
5
+ # See also https://symfony.com/doc/current/service_container/import.html
6
+
7
+ # Put parameters here that don't need to change on each machine where the app is deployed
8
+ # https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
9
+ parameters:
10
+
11
+ services:
12
+ # default configuration for services in *this* file
13
+ _defaults:
14
+ autowire: true # Automatically injects dependencies in your services.
15
+ autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
16
+
17
+ # makes classes in src/ available to be used as services
18
+ # this creates a service per class whose id is the fully-qualified class name
19
+ App\:
20
+ resource: '../src/'
21
+
22
+ # add more service definitions when explicit configuration is needed
23
+ # please note that last definitions always *replace* previous ones
@@ -0,0 +1,22 @@
1
+ <?php
2
+
3
+ /**
4
+ * Returns the importmap for this application.
5
+ *
6
+ * - "path" is a path inside the asset mapper system. Use the
7
+ * "debug:asset-map" command to see the full list of paths.
8
+ *
9
+ * - "entrypoint" (JavaScript only) set to true for any module that will
10
+ * be used as an "entrypoint" (and passed to the importmap() Twig function).
11
+ *
12
+ * The "importmap:require" command can be used to add new entries to this file.
13
+ */
14
+ return [
15
+ 'app' => [
16
+ 'path' => './assets/app.js',
17
+ 'entrypoint' => true,
18
+ ],
19
+ '@hotwired/turbo' => [
20
+ 'version' => '8.0.23',
21
+ ],
22
+ ];
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "symfony-vue",
3
+ "version": "1.0.0",
4
+ "description": "Symfony 7 + Vue 3 starter template",
5
+ "private": true,
6
+ "scripts": {
7
+ "dev": "concurrently -n symfony,vite -c \"blue,green\" \"symfony serve\" \"vite\"",
8
+ "build": "vite build",
9
+ "format": "prettier --write \"assets/*.{js,ts,vue,json,css,scss,md}\"",
10
+ "lint": "prettier --check \"assets/*.{js,ts,vue,json,css,scss,md}\"",
11
+ "test": "phpunit"
12
+ },
13
+ "keywords": [],
14
+ "author": "mrbryan1502",
15
+ "license": "MIT",
16
+ "devEngines": {
17
+ "packageManager": {
18
+ "name": "pnpm",
19
+ "version": "^11.9.0",
20
+ "onFail": "download"
21
+ }
22
+ },
23
+ "type": "module",
24
+ "dependencies": {
25
+ "pinia": "^3.0.4",
26
+ "vue": "^3.5.39",
27
+ "vue-router": "^5.1.0"
28
+ },
29
+ "devDependencies": {
30
+ "@eslint/js": "^10.0.1",
31
+ "@types/node": "^26.1.0",
32
+ "@typescript-eslint/eslint-plugin": "^8.62.1",
33
+ "@typescript-eslint/parser": "^8.62.1",
34
+ "@vitejs/plugin-vue": "^6.0.7",
35
+ "concurrently": "^10.0.3",
36
+ "eslint": "^10.6.0",
37
+ "eslint-config-prettier": "^10.1.8",
38
+ "eslint-plugin-vue": "^10.9.2",
39
+ "prettier": "^3.9.4",
40
+ "typescript": "^6.0.3",
41
+ "unplugin-auto-import": "^21.0.0",
42
+ "unplugin-vue-components": "^32.1.0",
43
+ "vite": "^8.1.3",
44
+ "vite-plugin-symfony": "^8.2.4",
45
+ "vue-tsc": "^3.3.6"
46
+ }
47
+ }
@@ -0,0 +1,44 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
4
+ <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
6
+ colors="true"
7
+ failOnDeprecation="true"
8
+ failOnNotice="true"
9
+ failOnWarning="true"
10
+ bootstrap="tests/bootstrap.php"
11
+ cacheDirectory=".phpunit.cache"
12
+ >
13
+ <php>
14
+ <ini name="display_errors" value="1" />
15
+ <ini name="error_reporting" value="-1" />
16
+ <server name="APP_ENV" value="test" force="true" />
17
+ <server name="SHELL_VERBOSITY" value="-1" />
18
+ </php>
19
+
20
+ <testsuites>
21
+ <testsuite name="Project Test Suite">
22
+ <directory>tests</directory>
23
+ </testsuite>
24
+ </testsuites>
25
+
26
+ <source ignoreSuppressionOfDeprecations="true"
27
+ ignoreIndirectDeprecations="true"
28
+ restrictNotices="true"
29
+ restrictWarnings="true"
30
+ >
31
+ <include>
32
+ <directory>src</directory>
33
+ </include>
34
+
35
+ <deprecationTrigger>
36
+ <method>Doctrine\Deprecations\Deprecation::trigger</method>
37
+ <method>Doctrine\Deprecations\Deprecation::delegateTriggerToBackend</method>
38
+ <function>trigger_deprecation</function>
39
+ </deprecationTrigger>
40
+ </source>
41
+
42
+ <extensions>
43
+ </extensions>
44
+ </phpunit>