-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
94 lines (82 loc) · 3.12 KB
/
package.json
File metadata and controls
94 lines (82 loc) · 3.12 KB
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
{
"name": "global-truth-protocol",
"version": "0.1.0",
"description": "Decentralized prediction market and truth discovery protocol",
"author": "Global Truth Protocol Team",
"license": "MIT",
"private": true,
"workspaces": [
"frontend",
"smart-contracts",
"backend"
],
"scripts": {
"start": "node scripts/full-setup.js",
"start:all": "powershell -ExecutionPolicy Bypass -File scripts/start-all.ps1",
"start:all:bash": "bash scripts/start-all.sh",
"dev": "npm-run-all --parallel dev:*",
"dev:frontend": "cd frontend && npm run dev",
"dev:backend": "cd backend && npm run dev",
"dev:contracts": "cd smart-contracts && npx hardhat node",
"dev:ai": "cd ai-core && python main.py",
"build": "npm-run-all build:*",
"build:frontend": "cd frontend && npm run build",
"build:contracts": "cd smart-contracts && npx hardhat compile",
"test": "npm-run-all test:*",
"test:contracts": "cd smart-contracts && npx hardhat test",
"test:frontend": "cd frontend && npm test",
"test:ai": "cd ai-core && pytest tests/ -v",
"deploy:local": "cd smart-contracts && npx hardhat run scripts/deploy.js --network localhost",
"deploy:sepolia": "cd smart-contracts && npx hardhat run scripts/deploy.js --network sepolia",
"deploy:mainnet": "cd smart-contracts && npx hardhat run scripts/deploy.js --network mainnet",
"verify:sepolia": "cd smart-contracts && npx hardhat verify --network sepolia",
"verify:mainnet": "cd smart-contracts && npx hardhat verify --network mainnet",
"lint": "npm-run-all lint:*",
"lint:frontend": "cd frontend && npm run lint",
"lint:contracts": "cd smart-contracts && npx solhint 'contracts/**/*.sol'",
"format": "prettier --write '**/*.{js,jsx,ts,tsx,json,md}'",
"clean": "npm-run-all clean:*",
"clean:frontend": "cd frontend && rm -rf .next out",
"clean:contracts": "cd smart-contracts && npx hardhat clean",
"setup": "npm run setup:install && npm run setup:env",
"setup:install": "npm install && cd frontend && npm install && cd ../smart-contracts && npm install && cd ../ai-core && pip install -r requirements.txt",
"setup:env": "node scripts/setup-env.js",
"db:setup": "node scripts/setup-database.js",
"db:migrate": "node scripts/migrate-database.js",
"db:seed": "node scripts/seed-database.js",
"docker:up": "docker-compose up -d",
"docker:down": "docker-compose down",
"docker:build": "docker-compose build",
"coverage": "npm-run-all coverage:*",
"coverage:contracts": "cd smart-contracts && npx hardhat coverage"
},
"devDependencies": {
"npm-run-all": "^4.1.5",
"prettier": "^3.2.4",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"concurrently": "^8.2.2"
},
"engines": {
"node": ">=18.0.0",
"npm": ">=9.0.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint --fix"
],
"*.{json,md}": [
"prettier --write"
],
"*.sol": [
"prettier --write",
"solhint"
]
}
}