Skip to content
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

refactor: cleanup configs and package.json files #100

Merged
merged 3 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.github
12 changes: 6 additions & 6 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"fabiospampinato.vscode-terminals",
"fabiospampinato.vscode-commands"
]
}
"recommendations": [
"dbaeumer.vscode-eslint",
"fabiospampinato.vscode-terminals",
"fabiospampinato.vscode-commands"
]
}
100 changes: 50 additions & 50 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
{
// icons -> https://primer.style/octicons/
"commands.commands": [
{
"command": "terminals.runTerminalByName",
"arguments": [
"build"
],
"color": "#4ebb00",
"text": "$(rocket) Build",
"tooltip": "Packages Build"
},
{
"command": "terminals.runTerminalByName",
"arguments": [
"test"
],
"color": "#ff0000",
"text": "$(bug) Test",
"tooltip": "Vitest Test"
},
{
"command": "terminals.runTerminalByName",
"arguments": [
"test:watch"
],
"color": "#ff0000",
"text": "$(bug) Test:W",
"tooltip": "Vitest Test Watch Mode"
},
{
"command": "terminals.runTerminalByName",
"arguments": [
"lint"
],
"color": "#00ff6a",
"text": "$(check) Lint",
"tooltip": "Check ESLint"
},
{
"command": "terminals.runTerminalByName",
"arguments": [
"lint:fix"
],
"color": "#00ff6a",
"text": "$(check) Lint:fix",
"tooltip": "Fix Auto ESLint"
},
],
"references.preferredLocation": "peek",
}
// icons -> https://primer.style/octicons/
"commands.commands": [
{
"command": "terminals.runTerminalByName",
"arguments": [
"build"
],
"color": "#4ebb00",
"text": "$(rocket) Build",
"tooltip": "Packages Build"
},
{
"command": "terminals.runTerminalByName",
"arguments": [
"test"
],
"color": "#ff0000",
"text": "$(bug) Test",
"tooltip": "Vitest Test"
},
{
"command": "terminals.runTerminalByName",
"arguments": [
"test:watch"
],
"color": "#ff0000",
"text": "$(bug) Test:W",
"tooltip": "Vitest Test Watch Mode"
},
{
"command": "terminals.runTerminalByName",
"arguments": [
"lint"
],
"color": "#00ff6a",
"text": "$(check) Lint",
"tooltip": "Check ESLint"
},
{
"command": "terminals.runTerminalByName",
"arguments": [
"lint:fix"
],
"color": "#00ff6a",
"text": "$(check) Lint:fix",
"tooltip": "Fix Auto ESLint"
}
],
"references.preferredLocation": "peek"
}
78 changes: 39 additions & 39 deletions .vscode/terminals.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
{
"autorun": false,
"terminals": [
{
"name": "build",
"description": "Build all packages",
"open": true,
"cwd": "./",
"command": "pnpm build"
},
{
"name": "test",
"description": "Running Test",
"open": true,
"cwd": "./",
"command": "pnpm test"
},
{
"name": "test:watch",
"description": "Running Test Watch",
"open": true,
"cwd": "./",
"command": "pnpm test:watch"
},
{
"name": "lint",
"description": "Eslint check",
"open": true,
"cwd": "./",
"command": "pnpm lint"
},
{
"name": "lint:fix",
"description": "Eslint fix",
"open": true,
"cwd": "./",
"command": "pnpm lint:fix"
}
]
}
"autorun": false,
"terminals": [
{
"name": "build",
"description": "Build all packages",
"open": true,
"cwd": "./",
"command": "pnpm build"
},
{
"name": "test",
"description": "Running Test",
"open": true,
"cwd": "./",
"command": "pnpm test"
},
{
"name": "test:watch",
"description": "Running Test Watch",
"open": true,
"cwd": "./",
"command": "pnpm test:watch"
},
{
"name": "lint",
"description": "Eslint check",
"open": true,
"cwd": "./",
"command": "pnpm lint"
},
{
"name": "lint:fix",
"description": "Eslint fix",
"open": true,
"cwd": "./",
"command": "pnpm lint:fix"
}
]
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "oku-ui",
"private": true,
"type": "module",
"private": true,
"packageManager": "[email protected]",
"scripts": {
"p:build": "unbuild",
"build": "turbo run build --filter='./packages/**'",
Expand All @@ -11,11 +12,11 @@
"dev:all": "turbo run dev --filter='./packages/**' --concurrency $(($(ls -1 packages/components packages/core | wc -l)+3))",
"dev:core": "turbo run dev --filter='./packages/core/**'",
"dev:components": "turbo run dev --filter='./packages/components/**'",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"play:vue": "pnpm clean:dts && turbo run dev --filter='./playground/vue3/**'",
"play:nuxt": "pnpm clean:dts && turbo run dev --filter='./playground/nuxt3/**'",
"play": "pnpm clean:dts && turbo run dev --filter='./playground/**'",
"lint": "turbo run lint",
"lint:fix": "turbo run lint:fix",
"test": "vitest",
"test:watch": "vitest --watch",
"coverage": "vitest run --coverage",
Expand Down Expand Up @@ -64,14 +65,13 @@
"vitest": "^0.30.1",
"vue": "^3.3.0-beta.5"
},
"packageManager": "[email protected]",
"overrides": {
"vue": "3.3.0-beta.5"
},
"pnpm": {
"overrides": {
"vue": "3.3.0-beta.5",
"vite": "^4.3.1"
}
},
"overrides": {
"vue": "3.3.0-beta.5"
}
}
}
3 changes: 1 addition & 2 deletions packages/components/aspect-ratio/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ export default defineBuildConfig({
{
builder: 'mkdist',
input: './src/',
pattern: ['*.ts', '!*.test.ts'],
pattern: ['**/!(*.test|*.stories).ts'],
},
],
declaration: true,
clean: true,
})
11 changes: 4 additions & 7 deletions packages/components/aspect-ratio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"homepage": "https://oku-ui.com/primitives",
"repository": {
"type": "git",
"url": "git+https://github.com/oku-ui/primitives.git"
"url": "git+https://github.com/oku-ui/primitives.git",
"directory": "packages/components/aspect-ratio"
},
"bugs": {
"url": "https://github.com/oku-ui/primitives/issues"
Expand All @@ -22,15 +23,11 @@
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"README.md"
"dist"
],
"scripts": {
"clean": "rm -rf dist",
"build": "unbuild",
"dev": "unbuild --stub",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
"dev": "unbuild --stub"
},
"peerDependencies": {
"vue": "^3.3.0-beta.5"
Expand Down
3 changes: 1 addition & 2 deletions packages/components/avatar/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ export default defineBuildConfig({
{
builder: 'mkdist',
input: './src/',
pattern: ['*.ts', '!*.test.ts'],
pattern: ['**/!(*.test|*.stories).ts'],
},
],
declaration: true,
clean: true,
})
11 changes: 4 additions & 7 deletions packages/components/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"homepage": "https://oku-ui.com/primitives",
"repository": {
"type": "git",
"url": "git+https://github.com/oku-ui/primitives.git"
"url": "git+https://github.com/oku-ui/primitives.git",
"directory": "packages/components/avatar"
},
"bugs": {
"url": "https://github.com/oku-ui/primitives/issues"
Expand All @@ -22,15 +23,11 @@
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"README.md"
"dist"
],
"scripts": {
"clean": "rm -rf dist",
"build": "unbuild",
"dev": "unbuild --stub",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
"dev": "unbuild --stub"
},
"peerDependencies": {
"vue": "^3.3.0-beta.5"
Expand Down
3 changes: 1 addition & 2 deletions packages/components/checkbox/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ export default defineBuildConfig({
{
builder: 'mkdist',
input: './src/',
pattern: ['*.ts', '!*.test.ts'],
pattern: ['**/!(*.test|*.stories).ts'],
},
],
declaration: true,
clean: true,
})
11 changes: 4 additions & 7 deletions packages/components/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"homepage": "https://oku-ui.com/primitives",
"repository": {
"type": "git",
"url": "git+https://github.com/oku-ui/primitives.git"
"url": "git+https://github.com/oku-ui/primitives.git",
"directory": "packages/components/checkbox"
},
"bugs": {
"url": "https://github.com/oku-ui/primitives/issues"
Expand All @@ -22,15 +23,11 @@
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"README.md"
"dist"
],
"scripts": {
"clean": "rm -rf dist",
"build": "unbuild",
"dev": "unbuild --stub",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
"dev": "unbuild --stub"
},
"peerDependencies": {
"vue": "^3.3.0-beta.5"
Expand Down
3 changes: 1 addition & 2 deletions packages/components/label/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ export default defineBuildConfig({
{
builder: 'mkdist',
input: './src/',
pattern: ['*.ts', '!*.test.ts'],
pattern: ['**/!(*.test|*.stories).ts'],
},
],
declaration: true,
clean: true,
})
Loading