Skip to content

Commit

Permalink
[WIP]: npm run cache:*:reference: check src directory before move.
Browse files Browse the repository at this point in the history
- cache:restore:reference: generate images if cache does not exist.
  • Loading branch information
h-sug1no committed Oct 24, 2021
1 parent dcdce61 commit e2f53db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
"diff:reference": "./tools/visual_regression.sh reference",
"test": "npm run lint && npm run qunit && npm run generate && npm run diff",
"test:reference": "npm run lint && npm run qunit && npm run generate:current && npm run generate:reference && npm run diff:reference",
"cache:save:reference": "rm -rf ./reference/images && mv ./build/images/reference ./reference/images",
"cache:restore:reference": "mv ./reference/images ./build/images/reference",
"cache:save:reference": "if [ -d ./build/images/reference ]; then rm -rf ./reference/images && mv ./build/images/reference ./reference/images; fi;",
"cache:restore:reference": "if [ -d ./reference/images ]; then mv ./reference/images ./build/images/reference; else npm run generate:reference; fi;",
"test:reference:cache": "npm run cache:save:reference && npm run lint && npm run qunit && npm run generate:current && npm run cache:restore:reference && npm run diff:reference"
},
"homepage": "http://vexflow.com",
Expand Down

0 comments on commit e2f53db

Please sign in to comment.