Skip to content

Commit

Permalink
refactor: workspace and prepare @openlabs (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
castrogarciajs committed May 30, 2024
1 parent 5dfdd75 commit 8cd84b6
Show file tree
Hide file tree
Showing 205 changed files with 1,944 additions and 2,948 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"linked": [],
"access": "public",
"baseBranch": "main",
"ignore": ["@openui-org/playground-next", "@openui-org/storybook", "@openui-org/playground-vue", "@openui-org/web"],
"ignore": ["@openlabs/playground", "@openlabs/storybook", "@openlabs/web"],
"updateInternalDependencies": "patch"
}
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github: [OpenLab-dev, gerzon05, castrogarciajs]
github: [OpenLabs-dev, gerzon05, castrogarciajs]
open_collective: open-lab
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Action Build

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v3

- name: Set node ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: pnpm

- run: corepack enable

- name: Install
run: pnpm install

- name: Run build library
run: pnpm run build

- name: Run build web
run: pnpm run build:web
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ci with GitHub Actions
name: Action CI

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: npm publish
name: Action publish

on:
push:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pids
*.pid
*.seed
*.pid.lock
*.backup.ts

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
Expand Down
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,9 @@
"tailwindCSS.experimental.classRegex": ["cva`(.*?)`", "cva\\('(.*?)'\\)", "cva\\(\\s*('(.*?)'|\"(.*?)\")\\s*\\)"],
"editor.quickSuggestions": {
"strings": true
}
},
"cSpell.words": [
"corepack",
"openlabs"
]
}
8 changes: 7 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ To contribute to Open UI, follow these steps:
2. Clone your forked repository to your local machine:

```
git clone https://github.com/OpenLab-dev/openui.git
git clone https://github.com/OpenLabs-dev/openui.git
```

3. Create a new branch for your changes:
Expand Down Expand Up @@ -41,6 +41,12 @@ Thank you for your contribution to Open UI! We appreciate your support and look

To start developing with Open UI, follow these steps:

- Activate corepack

```
corepack enable pnpm
```

- Install the necessary dependencies by running the following command in your terminal:

```
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Button } from '@openlabs/ui'
import Playground from '@/components/playground'

export default function Home() {
Expand All @@ -19,6 +20,7 @@ export default function Home() {
- Add the component to the page.tsx file
- Remove the component from the page.tsx files
*/}
<Button>Hola</Button>
</Playground>
)
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@openui-org/playground-next",
"name": "@openlabs/playground",
"version": "0.1.0",
"private": true,
"scripts": {
Expand All @@ -9,8 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@openui-org/react": "workspace:*",
"@openui-org/theme": "workspace:*",
"@openlabs/ui": "workspace:*",
"next": "14.2.3",
"react": "^18",
"react-dom": "^18"
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { Config } from 'tailwindcss'
import { openui } from '@openui-org/theme'
import { openui } from '@openlabs/ui'

const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./node_modules/@openui-org/theme/dist/**/*.{js,ts,jsx,tsx}',
'./node_modules/@openlabs/theme/dist/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {},
Expand Down
File renamed without changes.
24 changes: 0 additions & 24 deletions apps/playground/vue/.gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions apps/playground/vue/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions apps/playground/vue/index.html

This file was deleted.

25 changes: 0 additions & 25 deletions apps/playground/vue/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions apps/playground/vue/postcss.config.js

This file was deleted.

1 change: 0 additions & 1 deletion apps/playground/vue/public/vite.svg

This file was deleted.

34 changes: 0 additions & 34 deletions apps/playground/vue/src/App.vue

This file was deleted.

1 change: 0 additions & 1 deletion apps/playground/vue/src/assets/vue.svg

This file was deleted.

40 changes: 0 additions & 40 deletions apps/playground/vue/src/components/HelloWorld.vue

This file was deleted.

5 changes: 0 additions & 5 deletions apps/playground/vue/src/main.ts

This file was deleted.

3 changes: 0 additions & 3 deletions apps/playground/vue/src/style.css

This file was deleted.

1 change: 0 additions & 1 deletion apps/playground/vue/src/vite-env.d.ts

This file was deleted.

14 changes: 0 additions & 14 deletions apps/playground/vue/tailwind.config.js

This file was deleted.

25 changes: 0 additions & 25 deletions apps/playground/vue/tsconfig.json

This file was deleted.

11 changes: 0 additions & 11 deletions apps/playground/vue/tsconfig.node.json

This file was deleted.

7 changes: 0 additions & 7 deletions apps/playground/vue/vite.config.ts

This file was deleted.

Loading

0 comments on commit 8cd84b6

Please sign in to comment.