Skip to content

updated config for telescope boilerplate #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions boilerplates/telescope/packages/__MODULENAME__/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
},
"scripts": {
"copy": "copyfiles -f ../../LICENSE README.md package.json dist",
"clean": "rimraf dist/**",
"clean": "rimraf dist",
"prepare": "npm run build",
"download-protos": "ts-node scripts/download-protos.ts",
"codegen": "ts-node scripts/codegen.ts",
"build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy",
"build:dev": "npm run clean; npm run codegen; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy",
"build": "npm run clean && tsc && tsc -p tsconfig.esm.json && npm run copy",
"build:dev": "npm run clean && npm run codegen && tsc --declarationMap && tsc -p tsconfig.esm.json && npm run copy",
"lint": "eslint . --fix",
"test": "jest",
"test:watch": "jest --watch"
Expand Down
15 changes: 0 additions & 15 deletions boilerplates/telescope/packages/__MODULENAME__/scripts/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,25 +76,10 @@ export const options: TelescopeInput = {
...AMINO_MAP
},
},
lcdClients: {
enabled: false
},
rpcClients: {
type: 'tendermint',
enabled: true
},

reactQuery: {
enabled: false
},

mobx: {
enabled: false
},

pinia: {
enabled: false
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const config = {
repos: [
{ owner: "cosmos", repo: "cosmos-sdk", branch: "release/v0.50.x" },
{ owner: "cosmos", repo: "ibc-go" },
{ owner: "injectivelabs", repo: "sdk-go" }
],
protoDirMapping: {
"gogo/protobuf/master": ".",
Expand All @@ -17,9 +16,7 @@ const config = {
tempRepoDir: "git-modules",
targets: [
"cosmos/**/*.proto",
"cosmwasm/**/*.proto",
"ibc/**/*.proto",
"injective/types/v1beta1/account.proto"
]
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": ".",
"rootDir": "src",
},
"include": ["src/**/*.ts"],
"exclude": ["dist", "node_modules", "**/*.spec.*", "**/*.test.*"]
Expand Down
2 changes: 2 additions & 0 deletions packages/create-interchain-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ When you need to remove/generate locks for all nested packages, simply run `yarn
yarn locks
```

Windows developers: when build packages/create-interchain-app change rootDir to '.' in tsconfig.json for local build

## Related

Checkout these related projects:
Expand Down
11 changes: 7 additions & 4 deletions packages/create-interchain-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
"dist"
],
"scripts": {
"build:clean": "rimraf dist/**",
"build:clean": "rimraf dist",
"build:copy": "copyfiles -f ../../LICENSE-MIT ../../LICENSE-Apache README.md package.json dist",
"build:dist": "yarn tsc -p tsconfig.json --outDir dist --module commonjs || true",
"build:dist": "yarn tsc -p tsconfig.json --outDir dist --module commonjs",
"build:chmod": "chmod +x ./dist/create-interchain-app.js",
"build": "npm run build:clean && npm run build:dist && npm run build:copy && npm run build:chmod",
"build:win": "npm run build:clean && npm run build:dist && npm run build:copy",
"prepare": "npm run build",
"dev": "node ./dist/create-interchain-app",
"lint": "eslint .",
Expand Down Expand Up @@ -61,7 +62,9 @@
"jest-in-case": "^1.0.2",
"prettier": "^2.1.2",
"ts-jest": "^29.0.3",
"typescript": "^5.1.6"
"typescript": "^5.1.6",
"copyfiles": "^2.4.1",
"rimraf": "^6.0.1"
},
"dependencies": {
"@cosmology/telescope": "^1.12.4",
Expand All @@ -74,4 +77,4 @@
"semver": "^7.6.0",
"shelljs": "0.8.5"
}
}
}
Loading