Skip to content

Commit fd01c81

Browse files
committed
Copy deps from Sylius' skeleton
1 parent b55ecc8 commit fd01c81

2 files changed

Lines changed: 12 additions & 27 deletions

File tree

tests/Application/package.json

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,13 @@
11
{
2-
"dependencies": {
3-
"chart.js": "^3.9",
4-
"jquery": "^3.6",
5-
"jquery.dirtyforms": "^2.0",
6-
"lightbox2": "^2.9",
7-
"semantic-ui-css": "^2.2",
8-
"slick-carousel": "^1.8"
9-
},
10-
"devDependencies": {
11-
"@symfony/webpack-encore": "^1.8",
12-
"eslint": "^8.18",
13-
"eslint-config-airbnb-base": "^15.0",
14-
"eslint-import-resolver-babel-module": "^5.3",
15-
"eslint-plugin-import": "^2.26",
16-
"node-sass": "^7.0",
17-
"sass-loader": "^12.0"
18-
},
2+
"license": "UNLICENSED",
193
"scripts": {
20-
"dev": "encore dev",
21-
"build": "encore production",
4+
"build": "encore dev",
5+
"build:prod": "encore production",
6+
"postinstall": "semantic-ui-css-patch",
7+
"lint": "yarn lint:js",
228
"watch": "encore dev --watch"
239
},
24-
"repository": {
25-
"type": "git",
26-
"url": "git+https://github.com/Sylius/Sylius.git"
27-
},
28-
"author": "Paweł Jędrzejewski",
29-
"license": "MIT"
10+
"devDependencies": {
11+
"@sylius-ui/frontend": "^1.0.3"
12+
}
3013
}

tests/Application/webpack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const uiBundleResources = path.resolve(syliusBundles, 'UiBundle/Resources/privat
99
Encore
1010
.setOutputPath('public/build/shop/')
1111
.setPublicPath('/build/shop')
12-
.addEntry('shop-entry', './assets/shop/entry.js')
12+
.addEntry('shop-entry', '../../vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Resources/private/entry.js')
1313
.disableSingleRuntimeChunk()
1414
.cleanupOutputBeforeBuild()
1515
.enableSourceMaps(!Encore.isProduction())
@@ -29,7 +29,7 @@ Encore.reset();
2929
Encore
3030
.setOutputPath('public/build/admin/')
3131
.setPublicPath('/build/admin')
32-
.addEntry('admin-entry', './assets/admin/entry.js')
32+
.addEntry('admin-entry', '../../vendor/sylius/sylius/src/Sylius/Bundle/AdminBundle/Resources/private/entry.js')
3333
.disableSingleRuntimeChunk()
3434
.cleanupOutputBeforeBuild()
3535
.enableSourceMaps(!Encore.isProduction())
@@ -44,4 +44,6 @@ adminConfig.resolve.alias['sylius/bundle'] = syliusBundles;
4444
adminConfig.externals = Object.assign({}, adminConfig.externals, { window: 'window', document: 'document' });
4545
adminConfig.name = 'admin';
4646

47+
Encore.reset();
48+
4749
module.exports = [shopConfig, adminConfig];

0 commit comments

Comments
 (0)