-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turbo configuration for Aggregator pkg (#1099)
* Turbo configuration for Aggregator pck * .gitignore * Changeset version files * Yarn cache removed * Setup node with cache * Lerna config removed * .turbo cached * Cache dir at build * Release workflow with cache * Bug fix * Clean command and bug fix with turbo outputs * Tests with cache-dir
- Loading branch information
Showing
44 changed files
with
820 additions
and
3,131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@xchainjs/xchain-aggregator': patch | ||
--- | ||
|
||
Build production mode without sourcemaps and with minification. Build tool updated from Rollup to Tsup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ results | |
*.tsbuildinfo | ||
.DS_Store | ||
.idea | ||
.turbo | ||
|
||
*.txt | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,10 @@ | |
"url": "[email protected]:xchainjs/xchainjs-lib.git" | ||
}, | ||
"scripts": { | ||
"build": "yarn clean && rollup -c", | ||
"clean": "rimraf -rf ./lib", | ||
"clean": "rm -rf .turbo && rm -rf lib", | ||
"build": "yarn build:pro", | ||
"build:dev": "tsup --env.ENV dev", | ||
"build:pro": "tsup --env.ENV pro", | ||
"prepublishOnly": "yarn run build", | ||
"e2e": "jest --config jest.config.e2e.js", | ||
"test": "jest" | ||
|
@@ -28,24 +30,23 @@ | |
"access": "public" | ||
}, | ||
"dependencies": { | ||
"@xchainjs/xchain-client": "0.16.2", | ||
"@xchainjs/xchain-mayachain": "1.0.1", | ||
"@xchainjs/xchain-mayachain-query": "0.1.9", | ||
"@xchainjs/xchain-thorchain": "1.0.4", | ||
"@xchainjs/xchain-thorchain-query": "0.7.7", | ||
"@xchainjs/xchain-util": "0.13.3" | ||
"@xchainjs/xchain-client": "*", | ||
"@xchainjs/xchain-mayachain": "*", | ||
"@xchainjs/xchain-mayachain-amm": "*", | ||
"@xchainjs/xchain-mayachain-query": "*", | ||
"@xchainjs/xchain-thorchain": "*", | ||
"@xchainjs/xchain-thorchain-amm": "*", | ||
"@xchainjs/xchain-thorchain-query": "*", | ||
"@xchainjs/xchain-util": "*", | ||
"@xchainjs/xchain-wallet": "*" | ||
}, | ||
"devDependencies": { | ||
"@xchainjs/xchain-avax": "0.4.6", | ||
"@xchainjs/xchain-bitcoin": "0.23.13", | ||
"@xchainjs/xchain-binance": "5.7.11", | ||
"@xchainjs/xchain-ethereum": "0.31.6", | ||
"@xchainjs/xchain-kujira": "0.1.12", | ||
"@xchainjs/xchain-avax": "*", | ||
"@xchainjs/xchain-bitcoin": "*", | ||
"@xchainjs/xchain-binance": "*", | ||
"@xchainjs/xchain-ethereum": "*", | ||
"@xchainjs/xchain-kujira": "*", | ||
"axios": "1.3.6", | ||
"axios-mock-adapter": "1.20.0" | ||
}, | ||
"peerDependencies": { | ||
"@xchainjs/xchain-mayachain-amm": "1.0.14", | ||
"@xchainjs/xchain-thorchain-amm": "1.0.5", | ||
"@xchainjs/xchain-wallet": "0.1.8" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { defineConfig } from 'tsup' | ||
|
||
export default defineConfig((options) => { | ||
return { | ||
entry: ['src/index.ts'], | ||
outDir: 'lib', | ||
format: ['cjs', 'esm'], | ||
bundle: true, | ||
skipNodeModulesBundle: true, | ||
outExtension: ({ format }) => { | ||
if (format === 'cjs') return { js: '.js' } | ||
if (format === 'esm') return { js: '.esm.js' } | ||
return { js: `.${format}.js` } | ||
}, | ||
minify: options.env?.ENV === 'pro', | ||
dts: true, | ||
sourcemap: options.env?.ENV === 'dev', | ||
clean: true, | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
"url": "[email protected]:xchainjs/xchainjs-lib.git" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf --glob ./lib/**", | ||
"clean": "rm -rf .turbo && rm -rf lib", | ||
"build": "yarn clean && rollup -c", | ||
"test": "jest --passWithNoTests", | ||
"e2e": "jest --config jest.config.e2e.js", | ||
|
@@ -52,4 +52,4 @@ | |
"axios": "^1.3.6", | ||
"ethers": "^5.7.2" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
"url": "[email protected]:xchainjs/xchainjs-lib.git" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf --glob ./lib/**", | ||
"clean": "rm -rf .turbo && rm -rf lib", | ||
"build": "yarn clean && rollup -c", | ||
"test": "jest --passWithNoTests", | ||
"e2e": "jest --config jest.config.e2e.js", | ||
|
@@ -52,4 +52,4 @@ | |
"axios": "^1.3.6", | ||
"ethers": "^5.7.2" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
"url": "[email protected]:xchainjs/xchainjs-lib.git" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf --glob ./lib/**", | ||
"clean": "rm -rf .turbo && rm -rf lib", | ||
"build": "yarn clean && rollup -c", | ||
"test": "jest", | ||
"compile": "tsc -p tsconfig.build.json", | ||
|
@@ -49,4 +49,4 @@ | |
"@xchainjs/xchain-crypto": "^0.3.1", | ||
"@xchainjs/xchain-util": "^0.13.3" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
"url": "[email protected]:xchainjs/xchainjs-lib.git" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf --glob ./lib/**", | ||
"clean": "rm -rf .turbo && rm -rf lib", | ||
"build": "yarn clean && rollup -c", | ||
"test": "jest", | ||
"e2e": "jest --config jest.config.e2e.js", | ||
|
@@ -63,4 +63,4 @@ | |
"dependencies": { | ||
"@ledgerhq/hw-app-btc": "^10.1.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
"url": "[email protected]:xchainjs/xchainjs-lib.git" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf --glob ./lib/**", | ||
"clean": "rm -rf .turbo && rm -rf lib", | ||
"build": "yarn clean && rollup -c", | ||
"test": "jest", | ||
"e2e": "jest --config jest.config.e2e.js", | ||
|
@@ -64,4 +64,4 @@ | |
"publishConfig": { | ||
"access": "public" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
"url": "[email protected]:xchainjs/xchainjs-lib.git" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf --glob ./lib/**", | ||
"clean": "rm -rf .turbo && rm -rf lib", | ||
"build": "yarn clean && rollup -c", | ||
"test": "jest --passWithNoTests", | ||
"e2e": "jest --config jest.config.e2e.js", | ||
|
@@ -52,4 +52,4 @@ | |
"axios": "^1.3.6", | ||
"ethers": "^5.7.2" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
"url": "[email protected]:xchainjs/xchainjs-lib.git" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf --glob ./lib/**", | ||
"clean": "rm -rf .turbo && rm -rf lib", | ||
"build": "yarn clean && rollup -c", | ||
"test": "jest --passWithNoTests", | ||
"e2e": "jest --config jest.config.e2e.js", | ||
|
@@ -55,4 +55,4 @@ | |
"bip32": "^2.0.6", | ||
"secp256k1": "^5.0.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
"url": "[email protected]:xchainjs/xchainjs-lib.git" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf --glob ./lib/**", | ||
"clean": "rm -rf .turbo && rm -rf lib", | ||
"build": "yarn clean && rollup -c", | ||
"test": "jest", | ||
"e2e": "jest --config jest.config.e2e.js", | ||
|
@@ -47,4 +47,4 @@ | |
"publishConfig": { | ||
"access": "public" | ||
} | ||
} | ||
} |
Oops, something went wrong.