Skip to content

Commit

Permalink
chore: readme and pretty-quick (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Feb 29, 2024
1 parent 7b3a874 commit 982b384
Show file tree
Hide file tree
Showing 8 changed files with 169 additions and 68 deletions.
3 changes: 2 additions & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
MIT License

Copyright (c) 2023 Hunter Johnston <https://github.com/huntabyte>
Copyright (c) 2023 CokaKoala <https://github.com/adriangonz97>
Copyright (c) 2023 shadcn
Copyright (c) 2023 huntabyte

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This project is supported by the following beautiful people/organizations:
<!-- automd:contributors license=MIT author="huntabyte" -->

Published under the [MIT](https://github.com/huntabyte/shadcn-svelte/blob/main/LICENSE) license.
Made by [@huntabyte](https://github.com/huntabyte) and [community](https://github.com/huntabyte/shadcn-svelte/graphs/contributors) 💛
Built by [@huntabyte](https://github.com/huntabyte), [CokaKoala](https://github.com/adriangonz97),and [community](https://github.com/huntabyte/shadcn-svelte/graphs/contributors) 💛
<br><br>
<a href="https://github.com/huntabyte/shadcn-svelte/graphs/contributors">
<img src="https://contrib.rocks/image?repo=huntabyte/shadcn-svelte" />
Expand Down
4 changes: 3 additions & 1 deletion apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"test:unit": "vitest",
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"format:check": "prettier --check ."
"format:check": "prettier --check .",
"format:staged": "pretty-quick --staged"
},
"devDependencies": {
"@faker-js/faker": "^8.0.2",
Expand Down Expand Up @@ -56,6 +57,7 @@
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.2.1",
"prettier-plugin-tailwindcss": "^0.5.11",
"pretty-quick": "^4.0.0",
"rehype-pretty-code": "^0.13.0",
"rehype-slug": "^6.0.0",
"remark-code-import": "^1.2.0",
Expand Down
84 changes: 83 additions & 1 deletion apps/www/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 46 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,48 @@
{
"name": "shadcn-svelte",
"version": "0.0.1",
"description": "monorepo for shadcn-svelte",
"author": {
"name": "huntabyte",
"url": "https://twitter.com/huntabyte"
},
"private": true,
"scripts": {
"build": "pnpm build:registry && pnpm --filter www build",
"build:cli": "pnpm --filter shadcn-svelte build",
"build:registry": "pnpm --filter www build:registry",
"dev": "pnpm build:registry && pnpm --filter www dev",
"dev:cli": "pnpm --filter shadcn-svelte start:dev",
"preview": "pnpm --filter www preview",
"test": "pnpm --filter www test",
"check": "pnpm --filter www check",
"check:watch": "pnpm --filter www check:watch",
"test:unit": "pnpm --filter www test:unit",
"lint": "pnpm -r lint",
"format:check": "pnpm -r format:check",
"format": "pnpm -r format",
"preinstall": "npx only-allow pnpm",
"postinstall": "pnpm -r sync",
"ci:publish": "changeset publish",
"ci:build": "pnpm --filter shadcn-svelte build",
"ci:release": "pnpm ci:build && pnpm ci:publish",
"pub:beta": "cd packages/cli && pnpm pub:beta",
"pub:release": "cd packages/cli && pnpm pub:release"
},
"engines": {
"pnpm": ">=8"
},
"repository": {
"type": "git",
"url": "https://github.com/huntabyte/shadcn-svelte.git"
},
"license": "MIT",
"type": "module",
"devDependencies": {
"@changesets/cli": "^2.26.2"
}
"name": "shadcn-svelte",
"version": "0.0.1",
"description": "monorepo for shadcn-svelte",
"author": {
"name": "huntabyte",
"url": "https://twitter.com/huntabyte"
},
"private": true,
"scripts": {
"build": "pnpm build:registry && pnpm --filter www build",
"build:cli": "pnpm --filter shadcn-svelte build",
"build:registry": "pnpm --filter www build:registry",
"dev": "pnpm build:registry && pnpm --filter www dev",
"dev:cli": "pnpm --filter shadcn-svelte start:dev",
"preview": "pnpm --filter www preview",
"test": "pnpm --filter www test",
"check": "pnpm --filter www check",
"check:watch": "pnpm --filter www check:watch",
"test:unit": "pnpm --filter www test:unit",
"lint": "pnpm -r lint",
"format:check": "pnpm -r format:check",
"format": "pnpm -r format",
"preinstall": "npx only-allow pnpm",
"postinstall": "pnpm -r sync",
"ci:publish": "changeset publish",
"ci:build": "pnpm --filter shadcn-svelte build",
"ci:release": "pnpm ci:build && pnpm ci:publish",
"pub:beta": "cd packages/cli && pnpm pub:beta",
"pub:release": "cd packages/cli && pnpm pub:release"
},
"engines": {
"pnpm": ">=8"
},
"repository": {
"type": "git",
"url": "https://github.com/huntabyte/shadcn-svelte.git"
},
"license": "MIT",
"type": "module",
"devDependencies": {
"@changesets/cli": "^2.26.2",
"simple-git-hooks": "^2.9.0"
},
"simple-git-hooks": {
"pre-commit": "pnpm -r format:staged --staged"
}
}
24 changes: 2 additions & 22 deletions packages/cli/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,6 @@
"printWidth": 90,
"endOfLine": "lf",
"pluginSearchDirs": false,
"plugins": ["@ianvs/prettier-plugin-sort-imports"],
"bracketSameLine": false,
"importOrder": [
"<TYPES>",
"<TYPES>^[.]",
"<BUILTIN_MODULES>",
"<THIRD_PARTY_MODULES>",
"^\\$app",
"^\\$env",
"^\\$service-worker",
"^\\$lib/server",
"^\\$(?![^\\/]*\\/)",
"^\\$[^/]*\\/[^/]+",
"^[./]",
"\\.js$",
"\\.svelte$"
],
"importOrderSeparation": false,
"importOrderSortSpecifiers": true,
"importOrderBuiltinModulesToTop": true,
"importOrderParserPlugins": ["typescript"],
"importOrderMergeDuplicateImports": true
"plugins": [],
"bracketSameLine": false
}
23 changes: 23 additions & 0 deletions packages/cli/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
MIT License

Copyright (c) 2023 Hunter Johnston <https://github.com/huntabyte>
Copyright (c) 2023 CokaKoala <https://github.com/adriangonz97>
Copyright (c) 2023 shadcn

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.
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 982b384

Please sign in to comment.