Skip to content

Commit

Permalink
Add turborepo
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyabo committed Mar 6, 2024
1 parent e5993cd commit ed3fbf5
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ node_modules/
.env
.idea
.vscode
.DS_Store
.DS_Store
.turbo
*.tsbuildinfo
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@
"scripts": {
"start": "yarn build && yarn dev",
"dev": "yarn dev:example",
"dev:example": "yarn workspace @flowmap.gl/react-app start",
"build": "yarn build:data && yarn build:layers",
"build:example": "yarn workspace @flowmap.gl/react-app build",
"build:data": "yarn workspace @flowmap.gl/data build",
"dev:example": "turbo dev --filter='./examples/react-app' --filter './packages/*'",
"build": "turbo run build --filter './packages/*' --concurrency 1",
"build:docs": "cd docs && yarn && yarn build",
"build:layers": "yarn workspace @flowmap.gl/layers build",
"prettier": "prettier . --write",
"lint": "eslint . --fix",
"prepare": "./node_modules/.bin/husky install",
Expand Down Expand Up @@ -45,6 +42,7 @@
"eslint": "^8.49.0",
"gh-pages": "^5.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.2"
"lint-staged": "^13.2.2",
"turbo": "^1.12.4"
}
}
3 changes: 3 additions & 0 deletions packages/layers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"build": "rm -rf dist && tsc",
"prepare": "yarn build"
},
"dependencies": {
"@flowmap.gl/data": "*"
},
"peerDependencies": {
"@deck.gl/core": "^8.6.5",
"@deck.gl/layers": "^8.6.5",
Expand Down
15 changes: 15 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"outputs": ["packages/*/dist"]
},
"lint": {},
"dev": {
},
"test": {},
"test:watch": {
"cache": false
}
}
}
42 changes: 42 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3215,6 +3215,48 @@ tslib@^2.1.0:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"
integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==

turbo-darwin-64@1.12.4:
version "1.12.4"
resolved "https://registry.yarnpkg.com/turbo-darwin-64/-/turbo-darwin-64-1.12.4.tgz#c03061dcf3e9fb6e530b7c5be035e44627015af7"
integrity sha512-dBwFxhp9isTa9RS/fz2gDVk5wWhKQsPQMozYhjM7TT4jTrnYn0ZJMzr7V3B/M/T8QF65TbniW7w1gtgxQgX5Zg==

turbo-darwin-arm64@1.12.4:
version "1.12.4"
resolved "https://registry.yarnpkg.com/turbo-darwin-arm64/-/turbo-darwin-arm64-1.12.4.tgz#5a10367004077fb7874717f4ddc47b2f66f74cfb"
integrity sha512-1Uo5iI6xsJ1j9ObsqxYRsa3W26mEbUe6fnj4rQYV6kDaqYD54oAMJ6hM53q9rB8JvFxwdrUXGp3PwTw9A0qqkA==

turbo-linux-64@1.12.4:
version "1.12.4"
resolved "https://registry.yarnpkg.com/turbo-linux-64/-/turbo-linux-64-1.12.4.tgz#22af551b152634a162a13c4a14af28816b383fc9"
integrity sha512-ONg2aSqKP7LAQOg7ysmU5WpEQp4DGNxSlAiR7um+LKtbmC/UxogbR5+T+Uuq6zGuQ5kJyKjWJ4NhtvUswOqBsA==

turbo-linux-arm64@1.12.4:
version "1.12.4"
resolved "https://registry.yarnpkg.com/turbo-linux-arm64/-/turbo-linux-arm64-1.12.4.tgz#f13fb4da0e9fd968ccc0b807df643913ee8fab50"
integrity sha512-9FPufkwdgfIKg/9jj87Cdtftw8o36y27/S2vLN7FTR2pp9c0MQiTBOLVYadUr1FlShupddmaMbTkXEhyt9SdrA==

turbo-windows-64@1.12.4:
version "1.12.4"
resolved "https://registry.yarnpkg.com/turbo-windows-64/-/turbo-windows-64-1.12.4.tgz#9b72a5082f6db8f995f409226220982ee90661f7"
integrity sha512-2mOtxHW5Vjh/5rDVu/aFwsMzI+chs8XcEuJHlY1sYOpEymYTz+u6AXbnzRvwZFMrLKr7J7fQOGl+v96sLKbNdA==

turbo-windows-arm64@1.12.4:
version "1.12.4"
resolved "https://registry.yarnpkg.com/turbo-windows-arm64/-/turbo-windows-arm64-1.12.4.tgz#e7058885e18705c625436acebcd66fda3dd506d5"
integrity sha512-nOY5wae9qnxPOpT1fRuYO0ks6dTwpKMPV6++VkDkamFDLFHUDVM/9kmD2UTeh1yyrKnrZksbb9zmShhmfj1wog==

turbo@^1.12.4:
version "1.12.4"
resolved "https://registry.yarnpkg.com/turbo/-/turbo-1.12.4.tgz#c3ba81871eba9ec87ac86af9e6270857726da9cb"
integrity sha512-yUJ7elEUSToiGwFZogXpYKJpQ0BvaMbkEuQECIWtkBLcmWzlMOt6bActsIm29oN83mRU0WbzGt4e8H1KHWedhg==
optionalDependencies:
turbo-darwin-64 "1.12.4"
turbo-darwin-arm64 "1.12.4"
turbo-linux-64 "1.12.4"
turbo-linux-arm64 "1.12.4"
turbo-windows-64 "1.12.4"
turbo-windows-arm64 "1.12.4"

type-check@^0.4.0, type-check@~0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1"
Expand Down

0 comments on commit ed3fbf5

Please sign in to comment.