Skip to content

Commit

Permalink
chore(deps): Reorganized depencencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrique Barcelos committed Oct 8, 2019
1 parent b991ac1 commit 7ebdb88
Show file tree
Hide file tree
Showing 12 changed files with 172 additions and 1,050 deletions.
9 changes: 7 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
root = true

[*.{js,jsx,ts,tsx,json,vue}]
[*]
charset = utf-8
end_of_line = lf

[*.{js,jsx,ts,tsx,json,vue}]
indent_style = space
indent_size = 2
end_of_line = lf

[*.sol]
indent_size = 4
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Indexer

Indexer front-end is an interface that allows the user to access needed services to push a content in the blockchain and attach it in the Janus system. It also charges gas and tributes for this services, working as a facilitator.
Indexer front-end is an interface that allows the user to access needed services to push a content in the blockchain and attach it in the Janus system. It also charges gas and tributes for this services, working as a facilitator.
The indexer front end helps to publish and index the websites. Publish in the IPFS and return the valid hash or validate the ipfs hash entered and index the informations on the Janus platform.

### Search
Expand All @@ -17,9 +17,9 @@ Search front-end is an interface that allows the user to search for websites and

**Solidity:** Solidity is an object-oriented programming language for writing smart contracts. It is used for implementing smart contracts on various blockchain platforms, most notably, Ethereum.

**IPFS:** The InterPlanetary File System is a protocol and peer-to-peer network for storing and sharing data in a distributed file system.
**IPFS:** The InterPlanetary File System is a protocol and peer-to-peer network for storing and sharing data in a distributed file system.

**Ethereum:** Is an open source, public, blockchain-based distributed computing platform and operating system featuring smart contract functionality.
**Ethereum:** Is an open source, public, blockchain-based distributed computing platform and operating system featuring smart contract functionality.

**TypeScript:** Is an open-source programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript, and adds optional static typing to the language.

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"eslint-plugin-truffle": "^0.4.0",
"eslint-plugin-vue": "^5.2.3",
"file-loader": "^4.2.0",
"html-loader": "^0.5.5",
Expand Down
10 changes: 9 additions & 1 deletion packages/_example-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,13 @@
"main": "dist/index.js",
"license": "MIT",
"private": true,
"devDependencies": {}
"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/node": "^7.6.1",
"@babel/preset-env": "^7.6.0",
"@babel/preset-typescript": "^7.6.0",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.0.6"
}
}
13 changes: 12 additions & 1 deletion packages/_example-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,19 @@
"dependencies": {
"vue": "^2.5.11"
},
"browserslist": ["> 1%", "last 2 versions", "not ie <= 8"],
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/node": "^7.6.1",
"@babel/preset-env": "^7.6.0",
"@babel/preset-typescript": "^7.6.0",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.0.6",
"cross-env": "^6.0.0",
"eslint-import-resolver-webpack": "^0.11.1"
}
Expand Down
30 changes: 12 additions & 18 deletions packages/indexer-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
},
"author": "",
"license": "ISC",
"files": [
"dist",
"src"
],
"dependencies": {
"@4cadia/janus-indexer-smartcontract": "~0.2.0",
"@types/web3": "^1.0.18",
Expand All @@ -41,12 +45,18 @@
"web3": "^1.0.0-beta.54"
},
"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/node": "^7.6.1",
"@babel/preset-env": "^7.6.0",
"@babel/preset-typescript": "^7.6.0",
"@types/jest": "^24.0.18",
"@types/jszip": "^3.1.6",
"@types/node": "^11.13.20",
"@typescript-eslint/eslint-plugin": "^2.3.0",
"@typescript-eslint/parser": "^2.3.0",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.0.6",
"copyfiles": "^2.1.0",
"dtslint": "^0.9.6",
"eslint": "^6.4.0",
Expand All @@ -58,8 +68,9 @@
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"husky": "^3.0.8",
"jest": "^24.8.0",
"mocha": "^6.1.4",
"lint-staged": "^9.4.2",
"node-metamask": "^1.1.2",
"nodemon": "^1.19.0",
"prettier": "^1.18.2",
Expand All @@ -69,22 +80,5 @@
"ts-node": "^8.1.0",
"tsutils": "^3.10.0",
"typescript": "^3.5.3"
},
"files": [
"dist"
],
"jest": {
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}
}
9 changes: 0 additions & 9 deletions packages/indexer-dapp/.editorconfig

