Skip to content

Commit

Permalink
battle test commands
Browse files Browse the repository at this point in the history
  • Loading branch information
alec-chernicki committed Nov 2, 2023
1 parent 2d79d6c commit edfa5a3
Show file tree
Hide file tree
Showing 292 changed files with 9,421 additions and 4,519 deletions.
21 changes: 21 additions & 0 deletions .changeset/itchy-dancers-refuse.md
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
8 changes: 8 additions & 0 deletions .changeset/swift-drinks-doubt.md
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
30 changes: 0 additions & 30 deletions .commonality/config.json

This file was deleted.

71 changes: 71 additions & 0 deletions .commonality/config.ts
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'] },
},
});
5 changes: 1 addition & 4 deletions .eslintignore
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
packages/ @package-team
apps/ @app-team
tooling/ @tooling-team
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
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:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,5 @@ lib-cov

# Build
lib
dist
.next
.turbo
8 changes: 3 additions & 5 deletions .husky/pre-commit
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
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ db/migrations
.pnp.*
node_modules
dist
.turbo
.turbo
.next
6 changes: 1 addition & 5 deletions apps/workshop/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ const config: StorybookConfig = {
return mergeConfig(config, {
define: { 'process.env': {} },
optimizeDeps: {
include: [
'@commonalityco/utils-core',
'@commonalityco/utils-package',
// '@commonalityco/utils-graph',
],
include: ['@commonalityco/utils-core', '@commonalityco/utils-package'],
},
});
},
Expand Down
17 changes: 0 additions & 17 deletions apps/workshop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
# workshop

## 1.0.17

### Patch Changes

- 0f60d9b: cache graph calculations
- Updated dependencies [51411d8]
- Updated dependencies [0f60d9b]
- @commonalityco/data-graph-worker@0.0.10
- @commonalityco/ui-design-system@0.0.13
- @commonalityco/feature-graph@0.0.14
- @commonalityco/utils-graph@0.0.12
- @commonalityco/ui-package@0.0.16
- @commonalityco/utils-core@0.0.11
- @commonalityco/ui-graph@0.0.16
- @commonalityco/ui-core@0.0.14
- @commonalityco/types@0.0.14

## 1.0.16

### Patch Changes
Expand Down
19 changes: 5 additions & 14 deletions apps/workshop/README.md
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
```
37 changes: 19 additions & 18 deletions apps/workshop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"name": "workshop",
"description": "The Storybook application for developing Commonality UI components",
"private": true,
"version": "1.0.17",
"version": "1.0.16",
"scripts": {
"dev": "storybook dev -p 6006",
"app-dev": "storybook dev -p 6006",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
"lint:fix": "eslint . --fix",
"type-check": "tsc --noEmit"
},
"dependencies": {
"@commonalityco/data-graph-worker": "workspace:*",
Expand All @@ -26,32 +27,32 @@
},
"devDependencies": {
"@commonalityco/config-tailwind": "workspace:*",
"@storybook/addon-a11y": "^7.4.0",
"@storybook/addon-docs": "^7.4.0",
"@storybook/addon-essentials": "^7.4.0",
"@storybook/addon-interactions": "^7.4.0",
"@storybook/addon-links": "^7.4.0",
"@storybook/addon-a11y": "^7.4.3",
"@storybook/addon-docs": "^7.4.3",
"@storybook/addon-essentials": "^7.4.3",
"@storybook/addon-interactions": "^7.4.3",
"@storybook/addon-links": "^7.4.3",
"@storybook/addon-styling": "^1.3.7",
"@storybook/addons": "^7.4.0",
"@storybook/blocks": "^7.4.0",
"@storybook/cli": "^7.4.0",
"@storybook/react": "^7.4.0",
"@storybook/react-vite": "^7.4.0",
"@storybook/addons": "^7.4.3",
"@storybook/blocks": "^7.4.3",
"@storybook/cli": "^7.4.3",
"@storybook/react": "^7.4.3",
"@storybook/react-vite": "^7.4.3",
"@storybook/testing-library": "0.2.0",
"@types/react": "^18.2.21",
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.0.4",
"@vitejs/plugin-react-swc": "^3.3.2",
"autoprefixer": "^10.4.15",
"autoprefixer": "^10.4.16",
"eslint-config-commonality": "workspace:*",
"postcss": "^8.4.29",
"postcss": "^8.4.30",
"postcss-loader": "^7.3.3",
"prop-types": "^15.8.1",
"storybook": "^7.4.0",
"storybook": "^7.4.3",
"storybook-dark-mode": "^3.0.1",
"tailwindcss": "^3.3.3",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"webpack": "^5.88.2"
}
}
}
Loading

0 comments on commit edfa5a3

Please sign in to comment.