File tree 8 files changed +64
-4
lines changed
8 files changed +64
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
steps :
13
13
- name : Checkout code
14
- uses : actions/checkout@v2
14
+ uses : actions/checkout@v4
15
15
16
16
- name : Set up PHP
17
17
uses : shivammathur/setup-php@v2
20
20
coverage : none
21
21
22
22
- name : Download dependencies
23
- uses : ramsey/composer-install@v1
23
+ uses : ramsey/composer-install@v2
24
24
25
25
- name : Run tests
26
26
run : ./bin/console cache:warmup --env dev
Original file line number Diff line number Diff line change 20
20
npm-debug.log
21
21
yarn-error.log
22
22
# ##< symfony/webpack-encore-bundle ###
23
- composer.lock
23
+ composer.lock
24
+ # ##> symfony/asset-mapper ###
25
+ /public /assets /
26
+ /assets /vendor /
27
+ # ##< symfony/asset-mapper ###
Original file line number Diff line number Diff line change 41
41
"symfony/validator" : " *" ,
42
42
"symfony/web-link" : " *" ,
43
43
"symfony/webpack-encore-bundle" : " ^2.1" ,
44
+ "symfony/workflow" : " *" ,
44
45
"symfony/yaml" : " *" ,
45
46
"twig/extra-bundle" : " ^3.0" ,
46
47
"twig/twig" : " ^3.0"
85
86
"scripts" : {
86
87
"auto-scripts" : {
87
88
"cache:clear" : " symfony-cmd" ,
88
- "assets:install %PUBLIC_DIR%" : " symfony-cmd"
89
+ "assets:install %PUBLIC_DIR%" : " symfony-cmd" ,
90
+ "importmap:install" : " symfony-cmd"
89
91
},
90
92
"post-install-cmd" : [
91
93
" @auto-scripts"
Original file line number Diff line number Diff line change
1
+ framework :
2
+ asset_mapper :
3
+ # The paths to make available to the asset mapper.
4
+ paths :
5
+ - assets/
Original file line number Diff line number Diff line change
1
+ framework :
2
+ workflows : null
Original file line number Diff line number Diff line change
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
+ ];
Original file line number Diff line number Diff line change 125
125
"symfony/asset": {
126
126
"version": "v5.4.0"
127
127
},
128
+ "symfony/asset-mapper": {
129
+ "version": "7.1",
130
+ "recipe": {
131
+ "repo": "github.com/symfony/recipes",
132
+ "branch": "main",
133
+ "version": "6.4",
134
+ "ref": "6c28c471640cc2c6e60812ebcb961c526ef8997f"
135
+ },
136
+ "files": [
137
+ "assets/app.js",
138
+ "assets/styles/app.css",
139
+ "config/packages/asset_mapper.yaml",
140
+ "importmap.php"
141
+ ]
142
+ },
128
143
"symfony/browser-kit": {
129
144
"version": "v5.4.0"
130
145
},
559
574
"webpack.config.js"
560
575
]
561
576
},
577
+ "symfony/workflow": {
578
+ "version": "5.4",
579
+ "recipe": {
580
+ "repo": "github.com/symfony/recipes",
581
+ "branch": "main",
582
+ "version": "3.3",
583
+ "ref": "3b2f8ca32a07fcb00f899649053943fa3d8bbfb6"
584
+ },
585
+ "files": [
586
+ "config/packages/workflow.yaml"
587
+ ]
588
+ },
562
589
"symfony/yaml": {
563
590
"version": "v5.4.0"
564
591
},
Original file line number Diff line number Diff line change 10
10
{% endblock %}
11
11
12
12
{% block javascripts %}
13
+ {% block importmap %}{{ importmap(' app' ) }}{% endblock %}
13
14
{# {{ encore_entry_script_tags('app') }}#}
14
15
{% endblock %}
15
16
</head >
You can’t perform that action at this time.
0 commit comments