This file was deleted.

11 changes: 9 additions & 2 deletions packages/indexer-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@
"web3": "^1.2.0"
},
"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/node": "^7.6.1",
"@babel/preset-env": "^7.6.0",
"@babel/preset-typescript": "^7.6.0",
"autoprefixer": "^7.1.2",
"babel-core": "^6.22.1",
"babel-eslint": "^8.2.1",
"babel-eslint": "^10.0.3",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-jest": "^21.0.2",
"babel-loader": "^7.1.1",
"babel-loader": "^8.0.6",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
Expand All @@ -66,8 +71,10 @@
"file-loader": "^1.1.4",
"friendly-errors-webpack-plugin": "^1.6.1",
"html-webpack-plugin": "^2.30.1",
"husky": "^3.0.8",
"jest": "^22.0.4",
"jest-serializer-vue": "^0.3.0",
"lint-staged": "^9.4.2",
"nightwatch": "^0.9.12",
"node-notifier": "^5.1.2",
"optimize-css-assets-webpack-plugin": "^3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-smartcontract/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"es6": true,
"commonjs": true,
"mocha": true,
"truffle/truffle": true
"truffle/globals": true
},
"plugins": ["truffle"]
}
24 changes: 15 additions & 9 deletions packages/indexer-smartcontract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,22 @@
"main": "contracts.json",
"files": ["contracts.json"],
"scripts": {
"build": "truffle build",
"postbuild": "node scripts/extract-contract-info.js",
"deploy": "truffle migrate",
"postdeploy": "node scripts/extract-contract-info.js",
"ganache-dev": "ganache-cli -dq -p 9545 -i 5577",
"lint:js": "eslint \"**/*.js\"",
"lint:js": "eslint --ext js .",
"lint:sol": "solium --dir contracts",
"lint": "concurrently \"yarn:lint:js\" \"yarn:lint:sol\"",
"lint-fix:js": "eslint --fix \"**/*.js\"",
"lint-fix:js": "yarn run lint:js --fix",
"lint-fix:sol": "solium --dir --fix contracts",
"lint-fix": "concurrently \"yarn:lint-fix:js\" \"yarn:lint-fix:sol\"",
"precommit": "lint-staged",
"pretest": "yarn run ganache-dev &",
"test": "truffle test",
"posttest": "kill `lsof -ti :9545`"
"_test": "truffle test",
"pretest": "yarn run ganache-dev 1>&2 &",
"test": "yarn run _test",
"posttest": "kill `lsof -ti :9545` 1>&2"
},
"author": "4cadia-foundation",
"license": "ISC",
Expand All @@ -27,16 +30,19 @@
"*.sol": ["solium --fix --file", "git add"]
},
"dependencies": {
"@babel/cli": "^7.6.0",
"assertion-error": "^1.1.0"
},
"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/node": "^7.6.1",
"@babel/preset-env": "^7.6.0",
"@babel/preset-typescript": "^7.6.0",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.0.6",
"concurrently": "^4.1.2",
"cuid": "^2.1.6",
"eslint": "^6.5.1",
"eslint-plugin-truffle": "^0.2.1",
"ganache-cli": "^6.7.0",
"prettier": "^1.18.2",
"solc": "^0.5.11",
"solium": "^1.2.4",
"solium-plugin-security": "^0.1.1",
Expand Down
5 changes: 5 additions & 0 deletions packages/indexer-smartcontract/truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ module.exports = {
},
},
networks: {
local: {
host: '127.0.0.1',
port: 8545,
network_id: '*',
},
development: {
host: '127.0.0.1',
port: 9545,
Expand Down
Loading

0 comments on commit 7ebdb88

Please sign in to comment.