-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d79d6c
commit edfa5a3
Showing
292 changed files
with
9,421 additions
and
4,519 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,21 @@ | ||
--- | ||
'@commonalityco/data-graph-worker': patch | ||
'@commonalityco/ui-design-system': patch | ||
'@commonalityco/config-tailwind': patch | ||
'@commonalityco/config-tsconfig': patch | ||
'@commonalityco/data-codeowners': patch | ||
'@commonalityco/data-documents': patch | ||
'@commonalityco/data-packages': patch | ||
'@commonalityco/feature-graph': patch | ||
'@commonalityco/data-project': patch | ||
'commonality': patch | ||
'@commonalityco/utils-graph': patch | ||
'@commonalityco/data-graph': patch | ||
'@commonalityco/ui-package': patch | ||
'@commonalityco/utils-core': patch | ||
'@commonalityco/data-tags': patch | ||
'@commonalityco/ui-graph': patch | ||
'@commonalityco/studio': patch | ||
--- | ||
|
||
update dependencies |
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,8 @@ | ||
--- | ||
'@commonalityco/data-graph-worker': patch | ||
'@commonalityco/data-graph': patch | ||
'@commonalityco/studio': patch | ||
'workshop': patch | ||
--- | ||
|
||
cache graph calculations |
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,71 @@ | ||
import { defineConfig, defineConformer } from 'commonality'; | ||
import * as recommended from 'commonality-conform-recommended'; | ||
|
||
const ensureScript = defineConformer<{ name: string; value: string }>( | ||
(options) => ({ | ||
name: 'COMMONALITY/ENSURE_SCRIPT', | ||
validate: async ({ json }) => { | ||
return Boolean( | ||
await json('package.json').get(`scripts[${options?.name}]`), | ||
); | ||
}, | ||
fix: async ({ json }) => { | ||
return json('package.json').set( | ||
`scripts[${options?.name}]`, | ||
options?.value ?? '', | ||
); | ||
}, | ||
message: `Packages must include a "${options?.name}" script.`, | ||
}), | ||
); | ||
|
||
export default defineConfig({ | ||
projectId: '123', | ||
conformers: { | ||
buildable: [ | ||
ensureScript({ | ||
name: 'type-check', | ||
value: 'tsc --noEmit', | ||
}), | ||
ensureScript({ name: 'lint', value: 'eslint .' }), | ||
ensureScript({ | ||
name: 'lint:fix', | ||
value: 'eslint . --fix', | ||
}), | ||
], | ||
'*': [ | ||
recommended.ensureReadme(), | ||
recommended.ensureCodeowner(), | ||
recommended.ensurePackageName(), | ||
recommended.ensureSortedDependencies(), | ||
recommended.ensureVersion({ | ||
dependencies: ['next'], | ||
version: '13.4.19', | ||
type: ['production', 'development'], | ||
}), | ||
recommended.ensureVersion({ | ||
dependencies: ['typescript'], | ||
version: '^5.2.2', | ||
type: ['development'], | ||
}), | ||
recommended.ensureVersion({ | ||
dependencies: ['react', 'react-dom'], | ||
version: '^18.2.0', | ||
type: ['production', 'development'], | ||
}), | ||
recommended.ensureVersion({ | ||
dependencies: ['react', 'react-dom'], | ||
version: '>=18', | ||
type: ['peer'], | ||
}), | ||
], | ||
}, | ||
constraints: { | ||
feature: { allow: '*' }, | ||
deliverable: { disallow: ['deliverable'] }, | ||
config: { allow: ['config'], disallow: ['feature'] }, | ||
ui: { allow: ['ui', 'utility', 'config'], disallow: ['feature'] }, | ||
data: { allow: ['data', 'utility', 'config'], disallow: ['feature'] }, | ||
utility: { allow: ['data', 'utility', 'config'], disallow: ['feature'] }, | ||
}, | ||
}); |
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
graph-machine.typegen.d.ts | ||
graph-machine.typegen.ts | ||
tailwind.config.js | ||
vitest.workspace.ts | ||
coverage |
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
packages/ @package-team | ||
apps/ @app-team | ||
tooling/ @tooling-team |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Continuous Integration | ||
|
||
on: [pull_request] | ||
on: [pull_request, push] | ||
|
||
jobs: | ||
CI: | ||
|
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 |
---|---|---|
|
@@ -60,6 +60,5 @@ lib-cov | |
|
||
# Build | ||
lib | ||
dist | ||
.next | ||
.turbo |
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm exec lint-staged | ||
|
||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
pnpm run lint:fix |
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 |
---|---|---|
|
@@ -9,4 +9,5 @@ db/migrations | |
.pnp.* | ||
node_modules | ||
dist | ||
.turbo | ||
.turbo | ||
.next |
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 |
---|---|---|
@@ -1,16 +1,7 @@ | ||
# Workshop | ||
# workshop | ||
> The Storybook application for developing Commonality UI components | ||
## Installation | ||
|
||
This is a Storybook application that allows modular development of UI components throughout the Commonality monorepo. | ||
|
||
## Get started | ||
Run the project | ||
|
||
```bash | ||
pnpm run dev | ||
``` | ||
|
||
More code | ||
|
||
```javascript | ||
(num) => num + 1 | ||
```sh | ||
npm install workshop | ||
``` |
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
Oops, something went wrong.