Skip to content

Commit

Permalink
ci(json): ensure package json files are sorted
Browse files Browse the repository at this point in the history
Fixes hyperledger-cacti#1341

Signed-off-by: Youngone Lee youngone.lee@accenture.com
  • Loading branch information
Leeyoungone committed Dec 6, 2021
1 parent 7d31a39 commit 91660dd
Show file tree
Hide file tree
Showing 43 changed files with 1,411 additions and 1,461 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ jobs:
- name: Get the output response
run: echo "${{ steps.lint-git-repo.outputs.lint-git-repo-response }}"

check-package-json:
runs-on: ubuntu-20.04
name: check-package-json
continue-on-error: false
steps:
- name: checks if the root package json and their child package json files are sorted
run: yarn run sort-json-check

build-node-14:
runs-on: ubuntu-20.04
continue-on-error: false
Expand Down
65 changes: 24 additions & 41 deletions examples/cactus-example-carbon-accounting-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,22 @@
"name": "@hyperledger/cactus-example-carbon-accounting-backend",
"version": "1.0.0-rc.2",
"description": "An example application showing how to use Cactus when implementing a Carbon Accounting Application where two or more blockchains are sharing data with each other to achieve a certain business outcome beneficial to multiple parties (business organizations).",
"main": "dist/lib/main/typescript/index.js",
"mainMinified": "dist/cactus-example-carbon-accounting-backend.node.umd.min.js",
"browser": "dist/cactus-example-carbon-accounting-backend.web.umd.js",
"browserMinified": "dist/cactus-example-carbon-accounting-backend.web.umd.min.js",
"module": "dist/lib/main/typescript/index.js",
"types": "dist/lib/main/typescript/index.d.ts",
"files": [
"dist/*"
],
"scripts": {
"start": "CONFIG_FILE=./example-config.json node dist/lib/main/typescript/carbon-accounting-app-cli.js",
"solidity": "hardhat compile",
"watch": "npm-watch",
"webpack": "npm-run-all webpack:dev",
"webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web",
"webpack:dev:web": "webpack --env=dev --target=web --config ../../webpack.config.js",
"webpack:dev:node": "webpack --env=dev --target=node --config ../../webpack.config.js"
},
"watch": {
"solidity": {
"patterns": [
"./src/main/solidity/"
],
"extensions": "sol"
}
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=10",
"npm": ">=6"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hyperledger/cactus.git"
},
"keywords": [
"Hyperledger",
"Cactus",
"Integration",
"Blockchain",
"Distributed Ledger Technology"
],
"homepage": "https://github.com/hyperledger/cactus#readme",
"bugs": {
"url": "https://github.com/hyperledger/cactus/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hyperledger/cactus.git"
},
"license": "Apache-2.0",
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
Expand All @@ -63,11 +35,22 @@
"url": "https://accenture.com"
}
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/hyperledger/cactus/issues"
"main": "dist/lib/main/typescript/index.js",
"module": "dist/lib/main/typescript/index.js",
"browser": "dist/cactus-example-carbon-accounting-backend.web.umd.js",
"types": "dist/lib/main/typescript/index.d.ts",
"files": [
"dist/*"
],
"scripts": {
"solidity": "hardhat compile",
"start": "CONFIG_FILE=./example-config.json node dist/lib/main/typescript/carbon-accounting-app-cli.js",
"watch": "npm-watch",
"webpack": "npm-run-all webpack:dev",
"webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web",
"webpack:dev:node": "webpack --env=dev --target=node --config ../../webpack.config.js",
"webpack:dev:web": "webpack --env=dev --target=web --config ../../webpack.config.js"
},
"homepage": "https://github.com/hyperledger/cactus#readme",
"dependencies": {
"@hyperledger/cactus-api-client": "1.0.0-rc.2",
"@hyperledger/cactus-cmd-api-server": "1.0.0-rc.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,22 @@
"name": "@hyperledger/cactus-example-carbon-accounting-business-logic-plugin",
"version": "1.0.0-rc.2",
"description": "An example business logic plugin implementation for Cactus",
"main": "dist/lib/main/typescript/index.js",
"mainMinified": "dist/cactus-example-carbon-accounting-business-logic-plugin.node.umd.min.js",
"browser": "dist/cactus-example-carbon-accounting-business-logic-plugin.web.umd.js",
"browserMinified": "dist/cactus-example-carbon-accounting-business-logic-plugin.web.umd.min.js",
"module": "dist/lib/main/typescript/index.js",
"types": "dist/lib/main/typescript/index.d.ts",
"files": [
"dist/*"
],
"scripts": {
"generate-sdk": "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",
"codegen:openapi": "npm run generate-sdk",
"codegen": "run-p 'codegen:*'",
"watch": "npm-watch",
"webpack": "npm-run-all webpack:dev",
"webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web",
"webpack:dev:web": "webpack --env=dev --target=web --config ../../webpack.config.js",
"webpack:dev:node": "webpack --env=dev --target=node --config ../../webpack.config.js"
},
"watch": {
"codegen:openapi": {
"patterns": [
"./src/main/json/openapi.json"
]
}
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=10",
"npm": ">=6"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hyperledger/cactus.git"
},
"keywords": [
"Hyperledger",
"Cactus",
"Integration",
"Blockchain",
"Distributed Ledger Technology"
],
"homepage": "https://github.com/hyperledger/cactus#readme",
"bugs": {
"url": "https://github.com/hyperledger/cactus/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hyperledger/cactus.git"
},
"license": "Apache-2.0",
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
Expand All @@ -63,11 +35,23 @@
"url": "https://accenture.com"
}
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/hyperledger/cactus/issues"
"main": "dist/lib/main/typescript/index.js",
"module": "dist/lib/main/typescript/index.js",
"browser": "dist/cactus-example-carbon-accounting-business-logic-plugin.web.umd.js",
"types": "dist/lib/main/typescript/index.d.ts",
"files": [
"dist/*"
],
"scripts": {
"codegen": "run-p 'codegen:*'",
"codegen:openapi": "npm run generate-sdk",
"generate-sdk": "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",
"webpack:dev:node": "webpack --env=dev --target=node --config ../../webpack.config.js",
"webpack:dev:web": "webpack --env=dev --target=web --config ../../webpack.config.js"
},
"homepage": "https://github.com/hyperledger/cactus#readme",
"dependencies": {
"@hyperledger/cactus-api-client": "1.0.0-rc.2",
"@hyperledger/cactus-common": "1.0.0-rc.2",
Expand All @@ -88,5 +72,21 @@
"@types/express": "4.17.13",
"@types/ssh2": "0.5.47",
"@types/uuid": "8.3.1"
},
"engines": {
"node": ">=10",
"npm": ">=6"
},
"publishConfig": {
"access": "public"
},
"browserMinified": "dist/cactus-example-carbon-accounting-business-logic-plugin.web.umd.min.js",
"mainMinified": "dist/cactus-example-carbon-accounting-business-logic-plugin.node.umd.min.js",
"watch": {
"codegen:openapi": {
"patterns": [
"./src/main/json/openapi.json"
]
}
}
}
80 changes: 40 additions & 40 deletions examples/cactus-example-carbon-accounting-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,50 @@
"name": "@hyperledger/cactus-example-carbon-accounting-frontend",
"version": "1.0.0-rc.2",
"description": "The frontend component of an example project demonstrating how Cactus can be used for cross-chain dapp development.",
"keywords": [
"Hyperledger",
"Cactus",
"Blockchain Integration",
"Distributed Ledger Technology"
],
"homepage": "https://github.com/hyperledger/cactus#readme",
"bugs": {
"url": "https://github.com/hyperledger/cactus/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hyperledger/cactus.git"
},
"license": "Apache-2.0",
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
"url": "https://www.hyperledger.org/use/cactus"
},
"contributors": [
{
"name": "Please add yourself to the list of contributors",
"email": "your.name@example.com",
"url": "https://example.com"
},
{
"name": "Peter Somogyvari",
"email": "peter.somogyvari@accenture.com",
"url": "https://accenture.com"
}
],
"files": [
"www/*"
],
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"serve": "ng serve",
"serve:proxy": "ng serve -- --proxy-config proxy.conf.json",
"build:dev:frontend": "ng build",
"build:prod:frontend": "ng build",
"prepublishOnly": "ng build"
"ng": "ng",
"prepublishOnly": "ng build",
"serve": "ng serve",
"serve:proxy": "ng serve -- --proxy-config proxy.conf.json",
"start": "ng serve"
},
"dependencies": {
"@angular/common": "12.2.0",
Expand Down Expand Up @@ -62,43 +94,11 @@
"tslint": "6.1.3",
"typescript": "4.3.5"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=10",
"npm": ">=6"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hyperledger/cactus.git"
},
"keywords": [
"Hyperledger",
"Cactus",
"Blockchain Integration",
"Distributed Ledger Technology"
],
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
"url": "https://www.hyperledger.org/use/cactus"
},
"contributors": [
{
"name": "Please add yourself to the list of contributors",
"email": "your.name@example.com",
"url": "https://example.com"
},
{
"name": "Peter Somogyvari",
"email": "peter.somogyvari@accenture.com",
"url": "https://accenture.com"
}
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/hyperledger/cactus/issues"
},
"homepage": "https://github.com/hyperledger/cactus#readme"
"publishConfig": {
"access": "public"
}
}
56 changes: 23 additions & 33 deletions examples/cactus-example-supply-chain-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,22 @@
"name": "@hyperledger/cactus-example-supply-chain-backend",
"version": "1.0.0-rc.2",
"description": "An example application showing how to use Cactus when implementing a supply chain application where two or more blockchains are sharing data with each other to achieve a certain business outcome beneficial to multiple parties (business organizations).",
"main": "dist/lib/main/typescript/index.js",
"mainMinified": "dist/cactus-example-supply-chain-backend.node.umd.min.js",
"browser": "dist/cactus-example-supply-chain-backend.web.umd.js",
"browserMinified": "dist/cactus-example-supply-chain-backend.web.umd.min.js",
"module": "dist/lib/main/typescript/index.js",
"types": "dist/lib/main/typescript/index.d.ts",
"files": [
"dist/*"
],
"scripts": {
"watch": "npm-watch",
"webpack": "npm-run-all webpack:dev",
"webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web",
"webpack:dev:web": "webpack --env=dev --target=web --config ../../webpack.config.js",
"webpack:dev:node": "webpack --env=dev --target=node --config ../../webpack.config.js"
},
"watch": {},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=10",
"npm": ">=6"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hyperledger/cactus.git"
},
"keywords": [
"Hyperledger",
"Cactus",
"Integration",
"Blockchain",
"Distributed Ledger Technology"
],
"homepage": "https://github.com/hyperledger/cactus#readme",
"bugs": {
"url": "https://github.com/hyperledger/cactus/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hyperledger/cactus.git"
},
"license": "Apache-2.0",
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
Expand All @@ -54,11 +35,20 @@
"url": "https://accenture.com"
}
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/hyperledger/cactus/issues"
"main": "dist/lib/main/typescript/index.js",
"module": "dist/lib/main/typescript/index.js",
"browser": "dist/cactus-example-supply-chain-backend.web.umd.js",
"types": "dist/lib/main/typescript/index.d.ts",
"files": [
"dist/*"
],
"scripts": {
"watch": "npm-watch",
"webpack": "npm-run-all webpack:dev",
"webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web",
"webpack:dev:node": "webpack --env=dev --target=node --config ../../webpack.config.js",
"webpack:dev:web": "webpack --env=dev --target=web --config ../../webpack.config.js"
},
"homepage": "https://github.com/hyperledger/cactus#readme",
"dependencies": {
"@hyperledger/cactus-api-client": "1.0.0-rc.2",
"@hyperledger/cactus-cmd-api-server": "1.0.0-rc.2",
Expand Down Expand Up @@ -88,4 +78,4 @@
"@types/express": "4.17.13",
"@types/uuid": "8.3.1"
}
}
}
Loading

0 comments on commit 91660dd

Please sign in to comment.