This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
37 lines (37 loc) · 2.36 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
37
{
"name": "zen-createur",
"version": "1.0.1",
"description": "",
"scripts": {
"test": "yarn lint && yarn test:front && yarn test:api",
"test:all": "yarn test:e2e && yarn test # This is useful in this order for ci as e2e will install all dependencies needed for front & api 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:api": "docker-compose -p test-api -f docker-compose.test.yml run -e NODE_CONFIG='{\"bypassDeclarationDispatch\": false, \"bypassDocumentsDispatch\": false}' --rm node yarn test; exitcode=$?; docker-compose -p test-api -f docker-compose.test.yml stop db; docker-compose -p test-api -f docker-compose.test.yml rm -f; exit ${exitcode}",
"test:api:snapshots": "docker-compose -p test-api -f docker-compose.test.yml run -e NODE_CONFIG='{\"bypassDeclarationDispatch\": false, \"bypassDocumentsDispatch\": false}' --rm node yarn test -- -u; exitcode=$?; docker-compose -p test-api -f docker-compose.test.yml stop db; docker-compose -p test-api -f docker-compose.test.yml rm -f; exit ${exitcode}",
"database:knex-migrate": "docker exec $(docker ps -aq --filter='name=zen-createur-api') yarn run knex migrate:latest",
"database:knex-rollback": "docker exec $(docker ps -aq --filter='name=zen-createur-api') yarn run knex migrate:rollback",
"start:dev": "export ZEN_ENV=development && docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d",
"log:dev": "export ZEN_ENV=development && docker-compose -f docker-compose.yml -f docker-compose.dev.yml logs -f --tail 50"
},
"repository": "git+https://github.com/StartupsPoleEmploi/zen-createur.git",
"author": "Zen <[email protected]>",
"license": "AGPL-3.0",
"bugs": {
"url": "https://github.com/StartupsPoleEmploi/zen-createur/issues"
},
"homepage": "https://github.com/StartupsPoleEmploi/zen-createur#readme",
"devDependencies": {
"husky": "^3.0.2"
},
"husky": {
"hooks": {
"pre-commit": "sh script/pre-commit.sh"
}
},
"dependencies": {
"cypress": "^3.3.1"
},
"main": "index.js"
}