-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
121 lines (121 loc) · 6.67 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"name": "@scramjet/transform-hub",
"version": "1.0.1",
"private": true,
"description": "A development repo for Scramjet Transform Hub, a container supervisor that allows deployment, execution and monitoring of any application based on a simple interface.",
"main": "index.js",
"bin": {
"scramjet-transform-hub": "dist/sth/bin/hub.js"
},
"scripts": {
"build": "yarn build:all",
"build:all": "yarn build:packages && yarn build:refapps && yarn build:docker",
"build:all-packages": "yarn build:packages && yarn build:refapps",
"prebuild:refapps": "yarn download:refapps",
"build:refapps": "yarn build:refapps:node",
"postbuild:refapps": "scripts/run-script.js -v -w refapps postbuild:refapps",
"prebuild:refapps:node": "scripts/build-all.js -v -w refapps --outdir=dist/ --no-install --no-distws --bundle",
"build:refapps:node": "scripts/run-script.js -v -w refapps build:refapps:node",
"prebuild:packages": "scripts/run-script.js -v -w modules build:only",
"build:packages": "scripts/build-all.js -v -w modules --ts-config tsconfig.build.json",
"build:docker": "scripts/run-script.js -w modules build:docker",
"build:readme": "node ./scripts/mk-readme",
"build:docs": "scripts/run-script.js -w modules build:docs && NODE_ENV=development yarn run start:dev:cli dev cmdToMd -o docs/cli/commands-description.md",
"build:all-docs": "yarn build:readme && yarn build:docs",
"prepack:pub": "scripts/run-script.js -w '!bdd' build:only",
"pack:pub": "yarn clean:root && FLAT_PACKAGES=true MAKE_PUBLIC=true NO_INSTALL=true scripts/build-all.js -w '!bdd' --ts-config tsconfig.build.json",
"publish:dist": "find dist/ -iname package.json -not -wholename '*node_modules*' -execdir yarn publish --no-git-tag-version --non-interactive \\;",
"cloc": "cloc . --fullpath --include-lang TypeScript,JavaScript,Python,Dockerfile,Markdown --match-d=\"(packages|bdd/step-definitions|bdd/lib)\" --not-match-d \"(node_modules|test|dist)\" --by-percent cmb",
"clean": "yarn clean:root && scripts/run-script.js clean",
"clean:root": "rm -rf ./dist/",
"clean:modules": "find -name node_modules -or -name __pypackages__ -prune -exec rm -rf {} ';' 2> /dev/null",
"clean:refapps": "rm packages/*.tar.gz",
"lint:full": "TIMING=1 NODE_OPTIONS=\"--max-old-space-size=3072\" eslint . --ext .ts --ext .js --cache --cache-strategy=content --cache-location=.eslintcache_scramjet-csi",
"lint": "TIMING=1 NODE_OPTIONS=\"--max-old-space-size=2048\" scripts/run-script.js -w modules -j 4 -e \"! ls .eslintrc* > /dev/null || npx eslint ./ --ext .ts --ext .js --cache --cache-strategy=content\"",
"lint:uncached": "find . -name .eslintcache -delete && yarn lint",
"start": "DEVELOPMENT=true node dist/sth/bin/hub.js",
"start:dev": "ts-node packages/sth/src/bin/hub.ts",
"start:dev:cli": "DEVELOPMENT=true ts-node packages/cli/src/bin/index.ts",
"install:clean": "yarn clean && yarn clean:modules && yarn install",
"postinstall": "scripts/run-script.js -v -w modules install:deps",
"prepare": "npx husky install",
"download:refapps": "cd packages && wget -q 'https://api.github.com/repos/scramjetorg/reference-apps/releases/latest' -O - | jq -r '.assets[].browser_download_url' | xargs -n 4 -P ${MAX_PARALLEL:-$(sysctl -n hw.ncpu 2>/dev/null || sysctl -n hw.logicalcpu 2>/dev/null || echo 1)} wget -q -nc",
"test": "yarn test:packages",
"test:packages": "scripts/run-script.js -S test",
"test:packages-no-concurrent": "scripts/run-script.js -S -j 1 test",
"test:bdd-ci-hub": "NO_HOST=true yarn --cwd=./bdd run test:bdd --format=@cucumber/pretty-formatter -t @ci-hub",
"test:bdd-ci-api": "yarn test:bdd-ci-api-node",
"test:bdd-ci-api-node": "yarn --cwd=./bdd run test:bdd --format=@cucumber/pretty-formatter -t @ci-api",
"test:bdd-ci-api-topic": "yarn --cwd=./bdd run test:bdd --format=@cucumber/pretty-formatter -t @ci-topic",
"test:bdd-ci-python": "yarn --cwd=./bdd run test:bdd --format=@cucumber/pretty-formatter -t @ci-instance-python",
"test:bdd-ci-node": "yarn --cwd=./bdd run test:bdd --format=@cucumber/pretty-formatter -t @ci-instance-node",
"test:bdd": "yarn --cwd=./bdd run test:bdd --fail-fast",
"test:unified-py": "PACKAGES_DIR=../packages/python- yarn --cwd=./bdd run test:bdd --format=@cucumber/pretty-formatter -t @ci-unified",
"test:unified-js": "PACKAGES_DIR=../packages/ yarn --cwd=./bdd run test:bdd --format=@cucumber/pretty-formatter -t @ci-unified",
"test:coverage": "nyc yarn run test:bdd",
"prebump:packages": "NEXT_VER=$(npx semver -i ${VERSION_LEVEL:-prerelease} $(jq -r .version < package.json)) && git diff --exit-code --quiet && yarn bump:images && ./scripts/add-to-packages-json.js --pattern={bdd/,packages/**/}package.json -o version \"${NEXT_VER}\" && bash ./scripts/bump-dependencies-versions.sh \"${NEXT_VER}\" && git add .",
"bump:packages": "NEXT_VER=$(npx semver -i ${VERSION_LEVEL:-prerelease} $(jq -r .version < package.json)) && yarn version --new-version ${NEXT_VER}",
"bump:images": "./scripts/bump_docker_images.sh",
"bump:version:minor": "VERSION_LEVEL=minor yarn bump:packages",
"bump:version:patch": "VERSION_LEVEL=patch yarn bump:packages",
"bump:version:major": "VERSION_LEVEL=major yarn bump:packages",
"bump:version": "yarn bump:packages --no-git-tag-version",
"bump:postversion": "yarn pack:pub && yarn publish:dist && git push --follow-tags",
"upgrade:all": "scripts/deps-update.js -f && npm install",
"savehash": "scripts/run-script.js -w modules savehash"
},
"author": "Scramjet <[email protected]>",
"license": "AGPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/scramjetorg/transform-hub.git"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@npmcli/run-script": "4.2.1",
"@types/node": "15.12.5",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"cloc": "^2.10.0",
"eslint": "^8.55.0",
"eslint-plugin-import": "^2.29.1",
"eslint-to-editorconfig": "^2.0.0",
"fs-extra": "^9.1.0",
"glob": "^7.2.3",
"globrex": "^0.1.2",
"husky": "^6.0.0",
"nyc": "^15.1.0",
"semver": "^7.5.2",
"tar": "^6.1.11",
"toposort": "^2.0.2",
"ts-node": "^10.9.1",
"typescript": "~4.7.4",
"yarn": "^1.22.19"
},
"workspaces": {
"packages": [
"packages/*",
"packages/reference-apps/*",
"bdd/"
],
"refapps": [
"packages/reference-apps/*"
],
"modules": [
"packages/*"
],
"bdd": [
"bdd/"
]
},
"husky": {
"hooks": {
"pre-push": "yarn lint"
}
},
"dependencies": {
"minimist": "^1.2.7",
"npm": "8",
"scramjet": "^4.36.9"
}
}