ui-thing 0.0.11 → 0.0.12
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/CHANGELOG.md +13 -0
- package/dist/index.js +8505 -114
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/commands/add.ts +1 -4
- package/src/comps.ts +2307 -0
package/package.json
CHANGED
package/src/commands/add.ts
CHANGED
|
@@ -5,17 +5,16 @@ import kleur from "kleur";
|
|
|
5
5
|
import _ from "lodash";
|
|
6
6
|
import prompts from "prompts";
|
|
7
7
|
|
|
8
|
+
import allComponents from "../comps";
|
|
8
9
|
import { Component } from "../types";
|
|
9
10
|
import { compareUIConfig } from "../utils/compareUIConfig";
|
|
10
11
|
import { addModuleToConfig, getNuxtConfig, getUIConfig, updateConfig } from "../utils/config";
|
|
11
|
-
import { fetchComponents } from "../utils/fetchComponents";
|
|
12
12
|
import { fileExists } from "../utils/fileExists";
|
|
13
13
|
import { installPackages } from "../utils/installPackages";
|
|
14
14
|
import { printFancyBoxMessage } from "../utils/printFancyBoxMessage";
|
|
15
15
|
import { promptUserForComponents } from "../utils/promptForComponents";
|
|
16
16
|
import { writeFile } from "../utils/writeFile";
|
|
17
17
|
|
|
18
|
-
let allComponents: Component[] = [];
|
|
19
18
|
const currentDirectory = process.cwd();
|
|
20
19
|
|
|
21
20
|
const findComponent = (name: string) => {
|
|
@@ -43,8 +42,6 @@ export const add = new Command()
|
|
|
43
42
|
consola.info("Config file not set. Exiting...");
|
|
44
43
|
process.exit(0);
|
|
45
44
|
}
|
|
46
|
-
// get components from API
|
|
47
|
-
allComponents = await fetchComponents();
|
|
48
45
|
|
|
49
46
|
let componentNames = components;
|
|
50
47
|
// if no components are passed, prompt the user to select components
|