Skip to content

Commit

Permalink
fix: use common package convention
Browse files Browse the repository at this point in the history
- change package.json and tsconfig.json files to follow common
convention

Closes: #2216
Signed-off-by: Tomasz Awramski <tomasz.awramski@fujitsu.com>
  • Loading branch information
rwat17 committed Aug 11, 2023
1 parent ccdaa12 commit f15c8d2
Show file tree
Hide file tree
Showing 67 changed files with 605 additions and 447 deletions.
12 changes: 6 additions & 6 deletions examples/cactus-check-connection-ethereum-validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"version": "2.0.0-alpha.1",
"private": true,
"scripts": {
"start": "node ../../dist/packages/cactus-cmd-socketio-server/src/main/typescript/routing-interface/www.js",
"debug": "nodemon --inspect ../../dist/packages/cactus-cmd-socketio-server/src/main/typescript/routing-interface/www.js",
"build": "npm run build-ts && npm run copy-static-assets && npm run copy-blp-config && npm run replace-blp-config-path",
"build-ts": "tsc -p ./tsconfig.json",
"tslint": "tslint -c tslint.json -p tsconfig.json './*.ts'",
"copy-static-assets": "ts-node copyStaticAssets.ts",
"copy-blp-config": "ts-node copyBLPConfig.ts",
"copy-static-assets": "ts-node copyStaticAssets.ts",
"debug": "nodemon --inspect ../../dist/packages/cactus-cmd-socketio-server/src/main/typescript/routing-interface/www.js",
"init-check-connection-ethereum-validator": "ln -s ../examples/cactus-check-connection-ethereum-validator/node_modules ../../dist/node_modules",
"replace-blp-config-path": "ts-node replaceBLPConfigPath.ts",
"init-check-connection-ethereum-validator": "ln -s ../examples/cactus-check-connection-ethereum-validator/node_modules ../../dist/node_modules"
"start": "node ../../dist/packages/cactus-cmd-socketio-server/src/main/typescript/routing-interface/www.js",
"tslint": "tslint -c tslint.json -p tsconfig.json './*.ts'"
},
"dependencies": {
"escape-html": "1.0.3",
Expand All @@ -21,4 +21,4 @@
"@types/escape-html": "1.0.1",
"@types/node": "15.14.7"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
"url": "https://www.hyperledger.org/use/cactus"
"url": "https://www.hyperledger.org/use/cacti"
},
"contributors": [
{
Expand Down Expand Up @@ -101,4 +101,4 @@
"extensions": "sol"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
"url": "https://www.hyperledger.org/use/cactus"
"url": "https://www.hyperledger.org/use/cacti"
},
"contributors": [
{
Expand All @@ -46,8 +46,8 @@
"codegen": "run-p 'codegen:*'",
"codegen:openapi": "npm run generate-sdk",
"generate-sdk": "run-p 'generate-sdk:*'",
"generate-sdk:typescript-axios": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios --reserved-words-mappings protected=protected",
"generate-sdk:kotlin": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g kotlin -o ./src/main/kotlin/generated/openapi/kotlin-client/ --reserved-words-mappings protected=protected",
"generate-sdk:typescript-axios": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios --reserved-words-mappings protected=protected",
"watch": "npm-watch",
"webpack": "npm-run-all webpack:dev",
"webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web",
Expand Down Expand Up @@ -91,4 +91,4 @@
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@
"publishConfig": {
"access": "public"
}
}
}
10 changes: 5 additions & 5 deletions examples/cactus-example-discounted-asset-trade/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "@hyperledger/cactus-example-discounted-asset-trade",
"version": "2.0.0-alpha.1",
"private": true,
"license": "Apache-2.0",
"main": "dist/www.js",
"module": "dist/www.js",
"types": "dist/www.d.ts",
"private": true,
"scripts": {
"start": "npm run build_pip_indy_package && docker-compose build && docker-compose up",
"start-dockerless": "node ./dist/www.js",
"build": "npm run build-ts && npm run build:dev:backend:postbuild",
"build-ts": "tsc",
"build:dev:backend:postbuild": "cp -f ../../yarn.lock ./dist/",
"build_pip_indy_package": "cd ../../packages-python/cactus_validator_socketio_indy && python3 setup.py bdist_wheel",
"build:dev:backend:postbuild": "cp -f ../../yarn.lock ./dist/"
"start": "npm run build_pip_indy_package && docker-compose build && docker-compose up",
"start-dockerless": "node ./dist/www.js"
},
"dependencies": {
"@hyperledger/cactus-cmd-socketio-server": "2.0.0-alpha.1",
Expand Down Expand Up @@ -48,4 +48,4 @@
"@types/express": "4.17.13",
"@types/jsrsasign": "10.5.8"
}
}
}
10 changes: 5 additions & 5 deletions examples/cactus-example-electricity-trade/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@hyperledger/cactus-example-electricity-trade",
"version": "2.0.0-alpha.1",
"private": true,
"license": "Apache-2.0",
"main": "dist/www.js",
"module": "dist/www.js",
"types": "dist/www.d.ts",
"private": true,
"scripts": {
"start": "docker-compose build && docker-compose up",
"start-dockerless": "node ./dist/www.js",
"build": "npm run build-ts && npm run build:dev:backend:postbuild",
"build-ts": "tsc",
"build:dev:backend:postbuild": "cp -f ../../yarn.lock ./dist/"
"build:dev:backend:postbuild": "cp -f ../../yarn.lock ./dist/",
"start": "docker-compose build && docker-compose up",
"start-dockerless": "node ./dist/www.js"
},
"dependencies": {
"@hyperledger/cactus-cmd-socketio-server": "2.0.0-alpha.1",
Expand Down Expand Up @@ -47,4 +47,4 @@
"eslint-plugin-prettier": "4.0.0",
"prettier": "2.5.1"
}
}
}
4 changes: 2 additions & 2 deletions examples/cactus-example-supply-chain-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
"url": "https://www.hyperledger.org/use/cactus"
"url": "https://www.hyperledger.org/use/cacti"
},
"contributors": [
{
Expand Down Expand Up @@ -90,4 +90,4 @@
"browserMinified": "dist/cactus-example-supply-chain-backend.web.umd.min.js",
"mainMinified": "dist/cactus-example-supply-chain-backend.node.umd.min.js",
"watch": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
"url": "https://www.hyperledger.org/use/cactus"
"url": "https://www.hyperledger.org/use/cacti"
},
"contributors": [
{
Expand All @@ -46,8 +46,8 @@
"codegen": "run-p 'codegen:*'",
"codegen:openapi": "npm run generate-sdk",
"generate-sdk": "run-p 'generate-sdk:*'",
"generate-sdk:typescript-axios": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/",
"generate-sdk:kotlin": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g kotlin -o ./src/main/kotlin/generated/openapi/kotlin-client/ --reserved-words-mappings protected=protected",
"generate-sdk:typescript-axios": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/",
"watch": "npm-watch",
"webpack": "npm-run-all webpack:dev",
"webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web",
Expand Down Expand Up @@ -92,4 +92,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion examples/cactus-example-supply-chain-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@
"publishConfig": {
"access": "public"
}
}
}
6 changes: 3 additions & 3 deletions examples/cactus-example-tcs-huawei/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"module": "dist/www.js",
"types": "dist/www.d.ts",
"scripts": {
"start": "docker-compose build && docker-compose up",
"build": "npm run build-ts && npm run build:dev:backend:postbuild",
"build-ts": "tsc",
"build:dev:backend:postbuild": "cp -f ../../yarn.lock ./dist/"
"build:dev:backend:postbuild": "cp -f ../../yarn.lock ./dist/",
"start": "docker-compose build && docker-compose up"
},
"dependencies": {
"@hyperledger/cactus-cmd-socketio-server": "2.0.0-alpha.1",
Expand Down Expand Up @@ -47,4 +47,4 @@
"eslint-plugin-prettier": "4.0.0",
"prettier": "2.5.1"
}
}
}
4 changes: 2 additions & 2 deletions examples/cactus-workshop-examples-2022-11-14/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
"url": "https://www.hyperledger.org/use/cactus"
"url": "https://www.hyperledger.org/use/cacti"
},
"contributors": [
{
Expand Down Expand Up @@ -68,4 +68,4 @@
"browserMinified": "dist/cactus-workshop-examples-2022-11-14.web.umd.min.js",
"mainMinified": "dist/cactus-workshop-examples-2022-11-14.node.umd.min.js",
"watch": {}
}
}
2 changes: 1 addition & 1 deletion examples/supply-chain-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
"url": "https://www.hyperledger.org/use/cactus"
"url": "https://www.hyperledger.org/use/cacti"
},
"contributors": [
{
Expand Down
4 changes: 2 additions & 2 deletions extensions/cactus-plugin-htlc-coordinator-besu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
"url": "https://www.hyperledger.org/use/cactus"
"url": "https://www.hyperledger.org/use/cacti"
},
"contributors": [
{
Expand Down Expand Up @@ -99,4 +99,4 @@
]
}
}
}
}
6 changes: 3 additions & 3 deletions extensions/cactus-plugin-object-store-ipfs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
"url": "https://www.hyperledger.org/use/cactus"
"url": "https://www.hyperledger.org/use/cacti"
},
"contributors": [
{
Expand All @@ -46,8 +46,8 @@
"codegen": "run-p 'codegen:*'",
"codegen:openapi": "npm run generate-sdk",
"generate-sdk": "run-p 'generate-sdk:*'",
"generate-sdk:typescript-axios": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios --reserved-words-mappings protected=protected",
"generate-sdk:kotlin": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g kotlin -o ./src/main/kotlin/generated/openapi/kotlin-client/ --reserved-words-mappings protected=protected",
"generate-sdk:typescript-axios": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios --reserved-words-mappings protected=protected",
"watch": "npm-watch",
"webpack": "npm-run-all webpack:dev",
"webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web",
Expand Down Expand Up @@ -87,4 +87,4 @@
]
}
}
}
}
4 changes: 2 additions & 2 deletions packages/cactus-api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
"url": "https://www.hyperledger.org/use/cactus"
"url": "https://www.hyperledger.org/use/cacti"
},
"contributors": [
{
Expand Down Expand Up @@ -74,4 +74,4 @@
"browserMinified": "dist/cactus-api-client.web.umd.min.js",
"mainMinified": "dist/cactus-api-client.node.umd.min.js",
"watch": {}
}
}
6 changes: 3 additions & 3 deletions packages/cactus-cmd-api-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
"url": "https://www.hyperledger.org/use/cactus"
"url": "https://www.hyperledger.org/use/cacti"
},
"contributors": [
{
Expand All @@ -47,8 +47,8 @@
"codegen:openapi": "npm run generate-sdk",
"codegen:proto": "run-s proto:openapi proto:protoc-gen-ts",
"generate-sdk": "run-p 'generate-sdk:*'",
"generate-sdk:typescript-axios": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios --reserved-words-mappings protected=protected",
"generate-sdk:kotlin": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g kotlin -o ./src/main/kotlin/generated/openapi/kotlin-client/ --reserved-words-mappings protected=protected",
"generate-sdk:typescript-axios": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios --reserved-words-mappings protected=protected",
"proto:openapi": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g protobuf-schema --model-name-suffix=PB --additional-properties=packageName=org.hyperledger.cactus.cmd_api_server -o ./src/main/proto/generated/openapi/ -t=./src/main/openapi-generator/templates/protobuf-schema/",
"proto:protoc-gen-ts": "yarn run grpc_tools_node_protoc --plugin=protoc-gen-ts=../../node_modules/.bin/protoc-gen-ts --ts_out=grpc_js:./src/main/typescript/generated/proto/protoc-gen-ts/ --proto_path ./src/main/proto/generated/openapi/ ./src/main/proto/generated/openapi/services/*.proto",
"watch": "npm-watch",
Expand Down Expand Up @@ -135,4 +135,4 @@
]
}
}
}
}
39 changes: 35 additions & 4 deletions packages/cactus-cmd-socketio-server/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,41 @@
{
"name": "@hyperledger/cactus-cmd-socketio-server",
"version": "2.0.0-alpha.1",
"description": "Allows Cactus nodes to interact with HTLC ETH contracts",
"keywords": [
"Hyperledger",
"Cactus",
"Integration",
"Blockchain",
"Distributed Ledger Technology"
],
"homepage": "https://github.com/hyperledger/cacti#readme",
"bugs": {
"url": "https://github.com/hyperledger/cacti/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hyperledger/cacti.git"
},
"license": "Apache-2.0",
"main": "dist/src/main/typescript/index.js",
"module": "dist/src/main/typescript/index.js",
"types": "dist/src/main/typescript/index.d.ts",
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
"url": "https://www.hyperledger.org/use/cacti"
},
"contributors": [
{
"name": "Please add yourself to the list of contributors",
"email": "your.name@example.com",
"url": "https://example.com"
}
],
"main": "dist/lib/main/typescript/index.js",
"module": "dist/lib/main/typescript/index.js",
"types": "dist/lib/main/typescript/index.d.ts",
"files": [
"dist/*"
],
"scripts": {
"build": "npm run build-ts && npm run build:dev:backend:postbuild",
"build-ts": "tsc",
Expand Down Expand Up @@ -55,4 +86,4 @@
"publishConfig": {
"access": "public"
}
}
}
9 changes: 4 additions & 5 deletions packages/cactus-cmd-socketio-server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./dist/",
"tsBuildInfoFile": "../../.build-cache/cactus-cmd-socketio-server.tsbuildinfo",
"outDir": "./dist/lib",
"rootDir": "./src",
"tsBuildInfoFile": "../../.build-cache/cactus-cmd-socketio-server.tsbuildinfo"
},
"include": [
"./src/main/typescript/business-logic-plugin/*.ts",
Expand All @@ -13,9 +14,7 @@
"./src/main/typescript/util/*.ts",
"./src/main/typescript/routing-interface/**/*.ts"
],
"exclude": [
"copyStaticAssets.ts"
],
"exclude": ["copyStaticAssets.ts"],
"references": [
{
"path": "../cactus-common/tsconfig.json"
Expand Down
Loading

0 comments on commit f15c8d2

Please sign in to comment.