generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[workspace] Converted to Yarn Workspace 3 with Lerna #95
Merged
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
6f4fce7
Converted to Yarn Workspace 3
nebula-aac 35807fe
chore: formatted package.json
nebula-aac 108331b
patch: update module exports
nebula-aac 84472ae
prelease components 0.1.1-beta.1
nebula-aac 822d809
feat: Created Avatar story
nebula-aac e6b814f
feat: Created Accordion story
nebula-aac 15a91b0
feat: Created Badge story
nebula-aac cdb3bb8
feat: Grouped Fullscreen icons
nebula-aac b7639bd
chore: Minor patch
nebula-aac e4cd8a4
chore: Upgrade Storybook
nebula-aac 704c432
fix: Moved deps to devDeps, and allow them to be peers
nebula-aac 0c25592
feat: Updated Button to allow a label and also take in children
nebula-aac f123b5b
chore: published @layer5/[email protected]
nebula-aac 456002b
components: Defined Dialog props, and hardcoded styles for testing
nebula-aac 41affa5
feat: Added Backdrop story
nebula-aac fa7a0bf
chore: Grouped Configuration
nebula-aac 6567997
chore: Grouped Dashboard
nebula-aac 29015b4
chore: Grouped Zoom icons
nebula-aac e34b416
chore: Grouped Shapes
nebula-aac e2fc07c
chore: Grouped Credential icon
nebula-aac ab84384
chore: Updated index.ts
nebula-aac 6eb9660
chore: Update to v0.6.6
nebula-aac 76bc470
chore: update components to v0.2.0
nebula-aac c375c11
chore: update workspace yarn
nebula-aac 5d8e016
release: Updated components to include svg packages by official release
nebula-aac 8eaa3b6
chore: Updated readme
nebula-aac a7b2270
chore: Update fork
nebula-aac fe8df9d
feat: Attempt to clean up
nebula-aac 19f2267
feat: (wip) update rtk-query-codegen for reference
nebula-aac d75c0e4
feat: Update react-error-boundary and define type definitions
nebula-aac a5cb646
feat: Revised to use Lerna to help with the build process
nebula-aac 42bf34a
feat: Update lerna to build in root workspace
nebula-aac bf42b7e
chore: Added script to clean node_modules with lerna
nebula-aac 9c7f2f7
update fork
nebula-aac a9f205e
feat: Created release github action
nebula-aac 48b2189
chore: Renamed release to checks
nebula-aac 0e74c68
chore(ci): added step to do prettier check
nebula-aac eef0557
chore(ci): removed other release actions, and created single release
nebula-aac 4b6a1fe
chore(workspace): Added publish command to lerna
nebula-aac 5e9f98a
feat(ci): Update release to publish npm package by way lerna
nebula-aac 7d993b7
chore(rtk-query-codegen): Update README and fix grammatical errors. A…
nebula-aac File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,2 @@ | ||
.yarn/cache | ||
.yarn/install-state.gz |
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,7 @@ | ||
jest.config.js | ||
vite.config.ts | ||
.eslintrc.cjs | ||
node_modules | ||
dist | ||
storybook-static | ||
*.md |
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,2 @@ | ||
/.yarn/releases/** binary | ||
/.yarn/plugins/** binary |
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,54 @@ | ||
name: Build and Publish Components Package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
release-type: | ||
required: true | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
nebula-aac marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Setup Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install deps and build | ||
working-directory: packages/components | ||
run: | | ||
yarn | ||
yarn build | ||
|
||
publish-gpr: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
nebula-aac marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Setup Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: "https://registry.npmjs.org" | ||
scope: "@layer5" | ||
|
||
- name: Publish Components to npm | ||
working-directory: packages/components | ||
run: yarn publish --release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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,11 @@ | ||
enableGlobalCache: true | ||
|
||
nmHoistingLimits: workspaces | ||
|
||
nodeLinker: node-modules | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: "@yarnpkg/plugin-workspace-tools" | ||
|
||
yarnPath: .yarn/releases/yarn-3.6.3.cjs |
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,5 +1,5 @@ | ||
### Sistent Maintainer | ||
| Name | GitHub | Affiliation | | ||
| ------------------- | ---------------------- | ----------- | | ||
| Antonette Caldwell | nebula-aac | Acquia | | ||
### Sistent Maintainer | ||
|
||
| Name | GitHub | Affiliation | | ||
| ------------------ | ---------- | ----------- | | ||
| Antonette Caldwell | nebula-aac | Aquia | |
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 |
---|---|---|
|
@@ -7,8 +7,8 @@ The Sistent Design System from Layer5 provides the open source building blocks t | |
- Design System components in React.js | ||
- npm package: | ||
|
||
`@layer5/sistent-components` | ||
`@layer5/sistent-svg` | ||
* `@layer5/sistent-components` | ||
* `@layer5/sistent-svg` | ||
|
||
### Brand | ||
|
||
|
@@ -17,8 +17,10 @@ The Sistent Design System from Layer5 provides the open source building blocks t | |
|
||
### How to get started | ||
|
||
1. Install `[email protected]` | ||
2. Use `yarn` to install dependencies | ||
Use `corepack enable` to go ahead and install yarn. | ||
|
||
1. Install `[email protected]` | ||
2. Use `yarn` to install dependencies from the root of this project. | ||
|
||
<div> </div> | ||
|
||
|
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 @@ | ||
storybook-static |
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,14 @@ | ||
module.exports = { | ||
root: true, | ||
env: { browser: true, es2020: true }, | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react-hooks/recommended', 'plugin:storybook/recommended'], | ||
ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['react-refresh'], | ||
rules: { | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
storybook-static |
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,28 @@ | ||
import type { StorybookConfig } from '@storybook/react-vite'; | ||
|
||
import { dirname, join } from 'path'; | ||
|
||
/** | ||
* This function is used to resolve the absolute path of a package. | ||
* It is needed in projects that use Yarn PnP or are set up within a monorepo. | ||
*/ | ||
function getAbsolutePath(value: string): any { | ||
return dirname(require.resolve(join(value, 'package.json'))); | ||
} | ||
const config: StorybookConfig = { | ||
stories: ['../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], | ||
addons: [ | ||
getAbsolutePath('@storybook/addon-links'), | ||
getAbsolutePath('@storybook/addon-essentials'), | ||
getAbsolutePath('@storybook/addon-onboarding'), | ||
getAbsolutePath('@storybook/addon-interactions') | ||
], | ||
framework: { | ||
name: getAbsolutePath('@storybook/react-vite'), | ||
options: {} | ||
}, | ||
docs: { | ||
autodocs: 'tag' | ||
} | ||
}; | ||
export default config; |
6 changes: 3 additions & 3 deletions
6
packages/design-system/.storybook/preview.js → apps/design-system/.storybook/preview.ts
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"name": "design-system", | ||
"version": "0.0.0", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"build-storybook": "storybook build", | ||
"dev": "vite", | ||
"init-msw": "msw init public/", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint --fix", | ||
"preview": "vite preview", | ||
"storybook": "BROWSER=none storybook dev -p 6006" | ||
}, | ||
"dependencies": { | ||
"@emotion/react": "^11.11.1", | ||
"@emotion/styled": "^11.11.0", | ||
"@layer5/sistent-components": "workspace:^", | ||
"@mui/material": "^5.14.8", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@storybook/addon-essentials": "^7.4.1", | ||
"@storybook/addon-interactions": "^7.4.1", | ||
"@storybook/addon-links": "^7.4.1", | ||
"@storybook/addon-onboarding": "^1.0.8", | ||
"@storybook/addon-styling": "^1.3.7", | ||
"@storybook/blocks": "^7.4.1", | ||
"@storybook/react": "^7.4.1", | ||
"@storybook/react-vite": "^7.4.1", | ||
"@storybook/testing-library": "^0.2.0", | ||
"@types/react": "^18.2.15", | ||
"@types/react-dom": "^18.2.7", | ||
"@typescript-eslint/eslint-plugin": "^6.0.0", | ||
"@typescript-eslint/parser": "^6.0.0", | ||
"@vitejs/plugin-react-swc": "^3.3.2", | ||
"eslint": "^8.45.0", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-react-refresh": "^0.4.3", | ||
"eslint-plugin-storybook": "^0.6.13", | ||
"msw": "^1.3.0", | ||
"msw-storybook-addon": "^1.8.0", | ||
"storybook": "^7.4.1", | ||
"typescript": "^5.0.2", | ||
"vite": "^4.4.5" | ||
} | ||
} |
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 @@ | ||
function App() { | ||
return <div></div>; | ||
} | ||
|
||
export default App; |
4 changes: 2 additions & 2 deletions
4
packages/design-system/src/main.jsx → apps/design-system/src/main.tsx
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While dispatching, if one of the steps here isn't dynamically identifying the latest release tag, we might want to require the release tag as input here.
You might like to grab the release tag lookup "function" from another one of the makefiles / workflows.