@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.
Files changed (36) hide show
  1. package/dist/index.cjs +7 -0
  2. package/dist/index.js +6 -1
  3. package/package.json +26 -5
  4. package/.lintstagedrc.json +0 -4
  5. package/CHANGELOG.md +0 -7
  6. package/dist/components/Accordion/Accordion.tsx +0 -281
  7. package/dist/components/Accordion/index.tsx +0 -37
  8. package/dist/components/Accordion/useAccordionHeight.ts +0 -25
  9. package/dist/components/Avatar/Avatar.tsx +0 -18
  10. package/dist/components/Avatar/useAvatar.ts +0 -73
  11. package/dist/components/Button/index.tsx +0 -32
  12. package/dist/components/Primitive/index.tsx +0 -58
  13. package/dist/components/RovingIndex/RovingItem.tsx +0 -47
  14. package/dist/components/RovingIndex/RovingTabIndexRoot.tsx +0 -92
  15. package/dist/components/RovingIndex/index.ts +0 -3
  16. package/dist/components/RovingIndex/useRovingTabIndex.tsx +0 -76
  17. package/dist/components/Select/index.tsx +0 -231
  18. package/dist/components/Slider/index.tsx +0 -141
  19. package/dist/components/Slider/style.ts +0 -29
  20. package/dist/components/Tabs/Tab.tsx +0 -39
  21. package/dist/components/Tabs/TabContent.tsx +0 -62
  22. package/dist/components/Tabs/TabIndicator.tsx +0 -6
  23. package/dist/components/Tabs/TabList.tsx +0 -117
  24. package/dist/components/Tabs/index.ts +0 -43
  25. package/dist/components/Tabs/useRovingTabIndex.tsx +0 -171
  26. package/dist/components/Tabs/useTabContext.ts +0 -11
  27. package/dist/components/TagButton/TagButton.tsx +0 -75
  28. package/dist/components/TagButton/style.ts +0 -35
  29. package/dist/components/core/Polymorphic/index.ts +0 -26
  30. package/dist/components/index.ts +0 -5
  31. package/dist/index.d.ts +0 -1
  32. package/src/copyComponent.ts +0 -29
  33. package/src/getConfig.ts +0 -56
  34. package/src/index.ts +0 -46
  35. package/tsconfig.json +0 -14
  36. 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
- })