-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
49 lines (49 loc) · 3.17 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
{
"devDependencies": {
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@commitlint/prompt-cli": "^19.6.1",
"commit-and-tag-version": "^12.5.0",
"concurrently": "^9.1.0",
"cross-env": "^7.0.3"
},
"engines": {
"npm": "^10.9.0",
"node": "^22.12.0"
},
"scripts": {
"start": "concurrently \"npm run serve\" \"npm run docs\"",
"source": "docker volume create blinkfile-src && docker volume create blinkfile-cache && docker build --tag blinkfile-source -f .local/build.Dockerfile --target source . && docker run --rm -v blinkfile-src:/out_src -v blinkfile-cache:/out_cache blinkfile-source",
"host:install": "go mod download && cd app/web && npm i && cd ../..",
"host:run": "go run ./...",
"lint": "npm run lint:git && npm run lint:app && npm run lint:acceptance-tests",
"lint:app": "npm run source && npm run golangci-lint -- run -v",
"lint:git": "commitlint --from HEAD~1 --to HEAD --verbose",
"lint:acceptance-tests": "npm run cypress:lint",
"test": "npm run test:unit && npm run test:acceptance",
"test:unit": "npm run source && npm run go:test",
"test:unit:cover": "npm run source && npm run go:test:cover",
"test:acceptance": "npm run build && npm run acceptance-test:build && npm run acceptance-test",
"build": "docker build --tag blinkfile-candidate -f .local/build.Dockerfile .",
"serve": "docker compose -f=.local/docker-compose.yml build blinkfile && docker compose -f=.local/docker-compose.yml run -p=8020:8020 -e=PORT=8020 --rm blinkfile",
"dev": "docker compose -f=.local/docker-compose.yml run -p=8020:8020 -e=PORT=8020 --rm blinkfile-dev",
"docs": "npm run hugo:serve",
"hugo": "docker compose -f=.local/docker-compose.yml build blinkfile-hugo && docker compose -f=.local/docker-compose.yml run -p=8021:8021 --rm blinkfile-hugo",
"hugo:serve": "npm run hugo -- server -p=8021 --bind=0.0.0.0 -D --poll 700ms",
"commitlint": "commitlint",
"commit": "commit",
"golangci-lint": "docker run --rm -v blinkfile-src:/app -v blinkfile-cache:/root/.cache -w /app golangci/golangci-lint:v1.62.2 golangci-lint",
"go:test": "docker build --tag blinkfile-unit-test -f .local/unit-test.Dockerfile . && docker run --rm -v blinkfile-src:/src -v blinkfile-cache:/cache blinkfile-unit-test",
"go:test:cover": "docker compose -f .local/docker-compose.yml run --rm blinkfile-unit-test",
"acceptance-test:build": "docker build --tag blinkfile-acceptance-test-runner test/cypress",
"acceptance-test": "docker compose -f test/docker-compose.yml up --exit-code-from acceptance-test-runner && docker compose -f test/docker-compose.yml down",
"cypress:install": "cd test/cypress && npm i && cd ../..",
"cypress:lint": "cd test/cypress && npm run test:lint && cd ../..",
"cypress:run": "cd test/cypress && npm run test && cd ../..",
"cypress:open": "cd test/cypress && npm run test:open && cd ../..",
"cypress:open:implementing": "cd test/cypress && npm run test:open:implementing && cd ../..",
"prepare": "git config core.hooksPath .githooks",
"git:hook:commit-msg": "commitlint --edit --verbose",
"git:hook:pre-push": "npm run lint && npm run test"
}
}