@jongh/cli 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -0
- package/dist/index.js +6 -1
- package/package.json +26 -5
- package/.lintstagedrc.json +0 -4
- package/CHANGELOG.md +0 -7
- package/dist/components/Accordion/Accordion.tsx +0 -281
- package/dist/components/Accordion/index.tsx +0 -37
- package/dist/components/Accordion/useAccordionHeight.ts +0 -25
- package/dist/components/Avatar/Avatar.tsx +0 -18
- package/dist/components/Avatar/useAvatar.ts +0 -73
- package/dist/components/Button/index.tsx +0 -32
- package/dist/components/Primitive/index.tsx +0 -58
- package/dist/components/RovingIndex/RovingItem.tsx +0 -47
- package/dist/components/RovingIndex/RovingTabIndexRoot.tsx +0 -92
- package/dist/components/RovingIndex/index.ts +0 -3
- package/dist/components/RovingIndex/useRovingTabIndex.tsx +0 -76
- package/dist/components/Select/index.tsx +0 -231
- package/dist/components/Slider/index.tsx +0 -141
- package/dist/components/Slider/style.ts +0 -29
- package/dist/components/Tabs/Tab.tsx +0 -39
- package/dist/components/Tabs/TabContent.tsx +0 -62
- package/dist/components/Tabs/TabIndicator.tsx +0 -6
- package/dist/components/Tabs/TabList.tsx +0 -117
- package/dist/components/Tabs/index.ts +0 -43
- package/dist/components/Tabs/useRovingTabIndex.tsx +0 -171
- package/dist/components/Tabs/useTabContext.ts +0 -11
- package/dist/components/TagButton/TagButton.tsx +0 -75
- package/dist/components/TagButton/style.ts +0 -35
- package/dist/components/core/Polymorphic/index.ts +0 -26
- package/dist/components/index.ts +0 -5
- package/dist/index.d.ts +0 -1
- package/src/copyComponent.ts +0 -29
- package/src/getConfig.ts +0 -56
- package/src/index.ts +0 -46
- package/tsconfig.json +0 -14
- package/tsup.config.ts +0 -14
package/src/index.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import yargs from "yargs"
|
|
4
|
-
import { hideBin } from "yargs/helpers"
|
|
5
|
-
import { getConfig } from "./getConfig"
|
|
6
|
-
import * as p from "@clack/prompts"
|
|
7
|
-
import { copyComponent } from "./copyComponent"
|
|
8
|
-
|
|
9
|
-
const main = async () => {
|
|
10
|
-
await yargs(hideBin(process.argv))
|
|
11
|
-
.command(
|
|
12
|
-
"components add [components..]",
|
|
13
|
-
"Add components to your project",
|
|
14
|
-
(yargs) => {
|
|
15
|
-
return yargs
|
|
16
|
-
.positional("components", {
|
|
17
|
-
describe: "List of components to add",
|
|
18
|
-
type: "string",
|
|
19
|
-
array: true,
|
|
20
|
-
default: [],
|
|
21
|
-
})
|
|
22
|
-
.option("all", {
|
|
23
|
-
type: "boolean",
|
|
24
|
-
description: "Add all components",
|
|
25
|
-
default: false,
|
|
26
|
-
})
|
|
27
|
-
},
|
|
28
|
-
async (argv) => {
|
|
29
|
-
// 컴포넌트가 없고 --all 플래그도 없으면 에러
|
|
30
|
-
if (argv.components.length === 0 && !argv.all) {
|
|
31
|
-
p.cancel(
|
|
32
|
-
"Error: You need to specify at least one component or use the --all flag",
|
|
33
|
-
)
|
|
34
|
-
console.log('Run "cli --help" for more information')
|
|
35
|
-
return
|
|
36
|
-
}
|
|
37
|
-
const config = await getConfig()
|
|
38
|
-
await copyComponent(argv.components[0], config.outputPath)
|
|
39
|
-
},
|
|
40
|
-
)
|
|
41
|
-
.demandCommand(1, "You need at least one command before moving on")
|
|
42
|
-
.strict()
|
|
43
|
-
.help().argv
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
main()
|
package/tsconfig.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"emitDeclarationOnly": true,
|
|
5
|
-
"noImplicitAny": true,
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"noEmit": false,
|
|
8
|
-
"declarationMap": true,
|
|
9
|
-
"declarationDir": "dist",
|
|
10
|
-
"outDir": "dist",
|
|
11
|
-
"baseUrl": "./"
|
|
12
|
-
},
|
|
13
|
-
"include": ["src"]
|
|
14
|
-
}
|
package/tsup.config.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "tsup"
|
|
2
|
-
import fs from "fs-extra"
|
|
3
|
-
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
entry: ["src/index.ts"],
|
|
6
|
-
format: ["esm"],
|
|
7
|
-
dts: true,
|
|
8
|
-
clean: true,
|
|
9
|
-
sourcemap: false,
|
|
10
|
-
minify: true,
|
|
11
|
-
async onSuccess() {
|
|
12
|
-
await fs.copy("../ui/src/components", "./dist/components")
|
|
13
|
-
},
|
|
14
|
-
})
|