diff --git a/dist/tasks/shopwareConfigureTask.js b/dist/tasks/shopwareConfigureTask.js index 5c5e361..9f4abc0 100644 --- a/dist/tasks/shopwareConfigureTask.js +++ b/dist/tasks/shopwareConfigureTask.js @@ -41,6 +41,12 @@ class ShopwareConfigureTask { }) }); } + this.configureTasks.push({ + title: "Refreshing plugins", + task: () => tslib_1.__awaiter(this, void 0, void 0, function* () { + yield console_1.localhostShopwareRootExec(`bin/console plugin:refresh`, config); + }) + }); this.configureTasks.push({ title: "Compiling theme", task: () => tslib_1.__awaiter(this, void 0, void 0, function* () { diff --git a/dist/tasks/shopwareConfigureTask.js.map b/dist/tasks/shopwareConfigureTask.js.map index faf92a1..df44fed 100644 --- a/dist/tasks/shopwareConfigureTask.js.map +++ b/dist/tasks/shopwareConfigureTask.js.map @@ -1 +1 @@ -{"version":3,"file":"shopwareConfigureTask.js","sourceRoot":"","sources":["../../src/tasks/shopwareConfigureTask.ts"],"names":[],"mappings":";;;AAAA,8CAA2F;AAE3F,uFAAmD;AAEnD,MAAM,qBAAqB;IAA3B;QACY,mBAAc,GAAG,EAAE,CAAC;QAE5B,cAAS,GAAG,CAAO,IAAS,EAAE,MAAW,EAAE,EAAE;YACzC,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YAClC,OAAO,IAAI,CAAC;QAChB,CAAC,CAAA,CAAA;QAED,YAAY;QACZ,aAAQ,GAAG,CAAO,IAAS,EAAE,MAAW,EAAE,EAAE;YACxC,IAAI,CAAC,GAAG,CACJ;gBACI,KAAK,EAAE,8CAA8C;gBACrD,IAAI,EAAE,CAAC,GAAQ,EAAE,IAAS,EAAS,EAAE,CACrC,IAAI,CAAC,QAAQ,CACT,IAAI,CAAC,cAAc,CACtB;aACJ,CACJ,CAAA;YAED,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB;gBACI,KAAK,EAAE,gCAAgC;gBACvC,IAAI,EAAE,GAAwB,EAAE;oBAC5B,MAAM,mCAAyB,CAA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eAAe,CAAC,aAAa,YAAY,uBAAU,CAAC,eAAe,CAAC,iBAAiB,EAAE,EAAE,MAAM,CAAC,CAAC;gBAC7N,CAAC,CAAA;aACJ,CACJ,CAAC;YAEF,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB;gBACI,KAAK,EAAE,0BAA0B;gBACjC,IAAI,EAAE,GAAwB,EAAE;oBAC5B,UAAU;oBACV,MAAM,mCAAyB,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;oBACnE,gBAAgB;oBAChB,MAAM,mCAAyB,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;gBACvE,CAAC,CAAA;aACJ,CACJ,CAAC;YAEF,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB;gBACI,KAAK,EAAE,4BAA4B;gBACnC,IAAI,EAAE,GAAwB,EAAE;oBAC5B,mDAAmD;oBACnD,MAAM,mCAAyB,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;gBACvE,CAAC,CAAA;aACJ,CACJ,CAAC;QACN,CAAC,CAAA,CAAA;IACL,CAAC;CAAA;AAED,kBAAe,qBAAqB,CAAA"} \ No newline at end of file +{"version":3,"file":"shopwareConfigureTask.js","sourceRoot":"","sources":["../../src/tasks/shopwareConfigureTask.ts"],"names":[],"mappings":";;;AAAA,8CAA2F;AAE3F,uFAAmD;AAEnD,MAAM,qBAAqB;IAA3B;QACY,mBAAc,GAAG,EAAE,CAAC;QAE5B,cAAS,GAAG,CAAO,IAAS,EAAE,MAAW,EAAE,EAAE;YACzC,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YAClC,OAAO,IAAI,CAAC;QAChB,CAAC,CAAA,CAAA;QAED,YAAY;QACZ,aAAQ,GAAG,CAAO,IAAS,EAAE,MAAW,EAAE,EAAE;YACxC,IAAI,CAAC,GAAG,CACJ;gBACI,KAAK,EAAE,8CAA8C;gBACrD,IAAI,EAAE,CAAC,GAAQ,EAAE,IAAS,EAAS,EAA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,CACJ,CAAC;YAEF,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB;gBACI,KAAK,EAAE,iBAAiB;gBACxB,IAAI,EAAE,GAAwB,EAAE;oBAC5B,MAAM,mCAAyB,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC;gBACzE,CAAC,CAAA;aACJ,CACJ,CAAC;YAEF,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB;gBACI,KAAK,EAAE,uBAAuB;gBAC9B,IAAI,EAAE,GAAwB,EAAE;oBAC5B,MAAM,mCAAyB,CAAC,8BAA8B,uBAAU,CAAC,eAAe,CAAC,aAAa,OAAO,uBAAU,CAAC,eAAe,CAAC,aAAa,YAAY,uBAAU,CAAC,eAAe,CAAC,iBAAiB,EAAE,EAAE,MAAM,CAAC,CAAC;gBAC7N,CAAC,CAAA;aACJ,CACJ,CAAC;YAEF,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB;gBACI,KAAK,EAAE,0BAA0B;gBACjC,IAAI,EAAE,GAAwB,EAAE;oBAC5B,UAAU;oBACV,MAAM,mCAAyB,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;oBACnE,gBAAgB;oBAChB,MAAM,mCAAyB,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;gBACvE,CAAC,CAAA;aACJ,CACJ,CAAC;YAEF,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB;gBACI,KAAK,EAAE,4BAA4B;gBACnC,IAAI,EAAE,GAAwB,EAAE;oBAC5B,mDAAmD;oBACnD,MAAM,mCAAyB,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;gBACvE,CAAC,CAAA;aACJ,CACJ,CAAC;QACN,CAAC,CAAA,CAAA;IACL,CAAC;CAAA;AAED,kBAAe,qBAAqB,CAAA"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 48bc248..8eca8b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "sw-db-sync", - "version": "0.1.7", + "version": "0.1.8", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a193914..8b727ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sw-db-sync", - "version": "0.1.7", + "version": "0.1.8", "description": "Database synchronizer for Shopware 6", "author": { "name": "Jelle Siderius" diff --git a/src/tasks/shopwareConfigureTask.ts b/src/tasks/shopwareConfigureTask.ts index a41d825..f2cdb2b 100644 --- a/src/tasks/shopwareConfigureTask.ts +++ b/src/tasks/shopwareConfigureTask.ts @@ -54,6 +54,15 @@ class ShopwareConfigureTask { ); } + this.configureTasks.push( + { + title: "Refreshing plugins", + task: async (): Promise => { + await localhostShopwareRootExec(`bin/console plugin:refresh`, config); + } + } + ); + this.configureTasks.push( { title: "Compiling theme",