Skip to content

Commit

Permalink
[Project] Add turbo to help with management of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Pewtro committed Mar 27, 2024
1 parent 41bb827 commit 11fc22d
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-jars-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@blizzard/core': patch
---

Initial release of @blizzard/core so the other libraries can depend on it.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
- name: Install Dependencies
run: pnpm install

- name: Turbo
run: pnpm turbo lint:ci

- name: Lint, Prettier, and Typecheck
run: pnpm lint:ci

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ node_modules
/.pnp
.pnp.js

# turbo
.turbo

# eslint
.eslintcache
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"npm-run-all2": "6.1.2",
"prettier": "3.2.5",
"tsup": "8.0.2",
"turbo": "1.13.0",
"typescript": "5.4.3",
"vitest": "1.4.0",
"zod": "3.22.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"overwatch"
],
"dependencies": {
"@blizzard/core": "workspace:*",
"@blizzard/core": "^0.0.0",
"axios": "1.6.8"
},
"scripts": {
Expand Down
File renamed without changes.
7 changes: 5 additions & 2 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
export type { Origins, Locales } from './endpoints.js';
export { getEndpoint } from './endpoints.js';
//Resource
export type { BlizzardNamespaces } from './resource.js';
//Endpoint
export type { Origins, Locales } from './endpoint.js';
export { getEndpoint } from './endpoint.js';
8 changes: 8 additions & 0 deletions packages/core/src/resource.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export type BlizzardNamespaces =
| 'profile'
| 'static'
| 'dynamic'
| 'static-classic'
| 'dynamic-classic'
| 'static-classic1x'
| 'dynamic-classic1x';
72 changes: 71 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"dependsOn": ["^build"]
},
"lint:ci": {
"dependsOn": ["build"]
}
}
}

0 comments on commit 11fc22d

Please sign in to comment.