-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
83 lines (83 loc) · 2.59 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"name": "FUCR",
"private": true,
"version": "1.0.0",
"description": "FUCR",
"main": "index.js",
"scripts": {
"test": "docker-compose run --rm web npm run test",
"build": "npm run build:prod && docker image ls | head",
"build:dev": "docker-compose build --force-rm",
"build:prod": "docker-compose -f docker-compose.yml build --force-rm",
"release": "npx release-it -- --only-version",
"ci-npm-modules": "cd web && npm ci",
"dev:docker": "docker-compose",
"dev": "docker-compose up -d web",
"dev:shell": "docker-compose exec web bash",
"dev:cmd": "docker-compose exec web",
"dev:npm": "docker-compose exec web npm run",
"dev:npm-check": "npm run dev:cmd -- npx npm-check -u",
"dev:dbshell": "docker-compose exec db psql -U app app",
"dev:logs": "docker-compose logs -f --tail=100",
"dev:test": "npm run dev:cmd -- npm run test",
"dev:recreate": "npm run dev:docker -- rm -s -f web && npm run dev",
"stop": "docker-compose stop",
"prod": "npm run build:prod && npm run prod:reload",
"prod:reload": "docker service update --force fucr_dev_web",
"dc:user": "USER_ID=$(id -u):$(id -g) docker-compose"
},
"repository": {
"type": "git",
"url": "https://github.com/dogada/fucr.git"
},
"author": "Dmytro V. Dogadailo",
"license": "SEE LICENSE IN LICENSE.txt",
"bugs": {
"url": "https://github.com/dogada/fucr/issues"
},
"homepage": "https://github.com/dogada/fucr",
"devDependencies": {
"@csmith/release-it-calver-plugin": "^1.0.2",
"cross-env": "^7.0.3",
"husky": "^4.2.5",
"lint-staged": "^10.5.4"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"web/*.{ts,tsx,jsx}": [
"web/node_modules/.bin/eslint --cache"
],
"*.{disabled}": [
"web/node_modules/.bin/jest --bail --findRelatedTests"
]
},
"release-it": {
"hooks": {
"before:init": [
"echo Starting new release..."
],
"after:bump": "npm run build",
"after:git:release": [
"docker tag fucr_web:latest registry.gitlab.com/fucr/fucr/fucr_web:latest",
"docker tag fucr_web:latest registry.gitlab.com/fucr/fucr/fucr_web:${version}",
"docker push registry.gitlab.com/fucr/fucr/fucr_web:${version}",
"docker push registry.gitlab.com/fucr/fucr/fucr_web:latest"
],
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
},
"github": {
"release": false
},
"gitlab": {
"release": true
},
"npm": {
"publish": false
}
},
"dependencies": {}
}