Skip to content

Commit

Permalink
chore(package): update npm scripts and add new commands
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
htuzel committed Jan 31, 2025
1 parent 55cf0cd commit d440b18
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d440b18

Please sign in to comment.