This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
36 lines (36 loc) · 2.19 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"name": "zen",
"version": "1.23.0",
"description": "",
"scripts": {
"lint": "bash script/lint-all.sh",
"test": "yarn test:front && yarn test:back",
"test:all": "yarn test:e2e && yarn test # This is useful in this order for ci as e2e will install all dependencies needed for front & back tests",
"test:e2e": "docker-compose -p test-e2e -f docker-compose.test.yml run --rm e2e; exitcode=$?; docker-compose -p test-e2e -f docker-compose.test.yml down; exit ${exitcode}",
"test:front": "docker-compose -p test-front -f docker-compose.test.yml run --rm front yarn test",
"test:front:snapshots": "docker-compose -p test-front -f docker-compose.test.yml run --rm front yarn test -- -u",
"test:back": "docker-compose -p test-back -f docker-compose.test.yml run -e NODE_CONFIG='{\"bypassDeclarationDispatch\": false, \"bypassDocumentsDispatch\": false}' --rm node yarn test; exitcode=$?; docker-compose -p test-back -f docker-compose.test.yml stop db; docker-compose -p test-back -f docker-compose.test.yml rm -f; exit ${exitcode}",
"test:back:snapshots": "docker-compose -p test-back -f docker-compose.test.yml run -e NODE_CONFIG='{\"bypassDeclarationDispatch\": false, \"bypassDocumentsDispatch\": false}' --rm node yarn test -- -u; exitcode=$?; docker-compose -p test-back -f docker-compose.test.yml stop db; docker-compose -p test-back -f docker-compose.test.yml rm -f; exit ${exitcode}",
"database:knex-migrate": "docker exec $(docker ps -aq --filter='name=zen_node') yarn run knex migrate:latest",
"database:knex-rollback": "docker exec $(docker ps -aq --filter='name=zen_node') yarn run knex migrate:rollback",
"start:dev": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d"
},
"repository": {
"type": "git",
"url": "git+https://github.com/StartupsPoleEmploi/actualisation.git"
},
"author": "Hugo Agbonon <[email protected]>",
"license": "AGPL-3.0",
"bugs": {
"url": "https://github.com/StartupsPoleEmploi/actualisation/issues"
},
"homepage": "https://github.com/StartupsPoleEmploi/actualisation#readme",
"devDependencies": {
"husky": "^4.2.5"
},
"husky": {
"hooks": {
"pre-commit": "bash script/pre-commit.sh"
}
}
}