forked from vendure-ecommerce/vendure
/
package.json
85 lines (85 loc) · 3.74 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
84
85
{
"name": "vendure",
"version": "0.0.0",
"private": true,
"scripts": {
"core:watch": "concurrently -n tsc,gulp,common \"cd packages/core && yarn tsc:watch\" \"cd packages/core && yarn gulp:watch\" \"cd packages/common && yarn watch\"",
"bootstrap": "lerna bootstrap && cd admin-ui && yarn",
"docs:watch": "concurrently --restart-tries 5 -n docgen,hugo,webpack -c green,blue,cyan \"yarn generate-graphql-docs && yarn generate-typescript-docs -w\" \"cd docs && hugo server\" \"cd docs && yarn webpack -w\"",
"docs:build": "yarn generate-graphql-docs && yarn generate-typescript-docs && cd docs && yarn webpack --prod && node build.js && hugo",
"docs:deploy": "cd docs && yarn && cd .. && yarn docs:build",
"codegen": "ts-node scripts/codegen/generate-graphql-types.ts",
"generate-typescript-docs": "ts-node scripts/docs/generate-typescript-docs.ts",
"generate-graphql-docs": "ts-node scripts/docs/generate-graphql-docs.ts --api=shop && ts-node scripts/docs/generate-graphql-docs.ts --api=admin",
"format": "prettier --write --html-whitespace-sensitivity ignore",
"lint:packages": "yarn tslint --fix",
"lint:admin-ui": "cd admin-ui && yarn lint --fix",
"version": "yarn check-imports && yarn build && yarn generate-changelog && git add CHANGELOG.md",
"dev-server:start": "cd packages/dev-server && yarn start",
"dev-server:populate": "cd packages/dev-server && yarn populate",
"test:all": "cd admin-ui && yarn test --watch=false --browsers=ChromeHeadlessCI --progress=false && cd ../ && yarn test:common && yarn test:core && yarn test:email-plugin && yarn test:elasticsearch-plugin && yarn test:e2e",
"test:common": "jest --config packages/common/jest.config.js",
"test:core": "jest --config packages/core/jest.config.js",
"test:email-plugin": "jest --config packages/email-plugin/jest.config.js --maxWorkers=1",
"test:elasticsearch-plugin": "jest --config packages/elasticsearch-plugin/jest.config.js",
"test:e2e": "jest --config packages/core/e2e/config/jest-e2e.json --runInBand",
"test:admin-ui": "cd admin-ui && yarn test --watch=false --browsers=ChromeHeadlessCI --progress=false",
"build": "lerna run build",
"check-imports": "ts-node scripts/check-imports.ts",
"generate-changelog": "ts-node scripts/changelogs/generate-changelog.ts",
"publish-release": "lerna publish -m \"chore: Publish %s\" --no-push"
},
"devDependencies": {
"@commitlint/cli": "^7.6.1",
"@commitlint/config-conventional": "^7.6.0",
"@graphql-codegen/add": "^1.1.3",
"@graphql-codegen/cli": "^1.1.3",
"@graphql-codegen/fragment-matcher": "^1.4.0",
"@graphql-codegen/typescript": "^1.1.3",
"@graphql-codegen/typescript-compatibility": "^1.1.3",
"@graphql-codegen/typescript-operations": "^1.1.3",
"@types/graphql": "^14.0.5",
"@types/klaw-sync": "^6.0.0",
"@types/node": "^10.11.5",
"concurrently": "^4.1.0",
"conventional-changelog-core": "^3.2.2",
"find": "^0.3.0",
"graphql": "^14.1.1",
"graphql-tools": "^4.0.0",
"husky": "^3.0.0",
"jest": "^24.5.0",
"klaw-sync": "^6.0.0",
"lerna": "^3.14.1",
"lint-staged": "^9.2.0",
"prettier": "^1.15.2",
"ts-jest": "^24.0.0",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"typescript": "^3.2.4"
},
"workspaces": [
"packages/*"
],
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"subject-case": [
2,
"always",
[
"sentence-case"
]
]
}
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
"post-commit": "git update-index --again",
"pre-commit": "lint-staged",
"pre-push": "yarn test:all && cd admin-ui && yarn build --prod"
}
}
}