Skip to content

Commit 9a9f60f

Browse files
committed
Add webapp packages
1 parent 388ad65 commit 9a9f60f

35 files changed

+7317
-898
lines changed

.env

+24
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,27 @@
1717
APP_ENV=dev
1818
APP_SECRET=c8ea8179a644e19860759e4238d489a3
1919
###< symfony/framework-bundle ###
20+
21+
###> symfony/webapp-meta ###
22+
MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
23+
###< symfony/webapp-meta ###
24+
25+
###> doctrine/doctrine-bundle ###
26+
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
27+
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
28+
#
29+
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
30+
# DATABASE_URL="mysql://db_user:[email protected]:3306/db_name?serverVersion=5.7&charset=utf8mb4"
31+
DATABASE_URL="postgresql://symfony:[email protected]:5432/app?serverVersion=13&charset=utf8"
32+
###< doctrine/doctrine-bundle ###
33+
34+
###> symfony/messenger ###
35+
# Choose one of the transports below
36+
# MESSENGER_TRANSPORT_DSN=doctrine://default
37+
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
38+
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
39+
###< symfony/messenger ###
40+
41+
###> symfony/mailer ###
42+
# MAILER_DSN=smtp://localhost
43+
###< symfony/mailer ###

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@
88
/var/
99
/vendor/
1010
###< symfony/framework-bundle ###
11+
12+
###> symfony/webpack-encore-bundle ###
13+
/node_modules/
14+
/public/build/
15+
npm-debug.log
16+
yarn-error.log
17+
###< symfony/webpack-encore-bundle ###

assets/app.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Welcome to your app's main JavaScript file!
3+
*
4+
* We recommend including the built version of this JavaScript file
5+
* (and its CSS file) in your base layout (base.html.twig).
6+
*/
7+
8+
// any CSS you import will output into a single css file (app.css in this case)
9+
import './styles/app.css';
10+
11+
// start the Stimulus application
12+
import './bootstrap';

assets/bootstrap.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { startStimulusApp } from '@symfony/stimulus-bridge';
2+
3+
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
4+
export const app = startStimulusApp(require.context(
5+
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
6+
true,
7+
/\.[jt]sx?$/
8+
));
9+
10+
// register any custom, 3rd party controllers here
11+
// app.register('some_controller_name', SomeImportedController);

assets/controllers.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"controllers": [],
3+
"entrypoints": []
4+
}
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Controller } from '@hotwired/stimulus';
2+
3+
/*
4+
* This is an example Stimulus controller!
5+
*
6+
* Any element with a data-controller="hello" attribute will cause
7+
* this controller to be executed. The name "hello" comes from the filename:
8+
* hello_controller.js -> "hello"
9+
*
10+
* Delete this file or adapt it for your use!
11+
*/
12+
export default class extends Controller {
13+
connect() {
14+
this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';
15+
}
16+
}

assets/styles/app.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body {
2+
background-color: lightgray;
3+
}

composer.json

+39-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,44 @@
77
"php": ">=8.0.2",
88
"ext-ctype": "*",
99
"ext-iconv": "*",
10+
"doctrine/annotations": "^1.0",
11+
"doctrine/doctrine-bundle": "^2.5",
12+
"doctrine/doctrine-migrations-bundle": "^3.2",
13+
"doctrine/orm": "^2.11",
14+
"phpdocumentor/reflection-docblock": "^5.3",
15+
"phpstan/phpdoc-parser": "^1.2",
16+
"sensio/framework-extra-bundle": "^6.1",
17+
"symfony/asset": "6.0.*",
1018
"symfony/console": "6.0.*",
19+
"symfony/doctrine-messenger": "6.0.*",
1120
"symfony/dotenv": "6.0.*",
21+
"symfony/expression-language": "6.0.*",
1222
"symfony/flex": "^2",
23+
"symfony/form": "6.0.*",
1324
"symfony/framework-bundle": "6.0.*",
25+
"symfony/http-client": "6.0.*",
26+
"symfony/intl": "6.0.*",
27+
"symfony/mailer": "6.0.*",
28+
"symfony/mime": "6.0.*",
29+
"symfony/monolog-bundle": "^3.0",
30+
"symfony/notifier": "6.0.*",
31+
"symfony/process": "6.0.*",
32+
"symfony/property-access": "6.0.*",
33+
"symfony/property-info": "6.0.*",
34+
"symfony/proxy-manager-bridge": "6.0.*",
1435
"symfony/runtime": "6.0.*",
15-
"symfony/yaml": "6.0.*"
16-
},
17-
"require-dev": {
36+
"symfony/security-bundle": "6.0.*",
37+
"symfony/serializer": "6.0.*",
38+
"symfony/string": "6.0.*",
39+
"symfony/translation": "6.0.*",
40+
"symfony/twig-bundle": "6.0.*",
41+
"symfony/validator": "6.0.*",
42+
"symfony/web-link": "6.0.*",
43+
"symfony/webapp-meta": "^1.0",
44+
"symfony/webpack-encore-bundle": "^1.12",
45+
"symfony/yaml": "6.0.*",
46+
"twig/extra-bundle": "^2.12|^3.0",
47+
"twig/twig": "^2.12|^3.0"
1848
},
1949
"config": {
2050
"allow-plugins": {
@@ -66,5 +96,11 @@
6696
"allow-contrib": false,
6797
"require": "6.0.*"
6898
}
99+
},
100+
"require-dev": {
101+
"symfony/debug-bundle": "6.0.*",
102+
"symfony/maker-bundle": "^1.0",
103+
"symfony/stopwatch": "6.0.*",
104+
"symfony/web-profiler-bundle": "6.0.*"
69105
}
70106
}

0 commit comments

Comments
 (0)