@mrbryan1502/create-symfony-vue 1.0.5 → 1.0.6

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/bin/index.js CHANGED
@@ -12,22 +12,26 @@ const IGNORE = new Set([
12
12
  'node_modules',
13
13
  'vendor',
14
14
  'var',
15
- 'packages',
16
15
  '.env.local',
17
16
  ]);
18
17
 
19
- function copyRecursive(src, dest) {
18
+ const ROOT_ONLY_IGNORE = new Set([
19
+ 'packages',
20
+ ]);
21
+
22
+ function copyRecursive(src, dest, depth = 0) {
20
23
  if (!existsSync(src)) return;
21
24
  const entries = readdirSync(src, { withFileTypes: true });
22
25
  mkdirSync(dest, { recursive: true });
23
26
 
24
27
  for (const entry of entries) {
25
28
  if (IGNORE.has(entry.name)) continue;
29
+ if (depth === 0 && ROOT_ONLY_IGNORE.has(entry.name)) continue;
26
30
  const srcPath = join(src, entry.name);
27
31
  const destPath = join(dest, entry.name);
28
32
 
29
33
  if (entry.isDirectory()) {
30
- copyRecursive(srcPath, destPath);
34
+ copyRecursive(srcPath, destPath, depth + 1);
31
35
  } else {
32
36
  copyFileSync(srcPath, destPath);
33
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrbryan1502/create-symfony-vue",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Scaffold a new Symfony 7 + Vue 3 project",
5
5
  "author": "mrbryan1502",
6
6
  "type": "module",
@@ -0,0 +1,11 @@
1
+ framework:
2
+ asset_mapper:
3
+ # The paths to make available to the asset mapper.
4
+ paths:
5
+ - assets/
6
+ missing_import_mode: strict
7
+
8
+ when@prod:
9
+ framework:
10
+ asset_mapper:
11
+ missing_import_mode: warn
@@ -0,0 +1,19 @@
1
+ framework:
2
+ cache:
3
+ # Unique name of your app: used to compute stable namespaces for cache keys.
4
+ #prefix_seed: your_vendor_name/app_name
5
+
6
+ # The "app" cache stores to the filesystem by default.
7
+ # The data in this cache should persist between deploys.
8
+ # Other options include:
9
+
10
+ # Redis
11
+ #app: cache.adapter.redis
12
+ #default_redis_provider: redis://localhost
13
+
14
+ # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
15
+ #app: cache.adapter.apcu
16
+
17
+ # Namespaced pools use the above "app" backend by default
18
+ #pools:
19
+ #my.dedicated.cache: null
@@ -0,0 +1,11 @@
1
+ # Enable stateless CSRF protection for forms and logins/logouts
2
+ framework:
3
+ form:
4
+ csrf_protection:
5
+ token_id: submit
6
+
7
+ csrf_protection:
8
+ stateless_token_ids:
9
+ - submit
10
+ - authenticate
11
+ - logout
@@ -0,0 +1,5 @@
1
+ when@dev:
2
+ debug:
3
+ # Forwards VarDumper Data clones to a centralized server allowing to inspect dumps on CLI or in your browser.
4
+ # See the "server:dump" command to start a new server.
5
+ dump_destination: "tcp://%env(VAR_DUMPER_SERVER)%"
@@ -0,0 +1,54 @@
1
+ doctrine:
2
+ dbal:
3
+ url: '%env(resolve:DATABASE_URL)%'
4
+
5
+ # IMPORTANT: You MUST configure your server version,
6
+ # either here or in the DATABASE_URL env var (see .env file)
7
+ #server_version: '16'
8
+
9
+ profiling_collect_backtrace: '%kernel.debug%'
10
+ use_savepoints: true
11
+ orm:
12
+ auto_generate_proxy_classes: true
13
+ enable_lazy_ghost_objects: true
14
+ report_fields_where_declared: true
15
+ validate_xml_mapping: true
16
+ naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
17
+ identity_generation_preferences:
18
+ Doctrine\DBAL\Platforms\PostgreSQLPlatform: identity
19
+ auto_mapping: true
20
+ mappings:
21
+ App:
22
+ type: attribute
23
+ is_bundle: false
24
+ dir: '%kernel.project_dir%/src/Entity'
25
+ prefix: 'App\Entity'
26
+ alias: App
27
+ controller_resolver:
28
+ auto_mapping: false
29
+
30
+ when@test:
31
+ doctrine:
32
+ dbal:
33
+ # "TEST_TOKEN" is typically set by ParaTest
34
+ dbname_suffix: '_test%env(default::TEST_TOKEN)%'
35
+
36
+ when@prod:
37
+ doctrine:
38
+ orm:
39
+ auto_generate_proxy_classes: false
40
+ proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
41
+ query_cache_driver:
42
+ type: pool
43
+ pool: doctrine.system_cache_pool
44
+ result_cache_driver:
45
+ type: pool
46
+ pool: doctrine.result_cache_pool
47
+
48
+ framework:
49
+ cache:
50
+ pools:
51
+ doctrine.result_cache_pool:
52
+ adapter: cache.app
53
+ doctrine.system_cache_pool:
54
+ adapter: cache.system
@@ -0,0 +1,6 @@
1
+ doctrine_migrations:
2
+ migrations_paths:
3
+ # namespace is arbitrary but should be different from App\Migrations
4
+ # as migrations classes should NOT be autoloaded
5
+ 'DoctrineMigrations': '%kernel.project_dir%/migrations'
6
+ enable_profiler: false
@@ -0,0 +1,15 @@
1
+ # see https://symfony.com/doc/current/reference/configuration/framework.html
2
+ framework:
3
+ secret: '%env(APP_SECRET)%'
4
+
5
+ # Note that the session will be started ONLY if you read or write from it.
6
+ session: true
7
+
8
+ #esi: true
9
+ #fragments: true
10
+
11
+ when@test:
12
+ framework:
13
+ test: true
14
+ session:
15
+ storage_factory_id: session.storage.factory.mock_file
@@ -0,0 +1,3 @@
1
+ framework:
2
+ mailer:
3
+ dsn: '%env(MAILER_DSN)%'
@@ -0,0 +1,26 @@
1
+ framework:
2
+ messenger:
3
+ failure_transport: failed
4
+
5
+ transports:
6
+ # https://symfony.com/doc/current/messenger.html#transport-configuration
7
+ async:
8
+ dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
9
+ retry_strategy:
10
+ max_retries: 3
11
+ multiplier: 2
12
+ failed: 'doctrine://default?queue_name=failed'
13
+ # sync: 'sync://'
14
+
15
+ default_bus: messenger.bus.default
16
+
17
+ buses:
18
+ messenger.bus.default: []
19
+
20
+ routing:
21
+ Symfony\Component\Mailer\Messenger\SendEmailMessage: async
22
+ Symfony\Component\Notifier\Message\ChatMessage: async
23
+ Symfony\Component\Notifier\Message\SmsMessage: async
24
+
25
+ # Route your messages to the transports
26
+ # 'App\Message\YourMessage': async
@@ -0,0 +1,55 @@
1
+ monolog:
2
+ channels:
3
+ - deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
4
+
5
+ when@dev:
6
+ monolog:
7
+ handlers:
8
+ main:
9
+ type: stream
10
+ path: "%kernel.logs_dir%/%kernel.environment%.log"
11
+ level: debug
12
+ channels: ["!event"]
13
+ console:
14
+ type: console
15
+ process_psr_3_messages: false
16
+ channels: ["!event", "!doctrine", "!console"]
17
+
18
+ when@test:
19
+ monolog:
20
+ handlers:
21
+ main:
22
+ type: fingers_crossed
23
+ action_level: error
24
+ handler: nested
25
+ excluded_http_codes: [404, 405]
26
+ channels: ["!event"]
27
+ nested:
28
+ type: stream
29
+ path: "%kernel.logs_dir%/%kernel.environment%.log"
30
+ level: debug
31
+
32
+ when@prod:
33
+ monolog:
34
+ handlers:
35
+ main:
36
+ type: fingers_crossed
37
+ action_level: error
38
+ handler: nested
39
+ excluded_http_codes: [404, 405]
40
+ channels: ["!deprecation"]
41
+ buffer_size: 50 # How many messages should be saved? Prevent memory leaks
42
+ nested:
43
+ type: stream
44
+ path: php://stderr
45
+ level: debug
46
+ formatter: monolog.formatter.json
47
+ console:
48
+ type: console
49
+ process_psr_3_messages: false
50
+ channels: ["!event", "!doctrine"]
51
+ deprecation:
52
+ type: stream
53
+ channels: [deprecation]
54
+ path: php://stderr
55
+ formatter: monolog.formatter.json
@@ -0,0 +1,12 @@
1
+ framework:
2
+ notifier:
3
+ chatter_transports:
4
+ texter_transports:
5
+ channel_policy:
6
+ # use chat/slack, chat/telegram, sms/twilio or sms/nexmo
7
+ urgent: ['email']
8
+ high: ['email']
9
+ medium: ['email']
10
+ low: ['email']
11
+ admin_recipients:
12
+ - { email: admin@example.com }
@@ -0,0 +1,3 @@
1
+ framework:
2
+ property_info:
3
+ with_constructor_extractor: true
@@ -0,0 +1,10 @@
1
+ framework:
2
+ router:
3
+ # Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
4
+ # See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
5
+ default_uri: '%env(DEFAULT_URI)%'
6
+
7
+ when@prod:
8
+ framework:
9
+ router:
10
+ strict_requirements: null
@@ -0,0 +1,39 @@
1
+ security:
2
+ # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords
3
+ password_hashers:
4
+ Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
5
+
6
+ # https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider
7
+ providers:
8
+ users_in_memory: { memory: null }
9
+
10
+ firewalls:
11
+ dev:
12
+ # Ensure dev tools and static assets are always allowed
13
+ pattern: ^/(_profiler|_wdt|assets|build)/
14
+ security: false
15
+ main:
16
+ lazy: true
17
+ provider: users_in_memory
18
+
19
+ # Activate different ways to authenticate:
20
+ # https://symfony.com/doc/current/security.html#the-firewall
21
+
22
+ # https://symfony.com/doc/current/security/impersonating_user.html
23
+ # switch_user: true
24
+
25
+ # Note: Only the *first* matching rule is applied
26
+ access_control:
27
+ # - { path: ^/admin, roles: ROLE_ADMIN }
28
+ # - { path: ^/profile, roles: ROLE_USER }
29
+
30
+ when@test:
31
+ security:
32
+ password_hashers:
33
+ # Password hashers are resource-intensive by design to ensure security.
34
+ # In tests, it's safe to reduce their cost to improve performance.
35
+ Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
36
+ algorithm: auto
37
+ cost: 4 # Lowest possible value for bcrypt
38
+ time_cost: 3 # Lowest possible value for argon
39
+ memory_cost: 10 # Lowest possible value for argon
@@ -0,0 +1,5 @@
1
+ framework:
2
+ default_locale: en
3
+ translator:
4
+ default_path: '%kernel.project_dir%/translations'
5
+ providers:
@@ -0,0 +1,6 @@
1
+ twig:
2
+ file_name_pattern: '*.twig'
3
+
4
+ when@test:
5
+ twig:
6
+ strict_variables: true
@@ -0,0 +1,4 @@
1
+ # Enable stateless CSRF protection for forms and logins/logouts
2
+ framework:
3
+ csrf_protection:
4
+ check_header: true
@@ -0,0 +1,11 @@
1
+ framework:
2
+ validation:
3
+ # Enables validator auto-mapping support.
4
+ # For instance, basic validation constraints will be inferred from Doctrine's metadata.
5
+ #auto_mapping:
6
+ # App\Entity\: []
7
+
8
+ when@test:
9
+ framework:
10
+ validation:
11
+ not_compromised_password: false
@@ -0,0 +1,13 @@
1
+ when@dev:
2
+ web_profiler:
3
+ toolbar: true
4
+
5
+ framework:
6
+ profiler:
7
+ collect_serializer_data: true
8
+
9
+ when@test:
10
+ framework:
11
+ profiler:
12
+ collect: false
13
+ collect_serializer_data: true