8000 removing all package.json dependencies in favor of peer dependencies · symfony/ux@b3c2d3d · GitHub
[go: up one dir, main page]

Skip to content

Commit b3c2d3d

Browse files
committed
removing all package.json dependencies in favor of peer dependencies
1 parent d62a25b commit b3c2d3d

File tree

8 files changed

+23
-13
lines changed

8 files changed

+23
-13
lines changed

src/Chartjs/Resources/assets/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@
1818
"test": "babel src -d dist && jest",
1919
"lint": "eslint src test"
2020
},
21-
"dependencies": {
22-
"chart.js": "^2.9.4"
23-
},
2421
"peerDependencies": {
22+
"chart.js": "^2.9.4",
2523
"stimulus": "^2.0.0"
2624
},
2725
"devDependencies": {
@@ -30,6 +28,7 @@
3028
"@babel/plugin-proposal-class-properties": "^7.12.1",
3129
"@babel/preset-env": "^7.12.7",
3230
"@symfony/stimulus-testing": "^1.1.0",
31+
"chart.js": "^2.9.4",
3332
"jest-canvas-mock": "^2.3.0",
3433
"stimulus": "^2.0.0"
3534
},

src/Chartjs/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"symfony/twig-bundle": "^4.4.17|^5.0",
3838
"symfony/var-dumper": "^4.4.17|^5.0"
3939
},
40+
"conflict": {
41+
"symfony/flex": "<1.13"
42+
},
4043
"extra": {
4144
"branch-alias": {
4245
"dev-main": "1.3-dev"

src/Cropperjs/Resources/assets/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@
2222
"test": "babel src -d dist && jest",
2323
"lint": "eslint src test"
2424
},
25-
"dependencies": {
26-
"cropperjs": "^1.5.9"
27-
},
2825
"peerDependencies": {
26+
"cropperjs": "^1.5.9",
2927
"stimulus": "^2.0.0"
3028
},
3129
"devDependencies": {
@@ -34,6 +32,7 @@
3432
"@babel/plugin-proposal-class-properties": "^7.12.1",
3533
"@babel/preset-env": "^7.12.7",
3634
"@symfony/stimulus-testing": "^1.1.0",
35+
"cropperjs": "^1.5.9",
3736
"stimulus": "^2.0.0"
3837
},
3938
"jest": {

src/Cropperjs/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
"symfony/twig-bundle": "^4.4.17|^5.0",
4141
"symfony/var-dumper": "^4.4.17|^5.0"
4242
},
43+
"conflict": {
44+
"symfony/flex": "<1.13"
45+
},
4346
"extra": {
4447
"branch-alias": {
4548
"dev-main": "1.3-dev"

src/Swup/Resources/assets/package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,24 @@
1818
"test": "babel src -d dist && jest",
1919
"lint": "eslint src test"
2020
},
21-
"dependencies": {
21+
"peerDependencies": {
2222
"@swup/fade-theme": "^1.0",
2323
"@swup/slide-theme": "^1.0",
2424
"@swup/forms-plugin": "^1.0",
2525
"@swup/debug-plugin": "^1.0",
26-
"swup": "^2.0"
27-
},
28-
"peerDependencies": {
26+
"swup": "^2.0",
2927
"stimulus": "^2.0.0"
3028
},
3129
"devDependencies": {
3230
"@babel/cli": "^7.12.1",
3331
"@babel/core": "^7.12.3",
3432
"@babel/plugin-proposal-class-properties": "^7.12.1",
3533
"@babel/preset-env": "^7.12.7",
34+
"@swup/fade-theme": "^1.0",
35+
"@swup/slide-theme": "^1.0",
36+
"@swup/forms-plugin": "^1.0",
37+
"@swup/debug-plugin": "^1.0",
38+
"swup": "^2.0",
3639
"@symfony/stimulus-testing": "^1.1.0",
3740
"stimulus": "^2.0.0"
3841
},

src/Swup/composer.json

Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"homepage": "https://symfony.com/contributors"
1818
}
1919
],
20+
"conflict": {
21+
"symfony/flex": "<1.13"
22+
},
2023
"extra": {
2124
"branch-alias": {
2225
"dev-main": "1.3-dev"

src/Turbo/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ Install this bundle using Composer and Symfony Flex:
2121
```sh
2222
composer require symfony/ux-turbo
2323

24-
# install turbo itself
25-
yarn add @hotwired/turbo --dev
26-
2724
# Don't forget to install the JavaScript dependencies as well and compile
2825
yarn install --force
2926
yarn encore dev

src/Turbo/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
"symfony/twig-bundle": "^5.2",
5858
"symfony/web-profiler-bundle": "^5.2"
5959
},
60+
"conflict": {
61+
"symfony/flex": "<1.13"
62+
},
6063
"extra": {
6164
"branch-alias": {
6265
"dev-main": "1.3-dev"

0 commit comments

Comments
 (0)
0