Skip to content

Commit 94e93d2

Browse files
authored
Merge pull request #39 from hyperweb-io/update-telescope-boilerplate-config
updated config for telescope boilerplate
2 parents 7a3c978 + 21e4dba commit 94e93d2

File tree

6 files changed

+13
-26
lines changed

6 files changed

+13
-26
lines changed

boilerplates/telescope/packages/__MODULENAME__/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
},
2222
"scripts": {
2323
"copy": "copyfiles -f ../../LICENSE README.md package.json dist",
24-
"clean": "rimraf dist/**",
24+
"clean": "rimraf dist",
2525
"prepare": "npm run build",
2626
"download-protos": "ts-node scripts/download-protos.ts",
2727
"codegen": "ts-node scripts/codegen.ts",
28-
"build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy",
29-
"build:dev": "npm run clean; npm run codegen; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy",
28+
"build": "npm run clean && tsc && tsc -p tsconfig.esm.json && npm run copy",
29+
"build:dev": "npm run clean && npm run codegen && tsc --declarationMap && tsc -p tsconfig.esm.json && npm run copy",
3030
"lint": "eslint . --fix",
3131
"test": "jest",
3232
"test:watch": "jest --watch"

boilerplates/telescope/packages/__MODULENAME__/scripts/codegen.ts

-15
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,10 @@ export const options: TelescopeInput = {
7676
...AMINO_MAP
7777
},
7878
},
79-
lcdClients: {
80-
enabled: false
81-
},
8279
rpcClients: {
8380
type: 'tendermint',
8481
enabled: true
8582
},
86-
87-
reactQuery: {
88-
enabled: false
89-
},
90-
91-
mobx: {
92-
enabled: false
93-
},
94-
95-
pinia: {
96-
enabled: false
97-
}
9883
}
9984
};
10085

boilerplates/telescope/packages/__MODULENAME__/scripts/download-protos.ts

-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const config = {
55
repos: [
66
{ owner: "cosmos", repo: "cosmos-sdk", branch: "release/v0.50.x" },
77
{ owner: "cosmos", repo: "ibc-go" },
8-
{ owner: "injectivelabs", repo: "sdk-go" }
98
],
109
protoDirMapping: {
1110
"gogo/protobuf/master": ".",
@@ -17,9 +16,7 @@ const config = {
1716
tempRepoDir: "git-modules",
1817
targets: [
1918
"cosmos/**/*.proto",
20-
"cosmwasm/**/*.proto",
2119
"ibc/**/*.proto",
22-
"injective/types/v1beta1/account.proto"
2320
]
2421
};
2522

boilerplates/telescope/packages/__MODULENAME__/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
5-
"rootDir": ".",
5+
"rootDir": "src",
66
},
77
"include": ["src/**/*.ts"],
88
"exclude": ["dist", "node_modules", "**/*.spec.*", "**/*.test.*"]

packages/create-interchain-app/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ When you need to remove/generate locks for all nested packages, simply run `yarn
249249
yarn locks
250250
```
251251

252+
Windows developers: when build packages/create-interchain-app change rootDir to '.' in tsconfig.json for local build
253+
252254
## Related
253255

254256
Checkout these related projects:

packages/create-interchain-app/package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
"dist"
2020
],
2121
"scripts": {
22-
"build:clean": "rimraf dist/**",
22+
"build:clean": "rimraf dist",
2323
"build:copy": "copyfiles -f ../../LICENSE-MIT ../../LICENSE-Apache README.md package.json dist",
24-
"build:dist": "yarn tsc -p tsconfig.json --outDir dist --module commonjs || true",
24+
"build:dist": "yarn tsc -p tsconfig.json --outDir dist --module commonjs",
2525
"build:chmod": "chmod +x ./dist/create-interchain-app.js",
2626
"build": "npm run build:clean && npm run build:dist && npm run build:copy && npm run build:chmod",
27+
"build:win": "npm run build:clean && npm run build:dist && npm run build:copy",
2728
"prepare": "npm run build",
2829
"dev": "node ./dist/create-interchain-app",
2930
"lint": "eslint .",
@@ -61,7 +62,9 @@
6162
"jest-in-case": "^1.0.2",
6263
"prettier": "^2.1.2",
6364
"ts-jest": "^29.0.3",
64-
"typescript": "^5.1.6"
65+
"typescript": "^5.1.6",
66+
"copyfiles": "^2.4.1",
67+
"rimraf": "^6.0.1"
6568
},
6669
"dependencies": {
6770
"@cosmology/telescope": "^1.12.4",
@@ -74,4 +77,4 @@
7477
"semver": "^7.6.0",
7578
"shelljs": "0.8.5"
7679
}
77-
}
80+
}

0 commit comments

Comments
 (0)