Skip to content

Commit

Permalink
Merge pull request #10 from jakubtobiasz/new-webpack
Browse files Browse the repository at this point in the history
New webpack
  • Loading branch information
kulczy committed Jun 14, 2022
2 parents ba5b999 + bdaf592 commit ef255f6
Show file tree
Hide file tree
Showing 25 changed files with 236 additions and 2,439 deletions.
6 changes: 6 additions & 0 deletions config/packages/framework.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
framework:
assets:
packages:
shop:
json_manifest_path: '%kernel.project_dir%/public/build/shop/manifest.json'
admin:
json_manifest_path: '%kernel.project_dir%/public/build/admin/manifest.json'
secret: '%env(APP_SECRET)%'
form: true
csrf_protection: true
Expand Down
7 changes: 0 additions & 7 deletions config/packages/webpack_encore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,3 @@ webpack_encore:
builds:
shop: '%kernel.project_dir%/public/build/shop'
admin: '%kernel.project_dir%/public/build/admin'
framework:
assets:
packages:
shop:
json_manifest_path: '%kernel.project_dir%/public/build/shop/manifest.json'
admin:
json_manifest_path: '%kernel.project_dir%/public/build/admin/manifest.json'
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependencies": {
"chart.js": "^3.7.1",
"fomantic-ui": "^2.9.0-beta.288",
"semantic-ui": "npm:fomantic-ui@^2.9.0-beta.288",
"jquery": "^3.5.0",
"jquery.dirtyforms": "^2.0.0",
"lightbox2": "^2.9.0",
Expand All @@ -11,7 +11,6 @@
"@symfony/webpack-encore": "^2.1.0",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-import-resolver-babel-module": "^4.0.0",
"eslint-plugin-import": "^2.11.0",
"sass": "^1.51.0",
"sass-loader": "^12.0.0"
Expand Down
4 changes: 1 addition & 3 deletions src/Sylius/Bundle/AdminBundle/Resources/private/entry.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import './js/shim/shim-jquery';
import './js/shim/shim-semantic-ui';

import 'fomantic-ui/dist/semantic.css';

import 'semantic-ui/dist/semantic.css';
import 'sylius/ui-resources/js/app';
import './js/app';

Expand Down
2 changes: 1 addition & 1 deletion src/Sylius/Bundle/AdminBundle/Resources/private/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/accordion';
import 'semantic-ui/dist/components/accordion';
import $ from 'jquery';
import 'jquery.dirtyforms/jquery.dirtyforms';

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/api';
import 'semantic-ui-css/components/checkbox';
import 'semantic-ui/dist/components/api';
import 'semantic-ui/dist/components/checkbox';
import $ from 'jquery';

const createRootContainer = function createRootContainer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/api';
import 'semantic-ui/dist/components/api';
import $ from 'jquery';

$.fn.extend({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/api';
import 'semantic-ui/dist/components/api';
import $ from 'jquery';

$.fn.extend({
Expand Down
3 changes: 1 addition & 2 deletions src/Sylius/Bundle/ShopBundle/Resources/private/entry.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import './js/shim/shim-jquery';
import './js/shim/shim-lightbox';
import './js/shim/shim-semantic-ui';

import 'fomantic-ui/dist/semantic.css';
import 'semantic-ui/dist/semantic.css';
import 'lightbox2/dist/css/lightbox.min.css';
import 'slick-carousel/slick/slick.css';

Expand Down
4 changes: 2 additions & 2 deletions src/Sylius/Bundle/ShopBundle/Resources/private/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/popup';
import 'semantic-ui-css/components/rating';
import 'semantic-ui/dist/components/popup';
import 'semantic-ui/dist/components/rating';
import $ from 'jquery';
import 'slick-carousel';

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/api';
import 'semantic-ui/dist/components/api';
import $ from 'jquery';

$.fn.extend({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/dropdown';
import 'semantic-ui/dist/components/dropdown';
import $ from 'jquery';

const parseKey = function parseKey(key) {
Expand Down
16 changes: 8 additions & 8 deletions src/Sylius/Bundle/UiBundle/Resources/private/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/accordion';
import 'semantic-ui-css/components/checkbox';
import 'semantic-ui-css/components/dimmer';
import 'semantic-ui-css/components/dropdown';
import 'semantic-ui-css/components/rating';
import 'semantic-ui-css/components/sidebar';
import 'semantic-ui-css/components/tab';
import 'semantic-ui-css/components/transition';
import 'semantic-ui/dist/components/accordion';
import 'semantic-ui/dist/components/checkbox';
import 'semantic-ui/dist/components/dimmer';
import 'semantic-ui/dist/components/dropdown';
import 'semantic-ui/dist/components/rating';
import 'semantic-ui/dist/components/sidebar';
import 'semantic-ui/dist/components/tab';
import 'semantic-ui/dist/components/transition';
import $ from 'jquery';

import './sylius-bulk-action-require-confirmation';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/api';
import 'semantic-ui/dist/components/api';
import $ from 'jquery';

$.fn.extend({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/api';
import 'semantic-ui/dist/components/api';
import $ from 'jquery';

$.fn.extend({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/dropdown';
import 'semantic-ui/dist/components/dropdown';
import $ from 'jquery';

$.fn.extend({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/modal';
import 'semantic-ui/dist/components/modal';
import $ from 'jquery';

$.fn.extend({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/dropdown';
import 'semantic-ui/dist/components/dropdown';
import $ from 'jquery';

const getNextIndex = function getNextIndex() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/dropdown';
import 'semantic-ui/dist/components/dropdown';
import $ from 'jquery';

$.fn.extend({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

import 'semantic-ui-css/components/modal';
import 'semantic-ui/dist/components/modal';
import $ from 'jquery';

$.fn.extend({
Expand Down
Loading

0 comments on commit ef255f6

Please sign in to comment.