Skip to content

Commit cb18bf9

Browse files
committed
init
0 parents  commit cb18bf9

File tree

412 files changed

+53383
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

412 files changed

+53383
-0
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "shadcn-ui/ui" }],
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": ["www", "**-template"]
11+
}

.changeset/mean-badgers-grab.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"shadcn-ui": patch
3+
---
4+
5+
fix code style

.changeset/smart-pants-smile.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"shadcn-ui": patch
3+
---
4+
5+
use jsconfig for non-ts projects

.changeset/sweet-worms-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"shadcn-ui": minor
3+
---
4+
5+
add support for tailwind.config.ts

.commitlintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true

.eslintrc.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema": "https://json.schemastore.org/eslintrc",
3+
"root": true,
4+
"extends": [
5+
"next/core-web-vitals",
6+
"turbo",
7+
"prettier",
8+
"plugin:tailwindcss/recommended"
9+
],
10+
"plugins": ["tailwindcss"],
11+
"rules": {
12+
"@next/next/no-html-link-for-pages": "off",
13+
"tailwindcss/no-custom-classname": "off",
14+
"tailwindcss/classnames-order": "error"
15+
},
16+
"settings": {
17+
"tailwindcss": {
18+
"callees": ["cn", "cva"],
19+
"config": "tailwind.config.cjs"
20+
},
21+
"next": {
22+
"rootDir": ["apps/*/"]
23+
}
24+
},
25+
"overrides": [
26+
{
27+
"files": ["*.ts", "*.tsx"],
28+
"parser": "@typescript-eslint/parser"
29+
}
30+
]
31+
}

.github/changeset-version.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// ORIGINALLY FROM CLOUDFLARE WRANGLER:
2+
// https://github.com/cloudflare/wrangler2/blob/main/.github/changeset-version.js
3+
4+
import { exec } from "child_process"
5+
6+
// This script is used by the `release.yml` workflow to update the version of the packages being released.
7+
// The standard step is only to run `changeset version` but this does not update the package-lock.json file.
8+
// So we also run `npm install`, which does this update.
9+
// This is a workaround until this is handled automatically by `changeset version`.
10+
// See https://github.com/changesets/changesets/issues/421.
11+
exec("npx changeset version")
12+
exec("npm install")

.github/version-script-beta.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// ORIGINALLY FROM CLOUDFLARE WRANGLER:
2+
// https://github.com/cloudflare/wrangler2/blob/main/.github/version-script.js
3+
4+
import { exec } from "child_process"
5+
import fs from "fs"
6+
7+
const pkgJsonPath = "packages/cli/package.json"
8+
try {
9+
const pkg = JSON.parse(fs.readFileSync(pkgJsonPath))
10+
exec("git rev-parse --short HEAD", (err, stdout) => {
11+
if (err) {
12+
console.log(err)
13+
process.exit(1)
14+
}
15+
pkg.version = "0.0.0-beta." + stdout.trim()
16+
fs.writeFileSync(pkgJsonPath, JSON.stringify(pkg, null, "\t") + "\n")
17+
})
18+
} catch (error) {
19+
console.error(error)
20+
process.exit(1)
21+
}

0 commit comments

Comments
 (0)