From d440b18d3d8ddf5b3563c87a1ce9e3c5b4c9245e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hayreddin=20T=C3=BCzel?= <36648230+htuzel@users.noreply.github.com> Date: Fri, 31 Jan 2025 14:01:53 +0100 Subject: [PATCH] chore(package): update npm scripts and add new commands - Added new test scripts for unit and integration testing - Included upload and watch scripts for cartridge management - Enhanced package.json with additional development and deployment commands --- package.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b1c09e3f..372c0ee5 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,18 @@ "version": "25.1.0", "description": "Algolia SFRA Link Cartridge", "scripts": { + "test": "sgmf-scripts --test test/unit/**/model/algoliaProduct.js", + "test:unit": "jest --testPathPattern='test/unit'", "compile:js": "sgmf-scripts --compile js", + "test:integration": "sgmf-scripts --integration 'test/integration/**/*.js'", + "copy-scripts": "copy-files-from-to", + "compile:fonts": "node bin/Makefile compileFonts", "compile:scss": "sgmf-scripts --compile css", "lint:js": "sgmf-scripts --lint js", - "test:unit": "jest --testPathPattern='test/unit'", + "upload": "sgmf-scripts --upload", + "uploadCartridge": "sgmf-scripts --uploadCartridge int_algolia && sgmf-scripts --uploadCartridge int_algolia_controllers && sgmf-scripts --uploadCartridge int_algolia_sfra && sgmf-scripts --uploadCartridge algolia_sg_changes && sgmf-scripts --uploadCartridge bm_algolia", + "watch": "sgmf-scripts --watch", + "watch:static": "sgmf-scripts --watch static", "test:variationindex": "jest --testPathPattern='test/e2e/variation_index.test.js' --runInBand", "test:frontend": "cypress run", "deploy:code": "node scripts/deployCode.js",