Skip to content

Commit

Permalink
we are truly getting there
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Sep 21, 2024
1 parent fdd0321 commit 7363bdf
Show file tree
Hide file tree
Showing 169 changed files with 3,744 additions and 2,947 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": ["docs"]
}
88 changes: 78 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,80 @@
.DS_Store
node_modules
/build
/dist
/.svelte-kit
/package
.DS_Store
.AppleDouble
.LSOverride

node_modules/
node_modules/**/*

dist

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/


# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
.vercel
.env.development.local
.env.test.local
.env.production.local
.env.local
.contentlayer
2 changes: 0 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
engine-strict=true
resolution-mode=highest
package-manager-strict=false
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.15.1
17 changes: 12 additions & 5 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
**/build
**/.svelte-kit
.env
.env.*
!.env.example
Expand All @@ -11,6 +10,14 @@ node_modules
pnpm-lock.yaml
package-lock.json
yarn.lock
/dist
**/.changeset/
.prettierrc
package.json
.vercel
.changeset
.contentlayer
**/dist

CHANGELOG.md

vite.config.js.timestamp-*
vite.config.ts.timestamp-*
18 changes: 14 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"tabWidth": 4,
"singleQuote": false,
"trailingComma": "es5",
"semi": true,
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
],
"tailwindFunctions": ["clsx", "cn", "tv"]
}
59 changes: 27 additions & 32 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,28 @@
import config from '@huntabyte/eslint-config';
import config, { DEFAULT_IGNORES } from "@huntabyte/eslint-config";

export default config({
ignores: [
'.DS_Store',
'**/.DS_Store/**',
'node_modules',
'**/node_modules/**',
'build',
'build/**',
'.svelte-kit',
'.svelte-kit/**',
'package',
'package/**',
'.env',
'**/.env/**',
'.env.*',
'**/.env.*/**',
'!.env.example',
'!**/.env.example/**',
'pnpm-lock.yaml',
'**/pnpm-lock.yaml/**',
'package-lock.json',
'**/package-lock.json/**',
'yarn.lock',
'**/yarn.lock/**',
'dist',
'dist/**',
'.changeset/',
'**/.changeset/**/'
],
svelte: true
});
const ignores = ["**/extended-types"];

export default config({ svelte: true, ignores: [...DEFAULT_IGNORES, ...ignores] })
.override("antfu/typescript/rules", {
rules: {
"ts/consistent-type-definitions": "off",
"unused-imports/no-unused-imports": "off",
"unused-imports/no-unused-vars": "off",
"ts/no-unused-expressions": "off",
"no-unused-expressions": "off",
"ts/no-empty-object-type": "off",
},
})
.override("antfu/javascript/rules", {
rules: {
"no-unused-expressions": "off",
"unused-imports/no-unused-imports": "off",
},
})
.override("huntabyte/svelte/rules", {
rules: {
"svelte/no-at-html-tags": "off",
"unused-imports/no-unused-imports": "off",
"unused-imports/no-unused-vars": "off",
},
});
84 changes: 26 additions & 58 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,72 +1,40 @@
{
"name": "cmdk-sv",
"version": "0.0.18",
"name": "root",
"description": "Monorepo for cmdk-sv",
"version": "0.0.0",
"scripts": {
"dev": "vite dev",
"build": "vite build && npm run package",
"preview": "vite preview",
"package": "svelte-kit sync && svelte-package && publint",
"prepublishOnly": "npm run package",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"build": "pnpm -r build",
"build:packages": "pnpm -F \"./packages/**\" --parallel build",
"check": "pnpm build:packages && pnpm -r check",
"ci:publish": "pnpm build:packages && changeset publish",
"dev": "pnpm -F \"./packages/**\" svelte-kit sync && pnpm -r --parallel --reporter append-only --color dev",
"format": "prettier --write .",
"test": "vitest",
"release": "changeset publish",
"changeset": "changeset"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js"
}
},
"files": [
"dist",
"!dist/**/*.test.*",
"!dist/**/*.spec.*"
],
"peerDependencies": {
"svelte": "^4.0.0 || ^5.0.0-next.1"
"lint": "prettier --check . && eslint .",
"lint:fix": "eslint --fix .",
"test": "pnpm -F cmdk-sv test"
},
"keywords": [],
"author": "Hunter Johnston <https://github.com/huntabyte>",
"license": "MIT",
"devDependencies": {
"@changesets/cli": "^2.27.7",
"@changesets/cli": "^2.27.1",
"@huntabyte/eslint-config": "^0.3.2",
"@huntabyte/eslint-plugin": "^0.1.0",
"@playwright/test": "^1.45.1",
"@sveltejs/adapter-vercel": "^4.0.0",
"@sveltejs/kit": "^2.5.18",
"@sveltejs/package": "^2.3.2",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"@types/prismjs": "^1.26.4",
"autoprefixer": "^10.4.19",
"eslint": "^9.0.0",
"eslint-plugin-svelte": "^2.43.0",
"mode-watcher": "^0.4.0",
"postcss": "^8.4.39",
"postcss-load-config": "^6.0.1",
"postcss-preset-env": "^9.6.0",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.5",
"prism-svelte": "^0.5.0",
"prismjs": "^1.29.0",
"publint": "^0.1.9",
"svelte": "5.0.0-next.190",
"svelte-check": "^3.8.4",
"eslint-plugin-svelte": "^2.37.0",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"prettier-plugin-tailwindcss": "0.5.13",
"svelte": "5.0.0-next.208",
"svelte-eslint-parser": "^0.41.0",
"tslib": "^2.6.2",
"typescript": "^5.5.3",
"vite": "^5.3.3",
"vitest": "^1.6.0"
"wrangler": "^3.44.0"
},
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
"dependencies": {
"bits-ui": "https://pkg.pr.new/huntabyte/bits-ui/bits-ui@8bd07bf",
"runed": "^0.15.0",
"svelte-toolbelt": "^0.1.0"
"engines": {
"pnpm": ">=8.7.0",
"node": ">=18"
},
"packageManager": "pnpm@9.5.0"
"packageManager": "pnpm@9.6.0",
"private": true
}
22 changes: 22 additions & 0 deletions packages/cmdk-sv/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
node_modules

# Output
.output
.vercel
/.svelte-kit
/build
/dist

# OS
.DS_Store
Thumbs.db

# Env
.env
.env.*
!.env.example
!.env.test

# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
1 change: 1 addition & 0 deletions packages/cmdk-sv/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
File renamed without changes.
22 changes: 22 additions & 0 deletions packages/cmdk-sv/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2024 Hunter Johnston <https://github.com/huntabyte>
Copyright (c) 2022 Paco Coursey

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 7363bdf

Please sign in to comment.